About 193,000 results
Open links in new tab
  1. What does "&" at the end of a linux command mean?

    Nov 12, 2012 · If you have a command which executes and doesn't return status 0(control of prompt) quickly. For example: command gedit launches the default editor gedit UI. …

  2. What is the purpose of "&&" in a shell command? - Stack Overflow

    Dec 22, 2010 · See man set: in an "AND-OR list" it will ignore anything but the last command according to the manpage, so as I understand it, if you expect it to stop the entire script on the …

  3. email - Sending a mail from a linux shell script - Stack Overflow

    Mar 1, 2011 · The file /tmp/mailtest is overwritten everytime this script is used. The location of sendmail may differ per system. When using this in a cron script, you have to use the absolute …

  4. How do I execute a bash script in Terminal? - Stack Overflow

    Mar 9, 2018 · If you are in a directory or folder where the script file is available then simply change the file permission in executable mode by doing. chmod +x your_filename.sh. After that you …

  5. linux - Is there a "goto" statement in bash? - Stack Overflow

    Jun 10, 2023 · A and Bexecute a command, but C gives you more info and takes you to the original prompt again. This can be done using functions. Note that since the line containg …

  6. Shell script to copy files from one location to another location and ...

    Sep 10, 2012 · Otherwise, the next time you run the script, you will copy files even if they have not changed. With the answers provided, use the mv command instead of cp. If the two directories …

  7. linux - Get program execution time in the shell - Stack Overflow

    Dec 22, 2008 · $ npm install -g gnomon $ <your command> | gnomon --medium=1.0 --high=4.0 --ignore-blank --real-time=100 A command line utility, a bit like moreutils's ts, to prepend …

  8. 'which' vs 'command -v' in Bash - Stack Overflow

    For example, if command is built in to your shell, command -v command will indicate this with its output (through the non-existence of path), but which command will try to point to a file on your …

  9. Shell script not running, command not found - Stack Overflow

    If I type a command foo at the command line, my shell will first see if there's an executable command /usr/local/bin/foo. If there is, it will execute /usr/local/bin/foo. If not, it will see if …

  10. How to provide password to a command that prompts for one in …

    I'm writing a UNIX shell function that is going to execute a command that will prompt the user for a password. I want to hard-code the password into the script and provide it to the command. I've …

Refresh