Run application command in linux

How to Run a Program in Linux?

Linux is an effective distribution to perform certain tasks through the command line, i.e., installing, updating, removing, etc. A Linux program can be run through the terminal and GUI(if available). Numerous program types require different ways to run them. This guide will teach you how to run the program using the GUI and Command Line Interface (CLI).

This post will cover the below informative topics:

  • Method 1: How to Run a Linux Program Using GUI?
  • Method 2: How to Run a Linux Program Using Terminal?
  • Method 3: How to Run a Program Using a Text-Based Command Dialogue Box?
  • Method 4: How to Run a Linux Program Using Customized Keyboard Shortcuts?
  • Additional Tip: Make File Executable Before Running a Program

Method 1: How to Run a Linux Program Using GUI?

Most beginners are used to running a program via GUI, as in Windows or macOS. The easiest way to run a program in Linux is using the GUI approach, which is the same as in Windows or macOS. To run a program in Linux using GUI, you can follow the below-given few steps (as an example, Google Chrome is being opened):

Navigate to the dock panel on the Left side of the screen and click on “Shown Applications” or press the Super key (Windows key) + A to launch the applications menu. A search bar will appear in the applications menu, enter the desired program and click its icon to run it.

Note: Ensure that the Linux program is installed on your system.

Method 2: How to Run a Linux Program Using Terminal?

The Linux default shell terminal is the most popular and used tool to run a program. The terminal is a command-line interpreter that takes the arguments as commands and performs that function. To run google chrome using the terminal, press “CTRL + ALT + T” to open the terminal and enter the desired program name to run it.

Читайте также:  What is jiffies linux

For instance, to run google chrome using the terminal, enter the name in the terminal, as shown below:

After pressing the “enter” key, the program will be launched:

Note: The program name is defined by the package provider, so make sure you are using the correct keywords to run it.

Method 3: How to Run a Program Using a Text-Based Command Dialogue Box?

Another way to run a Linux program is by using the default run command by simply clicking the “Alt + F2” or “FN + Alt + F2” keys. The run command is built-in Linux distribution to run the programs directly; for instance, to run “Google Chrome” using the run command, you need to perform below easy steps:

Press the “Alt + F2” shortcut keys to open the run command search box and enter the desired program (in this case, google-chrome) and press “Enter” to run:

Pressing the “Enter” key which will run the process and open the “ Google Chrome” browser:

Method 4: How to Run a Linux Program Using Customized Keyboard Shortcuts?

There are several built-in shortcuts that you can utilize to run the programs, but if you want to run a program with your desired shortcut keys, you can set it up.

To set up the desired shortcut keys to perform a specific task, follow the below steps:

Press Windows Key + A to open the applications menu or Click on “Show Application” from the Dock panel to launch the applications menu. Enter the “shortcut” in the search and click on the keyboard shortcuts icon:

Clicking on the Keyboard shortcut will open up the below interface; click on the “View and Customize Shortcuts”:

The system shortcut keys list will open up, now click on “Custom Shortcuts”:

It will open up a window to set desired shortcut keys for running a specific program. Press the “Add Shortcut” button to create the desired shortcut:

Set the name & command related to that program and press the “Set Shortcut…”:

Note: For instance, the command in the case of Google Chrome is “google-chrome”.

The below dialog window will open up to set the shortcut; press the desired keys who want to set the shortcut:

Читайте также:  Pubg mobile on linux

After pressing the keys (in this case, Ctrl + G), the keys will appear in front of the shortcut. Click the “Add” button to set the shortcut keys:

The shortcut key (Ctrl + G) is added to run Google Chrome. Now, navigate to the home screen and press the “Ctrl + G” to launch Google Chrome:

Additional Tip: Make File Executable Before Running a Program

Before running any program, make sure the program is executable. To make a program executable using GUI, the following basic changes are made:

Select the specified program file, right-click to open options, and press the shortcut keys “Ctrl + l” or click the “Properties” option to open file settings:

Move to the “Permissions” tab and check the “Allow executing file as program” option to make the file executable:

Now, you can run the program as done in previous sections.

Similarly, to make the file executable using the terminal, run the following command:

The program is executable and can be run using the terminal.

Conclusion

In Linux, a program can be run using different methods, including GUI, terminal, run command, and custom shortcut keys. Before running a program, ensure that the program is available on the system and is executable. This post has demonstrated multiple methods to run a Program in Linux.

Источник

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.

Читайте также:  Kali linux откат системы

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.

Источник

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