Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
13 views

Week 2 - Introduction To Linux

This document provides an introduction to Linux, including: - Linux is an open-source operating system kernel created by Linus Torvalds in 1991 that is now used widely in servers and supercomputers. - Popular Linux distributions combine the Linux kernel with additional software packages. The document discusses the Ubuntu distribution. - It covers basic Linux commands for navigating files and directories, viewing files, and getting help. Package management, users/groups, permissions, and the sudo command are also introduced.

Uploaded by

Zain iqbal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Week 2 - Introduction To Linux

This document provides an introduction to Linux, including: - Linux is an open-source operating system kernel created by Linus Torvalds in 1991 that is now used widely in servers and supercomputers. - Popular Linux distributions combine the Linux kernel with additional software packages. The document discusses the Ubuntu distribution. - It covers basic Linux commands for navigating files and directories, viewing files, and getting help. Package management, users/groups, permissions, and the sudo command are also introduced.

Uploaded by

Zain iqbal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Introduction to Linux

Waheed Iqbal
DevOps (Fall 2023)
Department of Data Science, FCIT, University of the Punjab
Lahore, Pakistan
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
Linux vs Unix
● Unix is an operating system that was developed at AT&T's Bell Labs in the
late 1960s and early 1970s. It has various commercial versions, including
AIX, Solaris, HP-UX, and more.

● Linux, on the other hand, is a free and open-source operating system kernel
initially created by Linus Torvalds in 1991. Linux distributions (commonly
known as Linux distros) combine this kernel with various software packages
to create complete operating systems.
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
Home Work
● Install Ubuntu on your laptop
● Practice different command and get comfortable with linux environment.
● Install packages, and play with files and folders.
● Install apache server and identify different configuration file of apache on the
file system
Next
● GIT - Version Control System
Credit
These slides use material from kodekloud.com

You might also like