After finishing very basic installation, now time to start using Linux operating system like a Professional. Okay, As we have already installed CentOS 7 Graphical User Interface but in the real world most of the Linux administrator performs their majority of tasks at the command line and they agree it is the fastest way to complete administrative duties within the shell environment, although it is possible to perform all Linux operations from GUI (Graphical User Interface). But the real power of Linux operating system is CLI (Command Line Interface).


We will start learning command line interface from very start.

How to Access Command Line
Linux Terminal is a bash shell (Bourneagain shell) which is created by Stephen R. Bourne for the UNIX Operating System. There are multiple shell environments are available for Linux such as KornShell and C shell. The default CentOS/Redhat shell is bash shell.

In CentOS 7, using Gnome Graphical User Interface you will find the command line shell under the Applications > Utilities > Terminal but in CentOS 6.x it was under Application > System Tools > Terminal.

See Image from CentOS 7

CentOS Terminal Access
CentOS Terminal Access
Linux Terminal Window in Gnome Desktop

While we are using GUI of CentOS/Redhat we can access the different terminals known as the virtual consoles or tty (stands for teletype) consoles by pressing Ctrl + Alt + F1 to F6 then here just login with your username and password.

Linux tty console preview

tty console
tty console
As described above we can press Ctrl + Alt and + F (1-6) Numbers to access multiple consoles. Now we don’t have any scroll here to go page up or page down, but still we can use Shift + Page Up or Shift + Page Down key to scroll the page up or down on the tty console.
To return back to the GUI just press the Ctrl + Alt + F1 key.
After providing user name and password we will get Linux command prompt, similar like showing in below image.
Linux Command Prompt
Linux Command Prompt

Here we will explain all of above arrows one by one.

  1. Logged in user name, as now currently we are logged in with root user.
  2. After the @ sign we have hostname of our Linux box.
  3. This is our current working directory, “~” it is user home directory sign in Linux.
  4. “#” hash sign or number sign means we are logged in with super user such as “root” it will be changed in case if we are logged in with normal Linux user e.g “$”
  5. Just for example we give “hostname” command to shell, hostname is used to know the fully qualified hostname of your Linux machine
  6. This is output of our previously entered command

Next: Basics of Linux Directory Structure

If you like this Post, please give us your valuable feedback by pressing Vote Up / Vote Down Button. Thanks.


Similar Posts