You are viewing the article How to Launch Programs from Command Line on Linux at Lassho.edu.vn you can quickly access the necessary information in the table of contents of the article below.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 4,760 times.
Most Linux distributions have a graphical user interface that allows us to open programs just by clicking on the program icon in the Apps menu. However, sometimes you may want to launch programs from Terminal. Terminal is a powerful tool that allows users to launch programs and manage Linux systems through keyboard commands. This wikiHow teaches you how to launch programs from Terminal on Linux.
Steps
Launch the program from Terminal


- For example, if you want to launch Firefox from the Terminal, you need to type firefox and press Enter .
- Type -h or --help after the program name to display the program’s help menu. Many programs have additional command modifiers that are used to run the program in a particular way. For example, you can launch a web browser by typing the web browser’s name, followed by the web address, and then pressing Enter to access the website using that web browser (e.g. firefox www.wikihow.com ).
- If the command line returns a message that you do not have permission to run the program or that access is denied, type sudo in front of the program name and then press Enter . The “sudo” command will allow regular users to execute Terminal commands as administrator or with super access (aka root privileges).
- If you want to launch a C or C++ programming language program from the Terminal, you need to compile the program first.
Launch a program outside the $PATH . variable




Add the directory to the $PATH . variable


- For example, if the program you want to launch is installed in the “bin” directory of the “Home” directory, type export PATH=$PATH:$Home/bin and press Enter . The directory “$Home/bin” will be temporarily added to the $PATH variable.
- You can see the directories under the $PATH variable by typing echo $PATH and pressing Enter .






Install and uninstall programs on Terminal






This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 4,760 times.
Most Linux distributions have a graphical user interface that allows us to open programs just by clicking on the program icon in the Apps menu. However, sometimes you may want to launch programs from Terminal. Terminal is a powerful tool that allows users to launch programs and manage Linux systems through keyboard commands. This wikiHow teaches you how to launch programs from Terminal on Linux.
Thank you for reading this post How to Launch Programs from Command Line on Linux at Lassho.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: