0% found this document useful (0 votes)
83 views3 pages

Terminal and Shutdown CMD

The terminal is a program that takes user input in the form of commands and displays outputs. For Windows, the console performs these same functions. When a user presses enter, the terminal passes commands to the shell program. The shell interprets commands, checks syntax, converts commands to a format the kernel can understand, and passes them to the kernel. It then displays a prompt waiting for the next command. The shell acts as an interface between the user and kernel. Reboot and shutdown commands are also provided to restart or power off the system respectively.

Uploaded by

rahul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views3 pages

Terminal and Shutdown CMD

The terminal is a program that takes user input in the form of commands and displays outputs. For Windows, the console performs these same functions. When a user presses enter, the terminal passes commands to the shell program. The shell interprets commands, checks syntax, converts commands to a format the kernel can understand, and passes them to the kernel. It then displays a prompt waiting for the next command. The shell acts as an interface between the user and kernel. Reboot and shutdown commands are also provided to restart or power off the system respectively.

Uploaded by

rahul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

What is Terminal, Console, Shell?

1. Terminal:

The terminal is a program that provides the user with a simple command-line interface and
performs the following 2 tasks:

1]Takes input from the user in the form of commands

2]Displays output on the screen

We can say the terminal is a dumb thing so it does not know what to do with the input, so it needs
another program to process it, and in most cases, it’s the Shell.

2. Console:

In the case of Windows OS, the “Console” performs the same operations performed by the terminal,
so we can say for Windows OS, the Console is the alias name for the Terminal.
3. Shell

After writing our commands on the terminal, when we press the Enter key, the terminal passes
those commands to another program to figure out what the user wants to do, and in most cases,
that program is the Shell, which forms the outer layer of Linux OS, which performs the following
functions:

1. Interprets the command given by the end-user

2. Checks the syntax of the command and then Checks whether the command is correctly
used or not.

3. If everything is correct, the shell converts the command into a kernel-understandable


form and passes it to the kernel.

Else, it returns an error message

4. The $ prompt appears on the terminal waiting for the next command, irrespective of
whether the previous commands were correct or not.

The shell is the mediator or the interface between the end-user and the kernel.

Reboot >>
systemctl reboot – to restart machine.

Reboot – it is a alias of above cmd

init 6 - to reboot your machine force fully.

shutdown -r 5:30 – To schedule reboot at specific time

shutdown -c – To cancel a scheduled reboot

shutdown -r +15 – To schedule reboot after 15 min.

shutdown -r now -To schedule reboot now.

Shutdown >>

systemctl poweroff - To shutdown machine

Poweroff -- alias of above command.

Init 0 - forcefully shutdown your machine

shutdown 5:30 - To schedule shutdown at specific time

shutdown -c -- To cancel a schedule.

shutdown +15 – To shut down after 15 min.

shutdown now – To shut down now


$- is for normal user
# - is for super user or root user.

~ Always represents current user home directory , for rnikrad it’s /home/rnikrad

You might also like