0% found this document useful (0 votes)
12 views36 pages

Week2 - Introduction To Linux

The document provides an overview of Linux including that it is free and widely used, describes Linux distributions like Ubuntu, and covers basic Linux commands, package management, users and groups, file permissions, and more.

Uploaded by

mubashrazaman33
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)
12 views36 pages

Week2 - Introduction To Linux

The document provides an overview of Linux including that it is free and widely used, describes Linux distributions like Ubuntu, and covers basic Linux commands, package management, users and groups, file permissions, and more.

Uploaded by

mubashrazaman33
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/ 36

Why 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:

● cat: output the entire file on your shell


● head: output the file from beginning for a specific
number of lines
● tail: output the file from end for a specific number of
lines
Basic Linux Commands: Pager
Basic Linux Commands: ls
Command Line Help
Most used commands
Linux Package Management
Linux Package Management (Cont.)
Linux Package Management (Cont.)
Linux Package Management (Cont.)
Functions of Package Manager Type of Package Manager
Working with DPKG
apt
apt and apt-get
● apt is more friendly than apt-get!
Linux User, Group, and File Permissions
User and Groups in Linux
User and Groups in Linux (Cont.)
● Every created user in the Linux will have username, UID, GID, Home
Directory, and Default Shell.
User and Groups in Linux (Cont.)
User and Groups in Linux (Cont.)
SuperUser DO (sudo)
● SuperUser DO (sudo) and is used to access restricted files and operations.

● 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

You might also like