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

learn more… | top users | synonyms

85
votes
10answers
54k views

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?
16
votes
2answers
37k views

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 # ...
5
votes
0answers
4k views

How do I run executable scripts in Nautilus rather than open them in Gedit text editor? [duplicate]

When I double-click on a script in Nautilus in order to run it, the script opens in my text editor with no option to do so. Using Nautilus, how do I run executable text files and/or scripts?
7
votes
5answers
9k views

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 ...
6
votes
2answers
1k views

Execute command from file in current shell

I want to executed command from file (which is script) in current shell in terminal. Example: I have file ch_dir contains following: #!/bin/bash cd /usr Now if I execute file usually as following ...
3
votes
4answers
587 views

Add to path only sh file not a dir

I have a bin folder with a bunch of sh files. For example "server-run.sh", "server-stop.sh", "server-do-something.sh". And I want to run file "server-stop.sh" from anywhere. I could add this bin ...
-2
votes
1answer
21k views

What does 'chmod +x <filename>' and how do I use it? [closed]

I want to write a 'batch file', but I don't know how to use chmod +x <filename> command, nor where to use it.
5
votes
5answers
438 views

What is use of command: `command`?

Recently I found command: command which has no manual entry but help displays as follows: $ help command command: command [-pVv] command [arg ...] Execute a simple command or display information ...
2
votes
1answer
2k views

Unable to change execute permissions of .sh file [duplicate]

I'm out with a new problem. I've downloaded a jdk7.sh file. Now I'm unable to change the permission of the file to allow executing the file as a program. I mark the check box and again it disappears.
5
votes
4answers
19k views

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 ...
11
votes
2answers
10k views

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
14
votes
6answers
784 views

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

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 ...
4
votes
2answers
97 views

How can I access the locational data of the currently selected file or folder?

I want to be able to select a file, run a script with a shortcut and that script gets the path of the file I've selected (or am dragging). I've selected it in nautilus. I know how to run the command, ...
3
votes
3answers
235 views

Is there any difference between run command in terminal & ALT+F2

For running direct commands, there are two ways. Either run in Terminal Or run from the "Run Command" dialogue (screen shown below) obtained from Alt+F2 Then, Is there any difference between ...
2
votes
1answer
5k views

rc.local won't execute the script

This is my rc.local #!/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. # ...
1
vote
2answers
143 views

How to run executables directly from nautilus? [duplicate]

When I write C codes in geany and the build and then run the program from there using the buttons there, it works fine. Again I can run the compiled executables using ./file_name command from terminal ...
0
votes
1answer
93 views

So many user apps, but only a few on launcher, why not a launcher page or a command to install on launcher? [duplicate]

I am new to Ubuntu, have v. 14.04. I look on installed apps page and see user apps installed but find no way to access them, and no way to place an app link in the launcher, why is this? People would ...