How to open apps on linux

How To Open Applications In Ubuntu Terminal

You can open an application by using the Linux terminal. First open the terminal (press CTRL, ALT and T) or open it from Ubuntu Dash.

Now type the program’s name into the terminal. If you are not sure for the commands name, follow the steps:

First Method

Open /usr/share/applications. The default applications will have a .desktop file stored in /usr/share/applications folder.

From here right click on the application whose command you want to find out. Right clicking on the application’s icon will show the Properties. Under command box you can see the command to run in the terminal.

Second Method

To quickly find the locations of the application (gedit in this example) executable, run which gedit and for a listing of filesystem locations, run whereis gedit:

sourcedigit@SD:~$ whereis gedit
gedit: /usr/bin/gedit /usr/share/gedit /usr/share/man/man1/gedit.1.gz
sourcedigit@SD:~$ which gedit
sourcedigit@SD:~$ /usr/bin/gedit

Now run the command /usr/bin/gedit in terminal to open the app from terminal.

Filed Under: Uncategorized Tagged With: open, terminal, Ubuntu

Primary Sidebar

  • 3 Ways to Disable GetApps on Xiaomi, Redmi, and Poco Phones Running MIUI 1.9k views
  • 8 Best Sites to Read Manga Online for Free 1.6k views
  • Exclamation Mark on Network Signal, Mobile Data Not Working? 8 Ways to Fix 1.4k views
  • How To Extract & Install tar.gz Files In Ubuntu 1.4k views
  • [Working] Remove Blue Circle From Your Samsung Phone Touchscreen 1k views
  • How To Search On Google Using Image or Video 1k views
  • How to Fix YouTube Server Connection Error [400] on Android 1k views
  • Discord Stream Has No Sound? 6 Ways to Fix 0.9k views
  • How To Install Android App APK on Samsung Tizen OS Device 0.9k views
  • How to Copy Paste in Linux Terminal [For Absolute Beginners] 0.9k views
  • 3 Ways to Hide Tabs in Google Chrome 0.9k views
  • How to find a lost Apple Pencil using your iPad (1st and 2nd gen) 800 views
  • Service Host Network Service High network usage in Windows 11/10 800 views
  • Troubleshooting “E: Unable to locate package” Error on Ubuntu [Beginner’s Tutorial] 800 views
  • Linux: What is Opt Directory and How to Open Opt Directory 700 views
  • How do I enable or disable Alt Gr key on Windows 10 keyboard 700 views
  • How to Create a Multi-Page PDF in Photoshop 700 views

Источник

5 Ways to Open or Launch an Application in Debian

Debian Launch Application from Desktop

The calculator is one of the basic tools of any operating system. The Linux operating system also includes a calculator application, which is perfectly sufficient for basic use. You can solve both simple and complex mathematical equations. By default, the calculator application in Linux appears in a simple mode. However, to perform more advanced calculations, you can switch to different modes, such as advanced mode, financial mode, and programming mode.

Читайте также:  Полное обновление кали линукс через терминал

If you use the calculator regularly, you may find ways to start it with a method that best suits your needs. In this article, we’ll explain 5 different methods you can use to open an application in your Linux operating system. The methods described include opening the application both from the GUI and from the terminal.

We have used Debian 11 as the operating system to describe the methods described in this article.

Method 1: Launch Apps using Terminal

The Terminal is an easy way to launch applications in Linux. To open an application via Terminal, Simply open the Terminal and type the application name.

To open the Terminal, go to the Activities tab located on the top left corner of the desktop. Then in the search bar, type terminal. When the Terminal icon appears, click on it to launch it. Type the below command in it to launch the calculator:

Gnome Calculator

Method 2: Using the Run Command dialog

Run Command dialog provides a quick way of opening an application without opening the Terminal. It is already built-in to all Linux distributions. To access it, just press Alt+F2.

If you want to run a quick command, it will instantly open a dialog box, type the below command and hit enter:

It will launch the calculator application instantly.

Gnome Terminal

Method 3: Using the keyboard shortcut

If you frequently use the calculator application, you can set a keyboard shortcut for it to quickly launch it. To create a shortcut, go to the Activities tab on the top left corner of your desktop. In the search bar, type keyboard. From the results, select the Keyboard option as shown in the below image.

