About 86,800 results
Open links in new tab
  1. command line - How do I run .sh scripts? - Ask Ubuntu

    May 1, 2011 · Ex. cd Downloads Run bash <filename>.sh This also works with .run files. There is an example of this usage at this webpage on updating Rhythmbox. Option 2 In the terminal, …

  2. How to run a shell script in background? - Ask Ubuntu

    Jun 24, 2012 · Depending on what you are wanting, just add a & to the end of the command script.sh & command & If you are running it in a terminal, and you want to then close the …

  3. startup - How to run scripts on start up? - Ask Ubuntu

    Aug 4, 2010 · Have a look under System > Preferences > Startup Applications. On a side note if you need some scripts to be run on terminal login you can add them to the .bash_login file in …

  4. bash - How to run an alias in a shell script? - Ask Ubuntu

    Sourcing a script with the . or source buiiltin causes the current shell to execute all the commands in it. If alias expansion would occur in the shell in which . or source is run, it occurs.

  5. Can't run Bash script - Ask Ubuntu

    Jul 12, 2015 · To run the script you can specify full pathname as tikend's answer. If you want to use it as a command from any directory, create a link in /usr/bin and you can use the link as …

  6. command line - How to execute a script in a different directory …

    58 If your script needs to access resources in the same folder that it is being run from, and you have it specified as relative paths, then your script will break. I always add a cd $(dirname $0) …

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

    Feb 25, 2014 · 188 It is rarely a good idea to have sudo inside scripts. Instead, remove the sudo from the script and run the script itself with sudo: sudo myscript.sh That way, all commands …

  8. bash - How to execute a script every time the terminal opens

    Jan 4, 2021 · I have a script with welcome message that I want to execute every time the terminal opens. How can I do that? This is the script, what should I add so the script runs every time I …

  9. bash - How to execute sh script from a desktop shortcut? - Ask …

    Check that the .sh file works if clicked or run from its own directory. If it works there, right-click on it in Files aka Nautilus, select 'Make Link' This produces a file named 'link to xxxx.sh' in the …

  10. How to make a file (e.g. a .sh script) executable, so it can be run ...

    Dec 16, 2012 · The bash command is actually store as /bin/bash and it is an executable on all Ubuntu systems. Creating a file of commands saves you from adding the shebang #!/bin/bash …