Linux program running window

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.

Читайте также:  Nvidia optimus linux mint

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:

Читайте также:  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.

Источник

How to Run an Application in Linux

Launching an application using an operating system is the basic task that anyone can perform. The working process of the Linux operating system is totally different from other operating systems like Windows OS or macOS. If you’re a Linux beginner, and want to know different ways to launch or run an application, this tutorial will show you all easy and possible ways.

How To Run an Application in Linux

Linux distribution always has several solutions to perform one operation. You will find multiple choices and can select any of them.

To run an application/program in Linux distributions can be done using command-line and GUI as well. These are the tricks we will cover in this tutorial to run a program:

(I am using Linux Mint 21 to explain these methods)

How To Run a Program Using Terminal in Linux

Most beginners might think that launching an application through GUI is easy. But when you use the command-line, it looks even easier.

To open the application through command-line, open the terminal and type the program name:

Читайте также:  Linux узнать java home

How To Run Program Using Run Command In Linux

The “run command” is an alternative way to get apps quickly without using a terminal. All distributions of Linux have run commands as a built-in tool. It is quite simple, when you press “alt+f2”, a dialogue box will appear instantly with a pop-up “Enter a Command”:

Enter a program name in the dialogue box and hit enter:

How To Run Program using Application Menu

Like Windows, an application launcher is the most common way to run programs. Application launcher has a list of several icons that you can run on time. As we are working on Linux Mint, you will see the application launcher at the bottom left corner of the screen. To run the application, simply navigate to that application icon and click it:

How To run Program using Application Launcher Search

Application menu is yet another easiest way to run programs on screen. What you need to do is open the application menu by clicking its icon located at the top left corner of the screen:

It will redirect you to the Software Manager, navigate towards the search bar and type the program name with correct spelling and select it to open:

How To Run Program Using Keyboard Shortcuts in Linux

If you’re a keyboard user and don’t prefer to use a mouse, then this trick will help you. Keyboard shortcuts allow the user to run programs without using a mouse. It would be done when paying attention to the few steps we have mentioned below:

Open the application menu, type keyboard in the search bar and hit Enter:

Move to the “Shortcuts” tab, select “Launchers” from the left corner and you will get “Custom Shortcuts” there, hit it and add any shortcut you want.

Conclusion

The Linux operating system provides multiple ways to the beginner. It helps them to learn each way and select their favorite one to perform the task. Similarly, this article has shown multiple tricks to run or launch a program in Linux. We have mentioned 6 easiest approaches to run or launch a program on a Linux system.

About the author

Syeda Wardah Batool

I am a Software Engineer Graduate and Self Motivated Linux writer. I also love to read latest Linux books. Moreover, in my free time, i love to read books on Personal development.

Источник

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