About 396,000 results
Open links in new tab
  1. What is $* and $# in Linux? - Super User

    What do the following environment variables in Linux mean? What is $* (dollar sign followed by an asterisk)? What is $# (dollar sign next to a hash mark/number sign/octothorpe/pound sign)?

  2. linux - Difference between $ {} and $ () in a shell script - Super User

    Difference between $ {} and $ () in a shell script Ask Question Asked 10 years, 5 months ago Modified 10 months ago

  3. How to run a script without closing the terminal? - Ask Ubuntu

    Jan 29, 2013 · For example: gnome-terminal -e "bash -c ~/script.sh;bash" This does the following: opens gnome-terminal executes the script script.sh shows the bash prompt after the script has finished. …

  4. linux - Run part of a bash script as a different user - Super User

    Nov 28, 2023 · I am in Ubuntu 9.04. Is there a way to make part of a script run as a different (non-root) user? If it helps, the part to be run as a different user occurs at the end of the script.

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

    Aug 27, 2011 · To set an environment variable from a script, use the export command in the script, and then source the script. If you execute the script it will not work. For an explanation of the difference …

  6. linux - Cannot execute script while its permission is 'x' - Super User

    Jun 24, 2019 · 22 I have a script in the current directory, however, given that: the permission is -rwxr-xr-x the script has a shebang #!/bin/bash at the top of the file my shell is /bin/bash I can execute it using …

  7. Run Bash script in background and exit terminal - Super User

    Apr 11, 2017 · Is it possible to launch a command or Bash script exit terminal and NOT interrupt command? My solution was to run cron at a specific time of day, but I'm sure there is something easier.

  8. linux - How to test if a variable is equal to a number in shell - Super ...

    Dec 16, 2013 · linux bash shell shell-script Improve this question edited Dec 16, 2013 at 1:14 VL-80

  9. linux - How to execute a shell script on startup? - Super User

    20 /etc/init.d is the script directory, in which the executable scripts appear. However, in order to run scripts in a particular order after your system starts, you need to add files to the /etc/rc#.d directory. …

  10. Linux Bash Script, Single Command But Multiple Lines?

    Linux Bash Script, Single Command But Multiple Lines? Ask Question Asked 13 years, 1 month ago Modified 2 years, 7 months ago