Its distros come in GUI (graphical user interface), but basically, Linux has a CLI (command line interface).
In this tutorial, we are going to cover the basic commands that we use in the shell of Linux.
To open the terminal, press Ctrl+Alt+T in Ubuntu, or press Alt+F2, type in gnome-terminal, and press enter.
How do I get to the Linux command line?
Press Ctrl Alt T on the keyboard. If you prefer, there should be something called Terminal in your programs menu. You can search for it by pressing “Windows” key and typing “terminal”. Remember, commands in Linux are case sensitive (so upper- or lower-case letters matter).
How do I go back to command prompt in Linux?
When you run a command “in foreground” and you want to suspend it (not to stop definitively) you can press CTRL + Z . The shell will answer you in a similar way (e.g.) To continue the precedent job you can write %1 & (the same number you read from the terminal). You can also do it with bg %1 .
How do I run a program from terminal?
Follow these steps to run programs on terminal:
- Open terminal.
- Type command to install gcc or g++ complier:
- Now go to that folder where you will create C/C++ programs.
- Open a file using any editor.
- Add this code in the file:
- Save the file and exit.
- Compile the program using any of the following command:
How can I learn Linux commands in Windows?
The most common options are:
- Install Git for Windows. It will also install Git Bash, which is a command prompt that supports most Linux commands.
- Install Cygwin.
- Install a VM (e.g. VirtualBox) and then install a Linux distribution on top (e.g. Ubuntu).
Photo in the article by “Flickr”