Questions tagged [execute-command]

Questions relating to the execution (running) of a file (usually a compiled binary) or a command.

269 questions
529
votes
17 answers

How do I run .sh scripts?

Whenever I open a .sh file, it opens it in gedit instead of the terminal. I can't find any option similar to Right Click → Open With → Other Application... → Terminal. How do I open this file in the terminal?
Alex
  • 5,291
181
votes
14 answers

How do I run executable scripts in Nautilus?

When I double-click on a script in Nautilus to run it, the script just opens in my text editor with no option to run it. Using Nautilus, how do I run executable text files and/or scripts?
Rob
  • 1,849
101
votes
3 answers

What does "chmod +x " do and how do I use it?

I want to write the Ubuntu analogue of a "batch file" (a shell script). But I don't know how to use chmod +x filename command to make it so that the script can be run. Nor do I know where to use it.
85
votes
6 answers

What is the bash command: `command`?

The command command has no manual entry but help displays as follows: $ help command command: command [-pVv] command [arg ...] Execute a simple command or display information about commands. Runs COMMAND with ARGS suppressing shell…
Pandya
  • 37,289
47
votes
8 answers

Run command on another(new) terminal window

How to run any command in another terminal window? Example: I opened one terminal window and if I run command like apropos editor, then it run and out-puts on that window. But I want to run same command on another terminal window (new window)…
Pandya
  • 37,289
36
votes
4 answers

Why doesn't rc.local run all my commands, and what can I do about it?

I have the following rc.local script: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable…
Programster
  • 6,039
33
votes
3 answers

How do I run a sudo command needing password input in the background?

I have recently disabled sudo's authentication caching ability so that it now prompts me for a password every time. And though this is good for security, it has caused one slight problem which I haven't been able to figure out a solution for, I am…
user364819
31
votes
5 answers

Execute command before shutdown/reboot

I have a machine running a couple of vagrant VM. The problem I have is that sometimes I forget to shutdown those VM before I shutdown or reboot my machine. Because of that my machine get stuck with this message: waiting for vboxnet0 to become free I…
SERPRO
  • 499
29
votes
3 answers

Pausing a long running program in the terminal?

Is there a keyboard key combination that I can use to pause a program running in the terminal? In case it matters, I don't intend to run anything else inside that terminal while the program is paused. I just want to pause the program execution, and…
a06e
  • 14,233
27
votes
1 answer

Why do some programs running from Terminal using '&' close when Terminal does and others do not?

I was just wondering, for instance when I launch qtox with: qtox & And then close Terminal, qtox closes with it. However when running etherape using: sudo etherape & Closing Terminal doesn't close or cause any problem to Etherape. And among…
user364819
24
votes
1 answer

When will Wayland support restarting the shell by command?

On Xorg I found that doing ALT + F2 and then doing r would work in order to restart gnome-shell after an update, however with Wayland on Ubuntu GNOME 17.04 and GNOME 3.24 I have found that I get a message saying: Restart is not available on…
user364819
23
votes
3 answers

How do I run a command?

I am a new user, who has just been told to run / execute a command. The answer has some text with a grey background like this text here or sometimes this text here. However, I don't know what "run" or "command" means in relation to Ubuntu. How do I…
Tim
  • 33,500
23
votes
2 answers

Extract A Squashfs To An Existing Directory

I have an Ubuntu installation backed up as a .squashfs file. I would like to extract it to the root of a partition, but when I try gives me an error saying the directory exists. I can extract just fine to non-existent directories. I've searched for…
19
votes
2 answers

How do I change the launcher commands?

I'd like to change the behaviour of the launcher, so that if I click on the firefox icon, it runs the command $ optirun firefox Does anyone know how to change it? Thank you
Dox
  • 348
14
votes
6 answers

Most efficient way of launching and separating a program from the terminal?

I'm trying to launch a program from the Terminal in such a way that the following occurs: Closing the Terminal does not close the program The program is not outputting anything to the Terminal while opening, using, or closing The Terminal is free…
Evan
  • 321
  • 2
  • 8
1
2 3
17 18