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

    May 1, 2011 · In the terminal, access the directory the Bash file is in using cd (change directory). Ex. cd Downloads. Run bash <filename>.sh. This also works with .run files. There is an …

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

    Jun 24, 2012 · script.sh & command & If you are running it in a terminal, and you want to then close the terminal, use nohup or disown. nohup. nohup script.sh & disown. script & disown If …

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

    Aug 5, 2010 · Here "</path/to/script>" is replaced with path to your script.sh If you place your script myscript in /usr/local/bin so that it can be executed directly by command, you can write …

  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. How to start an app from a bash script without opening/showing …

    Oct 28, 2023 · I want to run a bash script that starts an app without opening up a terminal window and then the app. I'm on Ubuntu 22.04. I have two problems. First, The below script when run …

  6. how to run and debug bash script from VSCode - Ask Ubuntu

    Apr 18, 2020 · From the run option in your integrated terminal, change the option to be the shell type you want to run your code in. You can create multiple terminals open to different locations …

  7. bash - Repeat a command every x interval of time in terminal

    Mar 8, 2014 · With this, the script will run sometime every minutes, sometime might take 1m40. So even if a cron will be able to run it every minutes, here, it will not. So to see the output on …

  8. bash - Conveniently schedule a command to run later? - Ask

    Sep 7, 2013 · If you are running bash on a mac you will run into some difficulties using the at program. In that case you can improve on your original proposed solution of, nohup bash -c …

  9. Run a script only at the very first boot - Ask Ubuntu

    Jun 27, 2012 · But it seems that bash (at least in version 3.2) prepends $0 with the path if it searched the path and otherwise leaves $0 set to whatever relative or absolute path was used …

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

    The "trap" for me was that I searched via right-clicking on the file for a way to change the behaviour (to have a script run instead of opened in gedit). Don't right-click ! Rather open from …