0% found this document useful (0 votes)
5 views39 pages

Linux Crash Course

The document is a Linux Crash Course that covers essential topics such as Linux distributions, basic commands, directory structures, user and group management, file permissions, and the Vi editor. It includes demonstrations of commands and concepts, as well as explanations of user and group organization within the Linux operating system. The course aims to provide foundational knowledge for users to navigate and manage Linux environments effectively.
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)
5 views39 pages

Linux Crash Course

The document is a Linux Crash Course that covers essential topics such as Linux distributions, basic commands, directory structures, user and group management, file permissions, and the Vi editor. It includes demonstrations of commands and concepts, as well as explanations of user and group organization within the Linux operating system. The course aims to provide foundational knowledge for users to navigate and manage Linux environments effectively.
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/ 39

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

You might also like