0% found this document useful (0 votes)
22 views10 pages

The Linux Command Line: What Is The Shell?

The shell is a program that takes keyboard commands and passes them to the operating system to carry out. There are different types of shells including the C-shell, Bourne shell, and Bourne Again shell. When using a GUI, a terminal emulator is used to interact with the shell. The shell prompt ends with a $ for a regular user and # for the superuser. Basic commands like date, cal, df, free, and exit can be used to view the date, calendar, disk space, memory, and exit the shell.

Uploaded by

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

The Linux Command Line: What Is The Shell?

The shell is a program that takes keyboard commands and passes them to the operating system to carry out. There are different types of shells including the C-shell, Bourne shell, and Bourne Again shell. When using a GUI, a terminal emulator is used to interact with the shell. The shell prompt ends with a $ for a regular user and # for the superuser. Basic commands like date, cal, df, free, and exit can be used to view the date, calendar, disk space, memory, and exit the shell.

Uploaded by

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

The Linux

Command Line
Chapter 1
What is the Shell?
Prepared by Dr. Reyes, New York City College of Technology
What is the Shell?
• Shell - a program that takes keyboard commands
and passes them to the operating system to carry
out
• Types of Shells:
o C-Shell: csh, tcsh
o Bourne Shell: sh
o Bourne Again Shell: bash

• When using a GUI, a terminal emulator is used to


interact with the shell
o KDE uses konsole
o GNOME uses gnome-terminal
Shell Prompt
Session Privileges
• Prompt ending with:
o $ - regular user, privileges varies
o # - superuser
Command History
• Press up-arrow key for previous command
• Press down-arrow key for next command
• Press left-arrow key to move back in the same line
• Press right-arrow key to move forward in the same
line
• Limited support for mouse interaction
• Some keyboard shortcuts might not work, as they
belong to Windows:
o Ctrl-C
o Ctrl-V
Some Simple Commands
• Try the date command:
o Displays the current date
Some Simple Commands
• Try the cal command:
o Displays the calendar
Some Simple Commands
• Try the df command:
o Displays the disk available
Some Simple Commands
• Try the free command:
o Displays the memory available
Some Simple Commands
• Try the exit command:
o Use it to exit the system

You might also like