Week2 - Introduction To Linux
Week2 - Introduction To Linux
● It is free
● It runs on top 500 supercomputers
● Most of the servers in the world use Linux
● This course requires you to work on Linux!
Linux
● Linux is a family of open-source Unix-like operating systems
● 1991 - Linus Torvalds, introduced first free and open-source Linux
kernel
● Linux is typically packaged as a distribution, which includes the kernel
and supporting system software and libraries
● There are many different distributions of Linux available
Let's have a look at Ubuntu (A Famous
Linux Distribution) environment!
Basic Linux Commands: The Home Directory
Basic Linux Commands: Command and Arguments
Basic Linux Commands
Basic Linux Commands
Basic Linux Commands
Basic Linux Commands
Basic Linux Commands: Reading Files
Let's practice few command for text reading:
● By default, Linux restricts access to certain parts of the system preventing sensitive files
from being compromised.
● The sudo command temporarily elevates privileges allowing users to complete sensitive
tasks without logging in as the root user.
User and Group Management
● useradd bob: create a user bob
● useradd -m bob: create a user bob
and also create its home directory
● groupadd will create a group
● groupdel will delete group
● userdel will delete user
● passwd will allow to change
password
Access Control Files in Linux
● /etc/passwd contains users information
● /etc/shadow contains hashed password
● /etc/group contain group information
File Permissions
File Permissions: chmod
chmod: use to change the permission of the file
File Permissions: chown
Credit
These slides use material from kodekloud.com