About 480,000 results
Open links in new tab
  1. linux - What is the meaning of $? in a shell script? - Unix & Linux ...

    Feb 20, 2011 · $0-The filename of the current script. $#-The number of arguments supplied to a script. $$-The process number of the current shell. For shell scripts, this is the process ID …

  2. shell script - what is >> symbol and - in unix/Linux?

    See What is the difference between > and >> (especially as it relates to use with the cat program)?, What does “3>&1 1>&2 2>&3” do in a script? and of course, your shell's manual. …

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

    To extend terdon's answer, I found that Unix / Linux - Shell Basic Operators on Tutorials Point also includes file-related operators (as well as other useful ones).-b file Checks if file is a block …

  4. How do I run a 'sudo' command inside a script? - Ask Ubuntu

    Feb 25, 2014 · That way, all commands within the script will be run with root privileges and you only need to give the password once when launching the script. If you need a particular …

  5. shell - What is the meaning of read -r? - Unix & Linux Stack …

    Mar 27, 2015 · @G-ManSays'ReinstateMonica': That's an excellent question, and, thinking about it, while it is true that read is consistent with Bash's input-parsing behavior for its own …

  6. bash - How to kill a script running in terminal, without closing ...

    Usually the parent shell guesses that the script is written for the the same shell (minimal Bourne-like shells run the script with /bin/sh, bash runs it as a bash subprocess) ... Because of this, …

  7. shell - What is the "eval" command in bash? - Unix & Linux Stack …

    The shell performs various expansions (separately) ... The shell performs redirection and removes redirection operators and their operands from the parameter list. The shell executes a function, …

  8. How do you put date and time in a file name? - Unix & Linux Stack …

    Mar 17, 2017 · Note that quotes around the expression for the newfilename are not required, despite the presence of a space in date +"%F . Indeed, inclusion of such quotes prevents the …

  9. How can I make "Press any key to continue" [duplicate]

    Jul 5, 2016 · Well in my country people do differently, so i just make theme installer as simple as possible: choose option to install>let script do it all>after finished installing show the …

  10. BASH script to set environment variables not working

    The export statement works down hierachy (current shell and all it's subshells) not up as in your example. Alternatively (if you really want the script to effect the enviroment of your current …

Refresh