About 26,100 results
Open links in new tab
  1. execute a powershell script (hello world) - Ask Ubuntu

    Feb 17, 2018 · A powershell "hello world" script is spawning and bogging down the system: Tasks: 413 total, 2 running, 411 sleeping, 0 stopped, 0 zombie %Cpu(s): 42.8 us, 5.9 sy, 0.0 …

  2. windows - Can I run PowerShell on Ubuntu? - Ask Ubuntu

    Aug 3, 2014 · But if you have an assignment that involves Windows Powershell, there's little choice. There are some shells (and even modifiers existing shells like zsh) that aim to pull in …

  3. bash - Why does my powershell script run with "pwsh" but doesn't …

    Jan 4, 2024 · However, when I try to run the script using sudo before pwsh, I get two lines of errors: Stack overflow. Aborted. I'm assuming the two issues are related but I've tried changing …

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

    If you make the scrip executable with chmod 755 <nameofscript> to run it you only need to type the path to the script. When you see ./script being used it telling the shell that the script is …

  5. How to run only selected lines of a shell script? - Ask Ubuntu

    Sep 4, 2024 · On Windows it's possible to create a *.ps1 (PowerShell) file where you can write one command per line or initialize variables etc. You then open it with VSCode and select the …

  6. bash - Problem when trying to run shell script : No such file or ...

    Apr 20, 2015 · When you use ./ to execute a file, it will look in the current folder (.) for a folder named home instead of starting from the root (/) directory. Using the bash command explicitly …

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

    Jan 29, 2013 · xterm -e "bash ~/script.sh;bash" This does the following: opens xterm; executes the script script.sh; shows the bash prompt after the script has finished. You can exit the xterm …

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

    Jan 4, 2021 · Create your script and make a note of the full path (I found it best to add it to the bin folder in the home directory, this way you can run your script without ./) Open Home folder in …

  9. Execute bash script on remote server non-interactively

    Sep 10, 2018 · I found this command to execute bash script on remote server: ssh root@host 'bash -s' < script.sh But this command prompts for a password and also doesn't use any …

  10. How do I create a script file for terminal commands?

    To run a shell script, you need to make the file executable, which you can do with chmod +x <filename> In Ubuntu, the current directory is not the program search path, so you need to run …

Refresh