Ubuntu – ny difference between run command in terminal & ALT+F2

command lineexecute-commandunity

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

enter image description here

Then, Is there any difference between them? (working same & shell) or redirects to same?

Best Answer

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 - ls,rm, find, update, upgrade, install, etc then recommended to use the terminal.