Linux Shell Commands
Linux Shell Commands
EECP 3281
Recall
Operating System
Programming Language
Linux Operating System
What is an Operating System?
OS Interface
Command Line Interface
Graphical User Interface
Command Line Interface
requires the user to enter commands to the
computer using text only
Example : DOS
Graphical User Interface
provides access for the user to click on in
order to relay commands to the computer
In Linux
users can use both CLI and GUI
the program used to access the CLI for Linux is
called the shell
famous Linux shells: Bourne Shell, BASH, Korn
shell, C shell
Putty
an SSH and telnet client, developed originally
by Simon Tatham for the Windows platform.
an open source software that is available with
source code and is developed and supported
by a group of volunteers.
SSH-stands for secure shell
Try these commands
date
whoami
who
w
pwd
clear
man
uptime
useradd
cal
whatis
Try these commands
ls a
ls al
ls d
ls g
ls R
mkdir engg
cd engg
cd..
rmdir engg
UNIX shell emulator
http://bellard.org/jslinux/
The echo command
used to display a text or string
syntax
echo [options] [string, variable, ]
Try this code:
echo e Linux \t is \t an \n operating system
echo options
option meaning
-n Do not print with new line
-e Enable the backslash options below:
\a alert
\b backspace
\c suppress trailing new line
\n new line
\r carriage return
\t horizontal tab
\\ backslash
Challenge:
Ibra College of Technology
PO Box: 327, Postal Code:400
Al Sharqiyah North Governorate
Sultanate of Oman
Telephone: +968-25587800
+968-25587810
Fax: +968-25549020
Website: www.ict.edu.om
Concatenation of Commands
Write and execute the following code:
pwd; date; cal
What happened?