Linux OS Login Shell /
Interface
• >>> Linux VM Login Screen Appears:
• << Enter root and password>>:
• After logging Successfully,
• See User Shell Prompt
• [root@localhost ~]#
• # → This symbol shows the login user is root or Admin user in
Linux
• $→ This symbol shows the login user is normal user or a user
will have limited rights to run command
•
Linux Directories
• >>> Linux Directories
• Linux Directories ===
• Windows Folders (Folders and
Directories are
• used interchangeably.)
•
• >>> Linux Directories
• / → root directory (This is parent directory of all directories in
Linux)
• /home (Each normal user has its own directory under /home
directory)
• /root (This is root user home directory
Linux •
•
/bin (basic commands and root and normal user can be executed)
/sbin (Commands for root user only)
Directories •
•
/boot (boot files)
/usr (system software are installed)
• /dev (all hard disks) like sda, sdb
•
• >>> Basic Commands
• whoami
• who : To display all login users
• su <username> : Switch user
• uname -a:
Linux Basic • uname –r:
• man :
Commands • echo $SHELL
• cat /etc/redhat-release
• cat /etc/os-release
• ip addr
• Or
• ip a
•
• >>> Basic Commands
• pwd : present working directory
• cd : change directory
• ls :
• ls –l :
• clear :
Linux Basic
• date :
• cal :
• mkdir : directory
Commands •
•
mkdir -p
rmdir :
• cat :
• head :
• tail :
• yum (Yellow Dog, Updater, Modified):
Week 04 :
• >>> What we have learned in our previous Lab sessions
• Linux Installation
• Linux Shell (Interface)
• Shell Prompt : (username@machinename# or $)
• Linux user (root user and normal users)
• Special character or symbols like (#, $, & ~)
• Linux Directories : /, /home, /root, /bin, /sbin, /boot,
/usr, /dev, /etc and etc.)
• Linux Shell (Interface) Access : Direct and Remote
• Basic commands : whoami, who, uname, su, man,
echo, ip, cd, mkdir, rmdir, date, cal, clear, ls, & cat)
Week 04 :
• >>> Recall the following
• Tilda Sign(~) :
• Forward Slash (/) :
• /root, and /home/<username> directories
• Which command display disk information? :
• Which command display Linux kernel version information? :
• Which command display Linux OS and version information :
• Which Linux directory hold disk drives information? :
• How to access Linux remotely :
• How can we remove directory which has sub-directories or files? :
• How can we see network interface name information? :
Week 04:
• PRACTICE :
• Task 01:
• Create D1 directory, Under this directory create two more
directories as (D2, and D3). Return to D1 directory here you create
two more directories (D4, & D5) inside D3 directory, but the
command should be executed from D1 directory. After this, you
create two more directories (D6 & D7) under D2 directory
• Please note we will create all sub-directories from D1 directory
• Task 02:
• Please write the command to show directories in Hierarchical
View
• Task 03:
• Under D1 directory run command to remove D3 directory
• Hints: mkdir, cd, pwd, rmdir, ls, yum, tree
• >>> Command Structure
• Command [option] [argument]
• # ls –l <dir | file>
•
• >>> File management
Week 04 : • touch, cat, nano, vim
• Please learn the following command
• >>> less, more, head, tail