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 them? (working same & shell) or redirects to same?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I don't think there is any difference between the two it's just that once you run a command using Alt + F2 the dash closes before you see the results / output. But it is used according to different purpose as following.
Use Alt + F2 when running commands that expected no output or that open an external application. Example:
gksu nautilus which opens up a root nautilus window.
For commands that expected an output -
install, etc then recommended to use the terminal.
Yes! I originally said no because the differences are relatively none imo since the same binaries process the command in the end. That said CTRL+ALT+F# and the Quick-Run cmd are different virtual terminals so there are bound to be small differences, like the .bashrc file wont be loaded for Quick-run commands. So alias commands that you have set up wont work and such.
I would think yes. I never use the Alt-F2.
If you write a small shell script, you should see the difference in the environment if any:
I'm not too sure where the output goes in case of Alt-F2. If needed, redriect to a file:
#!/bin/sh set >/tmp/set.txt
Other than that, I would imagine that it is pretty close. Obviously, stdin and stdout may not be connected to a TTY when using the Alt-F2 and the application is not attached to anything, meaning that it is similar to running it in a console with the &.
In your console:
$ my-app &
(the $ represents the prompt)