Linux Crash Course
What will you learn
• Linux Distribution
• Basic Command
• Directory
• Users, Group
• Directory and File Permission
• Vi editor
• Linux Distribution
Linux
• Linux is an Operating System
• Distro / Flavor = Distribution
• Linux Kernel is the core
• Linux Kernel + Apps = Distro
Caption
Common Linux Distros
Caption
Caption
Caption
• Banks
• Airlines
• Telcos
• Healthcares
Caption
Caption
• Startup
• Cloud Based (company relied on cloud)
• Basic command
Commands often use
Caption
• Demo all above commands
Common Directories
• Directory
Caption
Directory Shortcuts
Caption
Caption
• Demo cd, mkdir, rm
Understand ls Output
Caption
Listing all files, hidden files
• ls -la
• ls -l -a
• ls -al
ls -F Reveals File Type
Caption
Listing Files by Time and Reverse
Caption
• Demo ls, ls -a, ls -F, ls -latr
• Users, Groups
Users, Groups
• Every user is in at least one group.
• Users can belong to many groups
• Groups are used to organize users
Users
• Listing users using: cat /etc/passwd
[username]:[x]:[UID]:[GUID]:[Comment]: [Home dir]:[Default shell]
• List specific user: id username
• Create user: sudo adduser username
• Delete user: sudo userdel username
• Demo add user, del user, list user
Groups
• List groups: cat /etc/group
• Create group: sudo groupadd group1
• Delete group: sudo groupdel group1
Users and Groups
• Add user to groups:
sudo usermod -a -G group1,group2… username
• Delete user from a group:
sudo gpasswd -d username groupname
• Change password for user:
sudo gpasswd username
• Demo add, delete group and add user to group.
• File, Directory Permission
Type
Caption
Permission
Caption
Permission Categories
Caption
Decode
Caption
Changing Permission
Caption
• Demo chmod
Numeric based Permission
Caption
Numeric based Permission
Caption
• Demo chmod with numeric based.
• VI Editor
Vi
• vi file_name
Caption
Caption Caption