![]() 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.The "sudo" command allows regular users to run Terminal commands with administrative privileges or root access. 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.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. Many programs have additional command modifiers you can use to launch the program in a specific way. Type -h or -help after the program name to display the help menu for that program.A command line is the space in a command line interface (CLI), i.e. A program is a sequence of instructions that are understandable by a computers CPU (central processing unit) and that indicate which operations the computer should perform on a set of data. For example, if you want to run Firefox from the Terminal, you would simply type firefox and press Enter. A command line program is a program that operates from the command line or from a shell. ![]() As long as a program is in your user "$PATH" variable, Linux will search $PATH for the program and launch it automatically. Unlike the Windows command-line (CMD), you do not need to type out the full directory path or change directories for most programs in Linux. Type the name of the program and press ↵ Enter.
0 Comments
Leave a Reply. |