Create Keyboard Shortcut

It will open up a window. From its right pane, click on Launch calculator option.

Keyboard shortcut settings

A dialog box will appear for you to set a shortcut for calculator application. Press the keys simultaneously you wish to use for the shortcut.

Set Shortcut

Once done, click on the Set button.

Enter new shortcut

Now whenever you need to use the calculator, just press the shortcut keys and the calculator will open instantly.

Method 4: From the Applications list

Ubuntu list of applications include the Gnome calculator application. To access the list of applications, click on the Activities tab on the top left corner of your desktop, then on the down left corner of your desktop, you will see dotted icons. Click on that to view the list of installed applications.

GNOME application list

Here you will find your Gnome calculator application.

List of installed Linux applications on GNOME Desktop

Another way to open up a calculator application in Debian is by using the Application launcher search. It can help you to find any installed application and system utilities.

To find calculator application using the application launcher search, hit the super keys and in the search bar, type calculator. Then from the search results that appear, simply click the calculator application.

Search for an application

In this article, we have discussed different ways to open a calculator application. You can try and use any method which you find more convenient.

Источник

How to Run a Program from the Command Line on Linux

This article was co-authored by wikiHow staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for wikiHow. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College.

Читайте также:  Все скины на линукс

The wikiHow Tech Team also followed the article’s instructions and verified that they work.

This article has been viewed 277,537 times.

Most Linux distributions have a graphical user interface that allows you to open programs by just clicking on the program’s icon in the Apps menu. However, there are situations where you may want to run a program from the Terminal. The Terminal is a powerful tool that allows you to run programs and manage your Linux system using keyboard commands. This wikiHow teaches you how to run a program from the Terminal in Linux.

Running a Program From the Terminal

Image titled Run a Program from the Command Line on Linux Step 1

Press Ctrl + Alt + T to open the Terminal. You can open the Terminal using the keyboard shortcut on most Linux distributions. The keyboard shortcut is Ctrl + Alt + T. You can also click the Terminal icon in your Apps menu. It generally has an icon that resembles a black screen with a white text cursor.

Image titled Run a Program from the Command Line on Linux Step 2

  • For example, if you want to run Firefox from the Terminal, you would simply type firefox and press Enter.
  • Type -h or —help after the program name to display the help menu for that program. Many programs have additional command modifiers you can use to launch the program in a specific way. For example, you can launch a website in a web browser by typing the web browser name followed by the web address and press Enter to launch that website in the web browser (i.e. firefox www.wikihow.com .
  • If you receive a message that says you don’t have permission to run a program or access is denied, type sudo before the program name and press Enter. The «sudo» command allows regular users to run Terminal commands with administrative privileges or root access.
  • If you want to run a C or C++ program from the Terminal, you will first need to complie the program before you can launch it from the Terminal.

Running a Program Outside the $PATH Variable

Image titled Run a Program from the Command Line on Linux Step 3

Press Ctrl + Alt + T to open the Terminal. You can open the Terminal using the keyboard shortcut on most Linux distributions. The keyboard shortcut is Ctrl + Alt + T. You can also click the Terminal icon in your Apps menu. It generally has an icon that resembles a black screen with a white text cursor.

Image titled Run a Program from the Command Line on Linux Step 4

Type cd followed by a space and the location the program file is saved to. If the program launch file is saved to a location that is not in your $PATH variable, then you will need to navigate to that location inside the Terminal. You can do so using the «cd» command. For example, if you have folder for Python programs saved in your «Documents» folder, you can navigate to it in the Terminal by typing cd ~/Documents/Python or something similar, and then press Enter.

Image titled Run a Program from the Command Line on Linux Step 5

Type chmod a+x [filename] and press ↵ Enter . Replace «filename» with the actual launch file of the program. The «chmod a+x» command tells Linux the file is an executable file. [1] X Research source

Image titled Run a Program from the Command Line on Linux Step 6

Type «./» followed by the launch filename and press ↵ Enter . This launches the program. For example, if you have a Python file called «Helloworld.py», you would type ./helloworld.py to launch the file. [2] X Research source

Adding a Directory to your $PATH Variable

Image titled Run a Program from the Command Line on Linux Step 7

Press Ctrl + Alt + T to open the Terminal. If you cannot run a program by simply typing the program’s name, you may need to add the directory that the program is installed in to your $PATH variable. You can do this from the Terminal as well. Use the keyboard shortcut to open the Terminal if you haven’t already done so.

Читайте также:  Перезапуск dhcp сервер linux

Image titled Run a Program from the Command Line on Linux Step 8

  • For example, if you have a program installed in the «bin» directory of your «Home» folder, you would type export PATH=$PATH:$Home/bin and press Enter. This will temporarily add the «$Home/bin» directory to your $PATH variable.
  • You can see which directories are currently added to your $PATH variable by typing the command echo $PATH and pressing Enter.

Image titled Run a Program from the Command Line on Linux Step 9

Type nano ~/.bashrc and press ↵ Enter . This opens the «.bashrc» file in a text editor that is based in the Terminal. You can use this file to permanently add the directory to your $PATH variable.

Image titled Run a Program from the Command Line on Linux Step 10

Add the «export PATH» command to the file. To do so, scroll down to the bottom of the file using the mouse wheel and type export PATH=$PATH:[path/to/program] at the bottom. Replace «[path/to/program]» with the actual directory tree the program is installed in. [3] X Research source

Image titled Run a Program from the Command Line on Linux Step 11

Image titled Run a Program from the Command Line on Linux Step 12

Press Y and press ↵ Enter . This confirms that you want to save and exit the text editor. You will be returned to the standard command prompt in the Terminal.

Image titled Run a Program from the Command Line on Linux Step 13

Type source ~/.bashrc and press ↵ Enter . This loads the updated $PATH variable into your current session. [4] X Research source

Image titled Run a Program from the Command Line on Linux Step 14

Type the name of the program and press ↵ Enter . With the program’s directory now added to your $PATH variable, you should be able to launch the program by simply typing the program name and pressing Enter.

Installing and Uninstalling a Program in the Terminal

Image titled Run a Program from the Command Line on Linux Step 15

Press Ctrl + Alt + T to open the Terminal. In addition to launching programs from within the Terminal, you can also install and uninstall programs from within the Terminal. Use the keyboard shortcut to open the Terminal if you haven’t already done so.

Image titled Run a Program from the Command Line on Linux Step 16

Type sudo apt install [app_name] and press ↵ Enter (Debian). Replace «[app_name]» with the actual name of the program you want to install. This command works in Debian-based Linux distributions, such as Ubuntu, and Mint.

Image titled Run a Program from the Command Line on Linux Step 17

Type sudo apt remove [app_name] and press ↵ Enter (Debian). Replace «[app_name]» with the name of the app you want to uninstall. This command works in Debian-based Linux distributions, such as Ubuntu, and Mint.

Image titled Run a Program from the Command Line on Linux Step 18

Type sudo dnf install [app_name] and press ↵ Enter (Red Hat). Replace «[app_name]» with the actual name of the program you want to install. This command works for Red Hat Linux distributions such as RHEL, Fedora, and CentOS.

Image titled Run a Program from the Command Line on Linux Step 19

Type sudo dnf remove [app_name] and press ↵ Enter (Red Hat). Replace «[app_name]» with the name of the app you want to uninstall. This command works for Red Hat Linux distributions such as RHEL, Fedora, and CentOS. [5] X Research source

Image titled Run a Program from the Command Line on Linux Step 20

Type the name of the program and press ↵ Enter . Once the program is installed, you can launch the program by simply typing the program’s name and pressing Enter in the Terminal.

Expert Q&A

Tips

You Might Also Like

Convert from Binary to Decimal

Format Text as Code in Discord

Change Code on Schlage Lock

How to Change 4-Digit User Codes on Schlage Locks

Delay a Batch File

How to Delay a Batch File: Timeout, Pause, Ping, Choice & Sleep

Reset Schlage Keypad Lock Without Programming Code

How to Factory Reset a Schlage Lock & Restore the Default Programming Code

Download a File from GitHub

Write Pseudocode

Learn to Write Pseudocode: What It Is and Why You Need It

Code

Make an Exe File

View Source Code

Start Learning Computer Programming

How to Start Coding: The Beginner’s Guide to Programming

Make a Program Using Notepad

Download a GitHub Folder

3 Ways to Download GitHub Directories and Repositories

Источник

Оцените статью
Adblock
detector