About 75 results
Open links in new tab
  1. What is the meaning of $? in a shell script? - Unix & Linux Stack …

    Feb 20, 2011 · This latter usage is faster, does not contaminate the shell's variable namespace with what amounts to temp variables, can often be a lot more readable for humans and encourages the …

  2. shell - Starting with bash: -lt and -gt arguments - Unix & Linux Stack ...

    For reading the script and executing it, I know what it does, but not what -lt and -gt are for. Can somebody tell me what is the name of that kind of 'tool' and what they (-lt and -gt) do?

  3. Shell scripting: -z and -n options with if - Unix & Linux Stack Exchange

    Jan 20, 2025 · You can find a very nice reference for bash's [ aka test builtin's operators here, or by running help test in a bash shell or info bash test or info bash '[' from any shell¹. If you are using a …

  4. bash - How do I add environment variables? - Ask Ubuntu

    Aug 27, 2011 · The variable will be set for the rest of the shell session or until unset. To set an environment variable everytime, use the export command in the .bashrc file (or the appropriate …

  5. Linux Bash Shell Script Error: cannot execute: required file not found

    Oct 21, 2022 · To solve this, convert your script from a DOS text file to a Unix text file. If you are editing scripts on Windows, you can probably do this by configuring the Windows text editor to create Unix …

  6. How to debug a bash script? - Unix & Linux Stack Exchange

    Sep 14, 2014 · a) "Bash script:" - Path in workspace of Eclipse to the Bash script to debug. e) "Debugger port:" 33333 Switch to The Debug perspective. Start the debugging session. Launch script.sh from …

  7. What is the difference between #!/bin/sh and #!/bin/bash?

    May 25, 2012 · A script may specify #!/bin/bash on the first line, meaning that the script should always be run with bash, rather than another shell. /bin/sh is an executable representing the system shell.

  8. linux - What does -f mean in an if statement in a bash script? - Unix ...

    Jul 5, 2018 · The relevant man page to check for this is that of the shell itself, bash, because -f is functionality that the shell provides, it's a bash built-in. On my system (CentOS 7), the fine man page …

  9. Passing named arguments to shell scripts - Unix & Linux Stack Exchange

    $ ./my_script -p '/some/path' -a5 Argument p_out is /some/path Argument arg_1 is 5 There is a helpful Small getopts tutorial or you can type help getopts at the shell prompt. Edit: The second case …

  10. How can I create a select menu in a shell script? - Ask Ubuntu

    I'm creating a simple bash script and I want to create a select menu in it, like this: $./script echo "Choose your option:" 1) Option 1 2) Option 2 3) Option 3 4) Quit And according to u...

    • Site icon
      study.com
      https://study.com
      About our ads

      Shell Scripts in Linux - Executing a File in Linux

      SponsoredExecute Binary Programs & Shell Scripts in Linux with This Course. Available for All Ages and Skill Levels. Start Now!
      Site visitors: Over 100K in the past month
    • Site icon
      alison.com
      https://alison.com › free-learning › diploma-courses
      About our ads

      Linux & Shell Scripting Course | Certified Free Courses

      SponsoredA Free Online Certificate Course On Creating Programs Using Linux Commands & Shell Script. Thousands Of Free Certificate Courses. Study Online Anytime, Anywhere & At Your Own Pace.
      Site visitors: Over 100K in the past month