- 6 Ways to Open a Ubuntu Application
- Open your apps the most convenient way for you
- Use the Ubuntu Launcher to Open Applications
- Search the Activities to Find an Application
- Browse the Applications Menu to Find an Application
- Use the Run Command to Open an Application
- Use the Terminal to Run an Application
- Use Keyboard Shortcuts to Open Applications
- Launching application from terminal [duplicate]
- 3 Answers 3
- How do I open a terminal? [duplicate]
- 2 Answers 2
- What is the command to run System Settings from a terminal?
- 8 Answers 8
- How can I open (launch) files using the terminal?
- 2 Answers 2
- Select the tool manually
- xdg-open
6 Ways to Open a Ubuntu Application
Open your apps the most convenient way for you
In this guide, you will discover a number of different ways to open an application using Ubuntu. Some of them will be obvious and some of them less so.
Not all applications appear in the launcher, and not all of them appear in the Dash. Even if they do appear in the Dash, you might find it easier to open them in other ways.
You might want to make sure Ubuntu is updated so you don’t have any issues opening applications.
Use the Ubuntu Launcher to Open Applications
The Ubuntu Launcher is on the left side of the screen and contains icons for the most commonly used applications.
- You can open one of these applications simply by selecting it.
- Right-clicking on an icon often provides other options such as opening a new browser window or opening a new spreadsheet.
Search the Activities to Find an Application
If the application doesn’t appear in the launcher the second quickest way to find an application is to use the GNOME Activities menu.
- Select Activities in the upper left corner of your screen.
- Your screen will darken to display the Activities Overview. Here, you’ll see any applications that you have minimized, the other available workspaces, and a search.
- Type the name of the application you want into the search. GNOME will show you both the apps installed on your system and the ones available for download.
For a more advanced approach of finding a program, or if you can’t find your application in the Activities search, check out our breakdown of how to use the ‘which’ command to find a program.
Browse the Applications Menu to Find an Application
If you just want to see which applications are on your computer or you know the type of application but not its name you can simply browse the GNOME applications menu.
- To browse, select the Show Applications icon on the launcher or press the Super Key + A.
- The GNOME applications menu will open up, displaying all the apps you have in your system in alphabetical order. At the bottom, you’ll find the option to toggle between All applications and your Frequent ones.
- Select an app icon to launch it.
Use the Run Command to Open an Application
If you know the name of the application you can open it quite quickly in the following way:
- Press Alt+F2 to bring up the run command window.
- Enter the name of the application. If you enter the name of a correct application then an icon will appear.
- You can run the application either by clicking on the icon or by pressing Return on the keyboard.
Use the Terminal to Run an Application
You can open an application by using the Linux terminal.
To open a terminal press Ctrl+Alt+T or follow this guide for more suggestions. If you know the program’s name you can simply type it into the terminal window. For example:
Of course, some applications aren’t graphical in nature. One example of this is apt-get, which is a command-line package manager.
When you get used to using apt-get you won’t want to use the graphical software manager anymore.
Use Keyboard Shortcuts to Open Applications
You can set up keyboard shortcuts to open applications with Ubuntu.
- To do so, open the applications menu, and search for Settings.
- Open the Settings app.
- When the window opens, locate and press Devices in the left side menu.
- Now, the menu will change to show device related options. Choose Keyboard Shortcuts.
- The main body of the window will display a huge list of current keyboard shortcuts.
- Scroll to the very bottom of the list, and select the Plus Sign (+) icon.
- Another smaller window will pop up. Enter a Name for your shortcut. For the Command, you can usually use the name of the app. Sometimes, that’s different. You can search for the path to it with which . For example: which firefox
- If you don’t know the name of the command at all, you can try:
ls -lah /usr/bin | grep -i - Then, press Set Shortcut to input the key combination. Press the combination of keys that you want to assign the shortcut to on your keyboard. Then, press Add in the upper right of the window to create your shortcut
When the launcher has been created you can set the keyboard shortcut in the same way as the other launchers.
Источник
Launching application from terminal [duplicate]
How to launch a GUI application (e.g. gedit) from terminal and detach it from there in one step?
3 Answers 3
The & operator enables the application to run in the background. Use
(the latter lets you use the terminal after launching gedit, just press return to send it to the background). Nohup dispatches the application completely from the terminal and session.
There are two steps involved. One is generally called «backgrounding» and the other «disowning».
- You launch a background job by appending an ampersand & after the command. This sends the job to the background and allows your shell to continue running. The command you backgrounded is still running as a child process of the shell. You can see it in the list of shell jobs bu running jobs . You could run fg (or fb %N if you have more than one backgrounded job) to bring it to the foreground and send it things like Ctrl C .
- You disown a job by running disown %N where N is the job number. If you only have one backgrounded job this would be disown %1 . This kicks the background job «out of the nest» so that it is no longer a child of the shell. You can then close the shell and the disowned program would keep running.
Note: In ZSH you can shortcut the process of disowning by running command &! . The &! backgrounds and disowns in one step.
Источник
How do I open a terminal? [duplicate]
I just got ubuntu running on my computer and now I am ready to write a program. but I can’t figure out how to open a command terminal. I guess I don’t know where to find which version I am running either. Any help would be appreciated. Thank you.
2 Answers 2
- Open the Dash by clicking the Ubuntu icon in the upper-left, type «terminal», and select the Terminal application from the results that appear.
- Hit the keyboard shortcut Ctrl — Alt + T .
There are a couple of methods:
- If you’re running Unity: open the dash, type terminal, hit Return .
- If you’re on the old style menus, Applications → Accessories → Terminal.
- Control + Alt + T .
- Alt + F2 , gnome-terminal , Return .
- For a TTY: Control + Alt + F1..7 .
If you’re using Ubuntu variants, you might need to substitute gnome-terminal for xfce4-terminal , konsole or if you’ve gone off-piste, terminator (my fav) or if you’re running out of options, xterm . There are others — many, many others — but I doubt you’ll ever find them on a *buntu default install.
The TTYs are your last, best hope if you desperately need some form of terminal. Just be aware that they’re not conscious of the graphical environment so if you want to launch something graphical from one, you’ll need to run export DISPLAY=:0 first. Or adapt that if you’re running more than one X display.
Источник
What is the command to run System Settings from a terminal?
System Settings can be run from the launcher (pinned by default), the Dash, or the power cog. But what command would I enter in a terminal window if I want to run it from there?
8 Answers 8
Note: for versions between 14.04 and 17.04 (when Unity was used instead of GNOME), the command is unity-control-center .
if you run gnome-control-center and get command not found , you can install it with:
For Ubuntu Mate the command is mate-control-center .
I found a different solution.
I tried removing/installing gnome-control-center ; this did reinstall the application I still couldn’t open it.
Later I found that it would start up on the side of the screen and I couldn’t access it
I changed the display mode to single display and it came back. Hope it helps.
In Crouton, you must run anything that would require a password from the terminal, such as update manager, software center, synaptic, etc. So, to get to system settings you would enter in the terminal:
That will bring up the system settings GUI.
To check for updates, or if the update manager appears in the Unity Launcher, run it from the terminal, not by clicking on it:
The same applies to synaptic, the software center, etc. Anything which requires a password, must be run from the terminal in Crouton with a sudo .
Well, in KDE NEON 5.16.4 (Ubuntu 18.04), it is written in the «System Settings Handbook»:
The System Settings can be started in one of three ways:
- By selecting Settings → System Settings from the Application Menu.
- By pressing Alt + F2 or Alt + Space . This will bring up the KRunner dialog. Type systemsettings5 , and press Enter .
- Type systemsettings5 & at any command prompt. All three of these methods are equivalent, and produce the same result.
In my case, I needed to configure my HP LaserJet settings. Doing this as user, after applying and saving, they were ignored. So I think I had to do this as root and the settings are stored normaly now, so, each time the user opens the print dialog, the system remembers that I want log side binding and 1200 resolution :=)
I thought that sudo systemsettings5 & was enough, but as Zanna suggests: It should also be recommended to use ‘sudo -H’ if opening a GUI app with sudo.
Источник
How can I open (launch) files using the terminal?
Objective: Open a text file and other types using the terminal.
Let’s suppose I have a file named myFile.txt and I want to launch this file (open it, not sure how I’m supposed to say it), how can I do this?
As I searched all I could find was articles about create and edit files or display the content in the terminal.
Some of the failed attempts:
And, yes, I used the commands in the folder containing the file in question.
2 Answers 2
xdg-open will try to guess your desktop environment and the file’s mime type and try to open it in the appropriate application:
Select the tool manually
Typically, when using the terminal window and command lines, you are expected to know which tool you want to use. I know that this can be difficult in the beginning, but there are several things you might want to do.
If you use a graphical file manager, there is
- a main tool (for the main task), that you start by left-double-clicking on the file’s icon.
- and often a few other tools (for other tasks), that you can select after right-clicking on the file’s icon.
The main tasks for a text file might be editing and viewing.
In standard Ubuntu desktop there is gedit for these tasks.
If you want only viewing in text mode, you can use less
If you want to edit in text mode, you can use nano
So I suggest that you try
You mentioned some alternatives that do not work (because . )
This is typically used to run an executable file
This points to a file in the root directory /
This changes the terminal window to the specified directory ( cd ‘change directory’ makes the terminal window look at the specified directory. You should specify a directory (not a file) after the cd command.)
eog «Eye of Gnome» is a viewer for picture files.
xdg-open
Until you know which tool to use, you can try with xdg-open . It will select a tool for you depending of the kind of file you are using. I would expect that it will select gedit for text files and eog for picture files (in standard Ubuntu desktop).
Источник