SlideShare uma empresa Scribd logo
1 de 38
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
What Will You Learn Today?
✓ Birth of Linux: Why did Linux become popular?
✓ Various distributions of Linux
✓ Getting started with Linux
✓ Basic Linux commands
✓ Working with files & directories
✓ Adding/ deleting users
✓ Networking in Linux: Using SSH for communication
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Why Did Linux Become Popular?
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Birth Of Linux
1969
 Birth of ‘C’ and Unix OS
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Birth Of Linux
1970’s
 Growth of Unix because of open-source collaboration
 Commercial sale of Unix
1969
 Birth of ‘C’ and Unix OS
1
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Birth Of Linux
1970’s
 Growth of Unix because of open-source collaboration
 Commercial sale of Unix
1969
 Birth of ‘C’ and Unix OS
1
2
1980s
Companies developing their own Unix:- IBM(AIX),
Solaris(Sun OS), HP(HP-UX)....
Mid-to-late 1980s
 Birth of free software movement  GNU Project
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Birth Of Linux
1980s
Companies developing their own Unix:- IBM(AIX),
Solaris(Sun OS), HP(HP-UX)....
Mid-to-late 1980s
 Birth of free software movement  GNU Project
1970’s
 Growth of Unix because of open-source collaboration
 Commercial sale of Unix
1990s
 Linus Torvalds put the Linux kernel source code online.
Resulted in usage of ‘Linux + GNU’
1969
 Birth of ‘C’ and Unix OS
1
2
3
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Various Linux Distributions
F e d o r a
R E D H AT E N T E R P R I S E
L I N U X
D e b i a n
O t h e r s
01
02
03
04
Commercial Linux
distribution intended for
servers and workstations.
Sponsored by
Red Hat, is the
foundation for the
commercial RHEL
Debian is an OS
composed only of
free, open-source
software.
Other popular distributions include:
Ubuntu, Linux Mint, CentOS,
openSUSE / SUSE Linux Enterprise….
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Linux’s Features
Free
Software
Licensing
Better
Malware
Protection
Multiple
Distributions
Access To
Source Code
Simplified
Updates For All
Installed S/W
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Hands-on: Linux Commands
02
cat, grep, sort,
pipe commands
03
cp, mv, mkdir,
rm, rmdir & user
permissions
04
Linux repository,
tar files, env var
& regex
05
Processes,
adding users
& ssh
01
pwd, clear, ls &
cd commands
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With Directories: ‘pwd’ & ‘clear’
 Linux provides a CLI (Command Line Interface) to communicate with the OS.
 CLI is better for tasks which cannot be performed with the GUI.
Command Explanation
pwd Displays the current working directory of the terminal
/ Root directory
echo Command that writes its arguments to standard output.
su Used to switch to root user(so that super user permissions can be used to execute commands)
su username Used to switch to a different user
sudo Executes only that command with root/ super user privileges
clear This command is used to clear the terminal screen. Contents will not be deleted but scrolled down
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With Directories: ‘ls’ Command
$ ls [options] [file | Directory]
ls This command lists all the contents in the current working directory
ls path By specifying the path after ls, the content in that path will be displayed
ls –l Using ‘l’ flag, lists all the contents along with its owner settings, permissions & time stamp (long format)
ls –a Using ‘a’ flag, lists all the hidden contents in the specified directory
ls --author Using ‘--author’ flag, lists the contents in the specified directory along with its owner
ls –S Using ‘a’ flag, sorts and lists all the contents in the specified directory by size
ls *.html Using ‘*’ flag, lists only the contents in the directory of a particular format
ls –lS > file.txt Using ‘>’ flag, copies the result of ls command into a text file
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With Directories: ‘cd’
cd Changes the directory to the home directory
cd ~ This command also changes the directory to home directory
cd / Changes the directory to root directory
cd .. Changes the directory to its parent directory
cd ‘xx yy’ We specify the folder name in inverted commas because there is a space in the folder name
$ cd [directory]
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Hands-on: Linux Commands
02
cat, grep, sort,
pipe commands
03
cp, mv, mkdir,
rm, rmdir & user
permissions
04
Linux repository,
tar files, env var
& regex
05
Processes,
adding users
& ssh
0101
pwd, clear, ls &
cd commands
01
pwd, clear, ls &
cd commands
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With Files: ‘cat’ Command
$ cat [options] file1 [file2..]
cat This command is used to display the content of text files and concatenate several files into one
cat -b This is used to add line numbers to non blank lines
cat -n This is used to add line numbers to all lines
cat -s This is used to squeeze blank lines into one line
cat –E Show $ at the end of line
$ cat > file1.txt
The ‘>’ flag can be used to create a new file and enter text contents from the terminal
$ cat >> file1.txt
The ‘>>’ flag can be used to append text contents to an existing file from the terminal
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With ‘grep’ Command
We use the ‘grep’ command to search for a particular string/ word in a text file.
This is similar to “Ctrl+F”, but executed via a CLI.
$ grep options file1.txt // Returns results for matching string “options”
$ grep –i options file1.txt // Returns the results for case insensitive strings
$ grep –n options file1.txt // Returns the matching strings along with their line number
$ grep –v options file1.txt // Returns the result of lines not matching the search string
$ grep –c options file1.txt // Returns the number of lines in which the results matched search string
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With ‘sort’ Command
We use the ‘sort’ command to sort the results of a search either alphabetically or numerically.
Files, file contents and directories can be sorted.
$ sort file1.txt // Sorts the contents of file1.txt and returns them in alphabetical order
$ sort File1.txt File2.txt // Sorts the contents of both File1.txt & File2.txt
$ sort –r file1.txt // ‘r ’ flag returns the results in reverse order;
$ sort –f file1.txt // ‘f’ flag does case insensitive sorting
$ sort –n file1.txt // ‘n’ flag returns the results as per numerical order
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With ‘|’ Command
The ‘|’ command a.k.a ‘pipe’ command is used to output the result of one command as input to another command.
‘|’ are used to perform two operations in the same command
$ grep dh File1.txt File2.txt | sort // Searches for string ‘dh’ from both files and sorts the results
$ grep dh File1.txt File2.txt | sort -r // Sorts the results in reverse order
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Hands-on: Linux Commands
02
cat, grep, sort,
pipe commands
03
cp, mv, mkdir,
rm, rmdir & user
permissions
04
Linux repository,
tar files, env var
& regex
05
Processes,
adding users
& ssh
01
pwd, clear, ls &
cd commands
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With Files & Directories: ‘cp’ Command
$ cp [options] source destination
cp This command is used to copy files and directories
cp -i Enters interactive mode; CLI asks before overwriting files
cp -n Does not overwrite the file
cp -u Updates the destination file only when source file is different from destination file
cp -R Recursive copy for copying directories; Copies even hidden files
cp -v Verbose; Prints informative messages
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With Files & Directories: ‘mv’ Command
$ mv [options] source destination
mv This command is used to move files and directories
mv -i Enters interactive mode; CLI asks before overwriting files
mv -u Updates the destination file only when source file is different from destination file
mv -v Verbose; Prints source and destination files
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With Directories: ‘mkdir’ Command
$ mkdir directory-path
mkdir This command is used to create a new directory
mkdir -p Creates both a new parent directory and a sub-directory
mkdir --parents This is also used for the same process
mkdir –p file1/{f2,f3,f4} This is used to create multiple subdirectories inside the new parent directory
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With Files & Directories: ‘rm’ & ‘rmdir’
$ rmdir foldername
$ rm filename/ foldername
rmdir This command is used to remove the specified directory (Empty)
rmdir –p Removes both the parent and child directory
rmdir –pv Removes all the parent and sub directories along with the verbose.
rm –r Removes even non empty directories.
rm –rp Removes non empty directories including parent and subdirectories.
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With User Permissions: ‘r’, ‘w’ & ‘x’
$ l s – l
$ e d u r e k a 5 2 5 5 0 4 0 2 A u g 1 2 2 0 1 6
FILE/DIR
TYPE
USER
PERMISSIONS
GROUP
PERMISSIONS
Other’s
PERMISSIONS
Read – ‘r’
Write – ‘w’
Execute – ‘x’
FILE PERMISSIONS
Normal File – ‘-’
Directory – ‘d’
Character Special File – ‘c’
Binary Special File – ‘b’
FILE TYPES
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With User Permissions: ‘r’, ‘w’ & ‘x’
$ l s – l
$ 1 e d u r e k a e d u r e k a 5 2 5 5 0 4 0 2 A u g 1 2 2 0 1 6
FILE/DIR
TYPE
USER
PERMISSIONS
GROUP
PERMISSIONS
Other’s
PERMISSIONS
SYMBOLIC
LINKS
Owner
Name
Group
Name
Read – ‘r’
Write – ‘w’
Execute – ‘x’
FILE PERMISSIONS
Normal File – ‘-’
Directory – ‘d’
Character Special File – ‘c’
Binary Special File – ‘b’
FILE TYPES
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With User Permissions: ‘r’, ‘w’ & ‘x’
$ l s – l
$ 1 e d u r e k a e d u r e k a 5 2 5 5 0 4 0 2 A u g 1 2 2 0 1 6
FILE/DIR
TYPE
USER
PERMISSIONS
GROUP
PERMISSIONS
Other’s
PERMISSIONS
SYMBOLIC
LINKS
Owner
Name
Group
Name
Time
Stamp
FILE
SIZE
Read – ‘r’
Write – ‘w’
Execute – ‘x’
FILE PERMISSIONS
Normal File – ‘-’
Directory – ‘d’
Character Special File – ‘c’
Binary Special File – ‘b’
FILE TYPES
Users – ‘u’
Groups – ‘g’
Others – ‘o’
All – ‘a’
DENOTIONS
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With User Permissions: ‘r’, ‘w’ & ‘x’
Commands Explanation
chmod g+wx filename This gives the write and execute permission to group members
chmod u=rwx,o-wx filename
This gives the read, write and execute permission to owners, and
removes the write and execute ownership from other members
chown username filename Changes the owner of the specified file
chown username:groupname filename Changes both the owner and group ownership of the specified file
chgrp groupname filename Changes the group ownership of the specified file
chmod : To change the access permissions of files and directories
chown : To change the owner of files and directories
chgrp : To change the group ownership of file and directories
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Hands-on: Linux Commands
02
cat, grep, sort,
pipe commands
03
cp, mv, mkdir,
rm, rmdir & user
permissions
04
Linux repository,
tar files, env var
& regex
05
Processes,
adding users
& ssh
0101
pwd, clear, ls &
cd commands
01
pwd, clear, ls &
cd commands
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With Linux Repositories
$ sudo yum install package-name // For RHEL based systems
$ sudo apt-get install package-name: // For Debian based systems
$ sudo dnf install package-name // For Fedora based systems
$ sudo yum update
$ sudo yum install java-1.8.0-openjdk
$ update-alternatives --config java // For selecting from various java versions
$ cd
$ sudo gedit .bashrc
# Set the Environment variables here
$ source .bashrc
Java8 Installation
Stable versions of most software's will already be available in Linux repositories. Command to install them:
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Working With Tar Files
When you download a package from the internet, the downloaded file comes in compressed form.
Commands to decompress and compress files in Linux:
$ tar –cvf tar-file-name file-name // Compressing files to Tar format
$ tar –xvf tar-file-name // Extracting/ Decompressing files in Tar format
gzip: To compress files with .gz format
gunzip: To decompress .gz files
tar: To compress and decompress files with .tar format
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Environment Variables
Environment variables control the behavior of the software packages installed in Linux.
The path where the packages have been installed will be specified in environment variables.
$ printenv // Prints the list of all environment variables
$ echo $HOME // This will print the path of the home directory of the user
$ echo $PATH // It is a colon-separated list of directories in which the shell looks for commands
$ echo $HOSTNAME // This will print the hostname
$ echo $USERNAME // This will print the username
$ echo $LANG // This will print the language being used
$ echo $BASH_VERSION // This will print the version of this instance of bash
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Regular Expressions
Regular Expressions (RegEx) are used to search through data.
It can be piped along with ‘grep’ command to find patterns of text in the file.
$ cat File1.txt | grep ^a
$ grep 'a[0-9]x' File1.txt
$ ls | grep '[xt$]'
Symbol Explanation
. Replaces any character
^ Matches the start of the string
$ Matches the end of the string
* Matches the preceding character zero or more times
? Matches the preceding character one or more times
( ) Groups regular expressions
 Represents special characters
$ ls | grep 'le[0-9].txt‘
$ grep -n ['a*'] File1.txt
$ grep ['d.d'] File1.txt
$ echo {a..z}
$ echo {4..45}
$ echo 1{a..z}9
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Hands-on: Linux Commands
02
cat, grep, sort,
pipe commands
03
cp, mv, mkdir,
rm, rmdir & user
permissions
04
Linux repository,
tar files, env var
& regex
05
Processes,
adding users
& ssh
0101
pwd, clear, ls &
cd commands
01
pwd, clear, ls &
cd commands
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Processes
 An instance of a program is called a process.
 Any command given to Linux kernel starts a new process.
 There can be multiple processes (instances) of the same program.
Processes
Foreground
Processes
Background
Processes
$ t o p
P I D U S E R P R N I V R T R E S S H R S % C P U % M E M T I M E + C O M M A N D
Process
ID
User Name
Priority
Niceness
Value
Virtual
Memory
Physical
Memory
Shared
Memory
Status
CPU Time
Physical
Memory Used
Total CPU
Time
Command
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Creating Users
$ sudo useradd user-name // Adding a new user
$ sudo passwd user-name // Setting a password for that user
$ sudo userdel user-name // Deleting that user
$ sudo groupadd group-name // Adding a new group
$ sudo groupdel group-name // Deleting that group
$ sudo usermod -g group-name user-name // Adding a user to a primary group
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
SSH (Secure Shell) For Remote Machine Access
$ service iptables stop // Drops the IP table
$ sudo chkconfig iptables off // Permanently disbales the IP table
$ sudo gedit /etc/hosts // Add the below IP addresses in both the master and slave’s hosts file
master 192.168.56.102
slave 192.168.56.103
$ ip addr show // To show the IP address
$ sudo ip addr del ip-address dev eth1 // Deleting existing IP
$ sudo ip addr add 192.168.56.102/24 dev eth1 // Adding IP at the master’s node
$ sudo ip addr add 192.168.56.103/24 dev eth1 // Adding IP at the slave’s node
$ ssh master // Running this command at the slave node will give remote access to master
$ ssh slave // Running this command at the master node will give remote access to slave
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING
Summary Slide
Birth Of Linux Linux Distributions Basic Linux Commands
Working With Files &
Directories
Repos, TAR, Env Var, RegEx Processes, Users & SSH
www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING

Mais conteúdo relacionado

Mais procurados

Linux presentation
Linux presentationLinux presentation
Linux presentationNikhil Jain
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentalsRaghu nath
 
Linux Administration
Linux AdministrationLinux Administration
Linux AdministrationHarish1983
 
Server configuration
Server configurationServer configuration
Server configurationAisha Talat
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commandsSagar Kumar
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux Harish R
 
Linux Interview Questions And Answers | Linux Administration Tutorial | Linux...
Linux Interview Questions And Answers | Linux Administration Tutorial | Linux...Linux Interview Questions And Answers | Linux Administration Tutorial | Linux...
Linux Interview Questions And Answers | Linux Administration Tutorial | Linux...Edureka!
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentationnishantsri
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linuxVicent Selfa
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemSadia Bashir
 
Linux administration
Linux administrationLinux administration
Linux administrationYogesh Ks
 
Linux architecture
Linux architectureLinux architecture
Linux architecturemcganesh
 

Mais procurados (20)

Linux introduction
Linux introductionLinux introduction
Linux introduction
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
Server configuration
Server configurationServer configuration
Server configuration
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
Linux Interview Questions And Answers | Linux Administration Tutorial | Linux...
Linux Interview Questions And Answers | Linux Administration Tutorial | Linux...Linux Interview Questions And Answers | Linux Administration Tutorial | Linux...
Linux Interview Questions And Answers | Linux Administration Tutorial | Linux...
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux administration
Linux administrationLinux administration
Linux administration
 
Linux
Linux Linux
Linux
 
User management
User managementUser management
User management
 
Linux File System
Linux File SystemLinux File System
Linux File System
 
Linux training
Linux trainingLinux training
Linux training
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
 

Semelhante a Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands | Edureka

Introduction to the linux command line.pdf
Introduction to the linux command line.pdfIntroduction to the linux command line.pdf
Introduction to the linux command line.pdfCesleySCruz
 
POS 433 Inspiring Innovation/tutorialrank.com
 POS 433 Inspiring Innovation/tutorialrank.com POS 433 Inspiring Innovation/tutorialrank.com
POS 433 Inspiring Innovation/tutorialrank.comjonhson152
 
Red Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRed Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRavi Kumar
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unixsouthees
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scriptsPrashantTechment
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to UnixSudharsan S
 
24HOP Introduction to Linux for SQL Server DBAs
24HOP Introduction to Linux for SQL Server DBAs24HOP Introduction to Linux for SQL Server DBAs
24HOP Introduction to Linux for SQL Server DBAsKellyn Pot'Vin-Gorman
 
Linux week 2
Linux week 2Linux week 2
Linux week 2Vinoth Sn
 
bash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdfbash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdfMuhammadAbdullah311866
 
Introduction to Linux | Big Data Hadoop Spark Tutorial | CloudxLab
Introduction to Linux | Big Data Hadoop Spark Tutorial | CloudxLabIntroduction to Linux | Big Data Hadoop Spark Tutorial | CloudxLab
Introduction to Linux | Big Data Hadoop Spark Tutorial | CloudxLabCloudxLab
 
POS 433 Extraordinary Life/newtonhelp.com 
POS 433 Extraordinary Life/newtonhelp.com POS 433 Extraordinary Life/newtonhelp.com 
POS 433 Extraordinary Life/newtonhelp.com myblue40
 
POS 433 Creative and Effective/newtonhelp.com
POS 433 Creative and Effective/newtonhelp.comPOS 433 Creative and Effective/newtonhelp.com
POS 433 Creative and Effective/newtonhelp.commyblue100
 
POS 433  Focus Dreams/newtonhelp.com
POS 433  Focus Dreams/newtonhelp.comPOS 433  Focus Dreams/newtonhelp.com
POS 433  Focus Dreams/newtonhelp.commyblue70
 

Semelhante a Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands | Edureka (20)

Introduction to the linux command line.pdf
Introduction to the linux command line.pdfIntroduction to the linux command line.pdf
Introduction to the linux command line.pdf
 
3. intro
3. intro3. intro
3. intro
 
POS 433 Inspiring Innovation/tutorialrank.com
 POS 433 Inspiring Innovation/tutorialrank.com POS 433 Inspiring Innovation/tutorialrank.com
POS 433 Inspiring Innovation/tutorialrank.com
 
cisco
ciscocisco
cisco
 
Red Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRed Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech Arkit
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Group13
Group13Group13
Group13
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
Bootcamp linux commands
Bootcamp linux commandsBootcamp linux commands
Bootcamp linux commands
 
Linux
LinuxLinux
Linux
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Linux And perl
Linux And perlLinux And perl
Linux And perl
 
24HOP Introduction to Linux for SQL Server DBAs
24HOP Introduction to Linux for SQL Server DBAs24HOP Introduction to Linux for SQL Server DBAs
24HOP Introduction to Linux for SQL Server DBAs
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
 
bash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdfbash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdf
 
POS 433 Entire Course NEW
POS 433 Entire Course NEWPOS 433 Entire Course NEW
POS 433 Entire Course NEW
 
Introduction to Linux | Big Data Hadoop Spark Tutorial | CloudxLab
Introduction to Linux | Big Data Hadoop Spark Tutorial | CloudxLabIntroduction to Linux | Big Data Hadoop Spark Tutorial | CloudxLab
Introduction to Linux | Big Data Hadoop Spark Tutorial | CloudxLab
 
POS 433 Extraordinary Life/newtonhelp.com 
POS 433 Extraordinary Life/newtonhelp.com POS 433 Extraordinary Life/newtonhelp.com 
POS 433 Extraordinary Life/newtonhelp.com 
 
POS 433 Creative and Effective/newtonhelp.com
POS 433 Creative and Effective/newtonhelp.comPOS 433 Creative and Effective/newtonhelp.com
POS 433 Creative and Effective/newtonhelp.com
 
POS 433  Focus Dreams/newtonhelp.com
POS 433  Focus Dreams/newtonhelp.comPOS 433  Focus Dreams/newtonhelp.com
POS 433  Focus Dreams/newtonhelp.com
 

Mais de Edureka!

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaEdureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaEdureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaEdureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaEdureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaEdureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaEdureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaEdureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaEdureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaEdureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaEdureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | EdurekaEdureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEdureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEdureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaEdureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaEdureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaEdureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaEdureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaEdureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | EdurekaEdureka!
 

Mais de Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 

Último

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 

Último (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

Linux Tutorial For Beginners | Linux Administration Tutorial | Linux Commands | Edureka

  • 2. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING What Will You Learn Today? ✓ Birth of Linux: Why did Linux become popular? ✓ Various distributions of Linux ✓ Getting started with Linux ✓ Basic Linux commands ✓ Working with files & directories ✓ Adding/ deleting users ✓ Networking in Linux: Using SSH for communication
  • 3. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Why Did Linux Become Popular?
  • 4. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Birth Of Linux 1969  Birth of ‘C’ and Unix OS
  • 5. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Birth Of Linux 1970’s  Growth of Unix because of open-source collaboration  Commercial sale of Unix 1969  Birth of ‘C’ and Unix OS 1
  • 6. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Birth Of Linux 1970’s  Growth of Unix because of open-source collaboration  Commercial sale of Unix 1969  Birth of ‘C’ and Unix OS 1 2 1980s Companies developing their own Unix:- IBM(AIX), Solaris(Sun OS), HP(HP-UX).... Mid-to-late 1980s  Birth of free software movement  GNU Project
  • 7. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Birth Of Linux 1980s Companies developing their own Unix:- IBM(AIX), Solaris(Sun OS), HP(HP-UX).... Mid-to-late 1980s  Birth of free software movement  GNU Project 1970’s  Growth of Unix because of open-source collaboration  Commercial sale of Unix 1990s  Linus Torvalds put the Linux kernel source code online. Resulted in usage of ‘Linux + GNU’ 1969  Birth of ‘C’ and Unix OS 1 2 3
  • 8. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Various Linux Distributions F e d o r a R E D H AT E N T E R P R I S E L I N U X D e b i a n O t h e r s 01 02 03 04 Commercial Linux distribution intended for servers and workstations. Sponsored by Red Hat, is the foundation for the commercial RHEL Debian is an OS composed only of free, open-source software. Other popular distributions include: Ubuntu, Linux Mint, CentOS, openSUSE / SUSE Linux Enterprise….
  • 9. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Linux’s Features Free Software Licensing Better Malware Protection Multiple Distributions Access To Source Code Simplified Updates For All Installed S/W
  • 10. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Hands-on: Linux Commands 02 cat, grep, sort, pipe commands 03 cp, mv, mkdir, rm, rmdir & user permissions 04 Linux repository, tar files, env var & regex 05 Processes, adding users & ssh 01 pwd, clear, ls & cd commands
  • 11. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With Directories: ‘pwd’ & ‘clear’  Linux provides a CLI (Command Line Interface) to communicate with the OS.  CLI is better for tasks which cannot be performed with the GUI. Command Explanation pwd Displays the current working directory of the terminal / Root directory echo Command that writes its arguments to standard output. su Used to switch to root user(so that super user permissions can be used to execute commands) su username Used to switch to a different user sudo Executes only that command with root/ super user privileges clear This command is used to clear the terminal screen. Contents will not be deleted but scrolled down
  • 12. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With Directories: ‘ls’ Command $ ls [options] [file | Directory] ls This command lists all the contents in the current working directory ls path By specifying the path after ls, the content in that path will be displayed ls –l Using ‘l’ flag, lists all the contents along with its owner settings, permissions & time stamp (long format) ls –a Using ‘a’ flag, lists all the hidden contents in the specified directory ls --author Using ‘--author’ flag, lists the contents in the specified directory along with its owner ls –S Using ‘a’ flag, sorts and lists all the contents in the specified directory by size ls *.html Using ‘*’ flag, lists only the contents in the directory of a particular format ls –lS > file.txt Using ‘>’ flag, copies the result of ls command into a text file
  • 13. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With Directories: ‘cd’ cd Changes the directory to the home directory cd ~ This command also changes the directory to home directory cd / Changes the directory to root directory cd .. Changes the directory to its parent directory cd ‘xx yy’ We specify the folder name in inverted commas because there is a space in the folder name $ cd [directory]
  • 14. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Hands-on: Linux Commands 02 cat, grep, sort, pipe commands 03 cp, mv, mkdir, rm, rmdir & user permissions 04 Linux repository, tar files, env var & regex 05 Processes, adding users & ssh 0101 pwd, clear, ls & cd commands 01 pwd, clear, ls & cd commands
  • 15. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With Files: ‘cat’ Command $ cat [options] file1 [file2..] cat This command is used to display the content of text files and concatenate several files into one cat -b This is used to add line numbers to non blank lines cat -n This is used to add line numbers to all lines cat -s This is used to squeeze blank lines into one line cat –E Show $ at the end of line $ cat > file1.txt The ‘>’ flag can be used to create a new file and enter text contents from the terminal $ cat >> file1.txt The ‘>>’ flag can be used to append text contents to an existing file from the terminal
  • 16. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With ‘grep’ Command We use the ‘grep’ command to search for a particular string/ word in a text file. This is similar to “Ctrl+F”, but executed via a CLI. $ grep options file1.txt // Returns results for matching string “options” $ grep –i options file1.txt // Returns the results for case insensitive strings $ grep –n options file1.txt // Returns the matching strings along with their line number $ grep –v options file1.txt // Returns the result of lines not matching the search string $ grep –c options file1.txt // Returns the number of lines in which the results matched search string
  • 17. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With ‘sort’ Command We use the ‘sort’ command to sort the results of a search either alphabetically or numerically. Files, file contents and directories can be sorted. $ sort file1.txt // Sorts the contents of file1.txt and returns them in alphabetical order $ sort File1.txt File2.txt // Sorts the contents of both File1.txt & File2.txt $ sort –r file1.txt // ‘r ’ flag returns the results in reverse order; $ sort –f file1.txt // ‘f’ flag does case insensitive sorting $ sort –n file1.txt // ‘n’ flag returns the results as per numerical order
  • 18. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With ‘|’ Command The ‘|’ command a.k.a ‘pipe’ command is used to output the result of one command as input to another command. ‘|’ are used to perform two operations in the same command $ grep dh File1.txt File2.txt | sort // Searches for string ‘dh’ from both files and sorts the results $ grep dh File1.txt File2.txt | sort -r // Sorts the results in reverse order
  • 19. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Hands-on: Linux Commands 02 cat, grep, sort, pipe commands 03 cp, mv, mkdir, rm, rmdir & user permissions 04 Linux repository, tar files, env var & regex 05 Processes, adding users & ssh 01 pwd, clear, ls & cd commands
  • 20. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With Files & Directories: ‘cp’ Command $ cp [options] source destination cp This command is used to copy files and directories cp -i Enters interactive mode; CLI asks before overwriting files cp -n Does not overwrite the file cp -u Updates the destination file only when source file is different from destination file cp -R Recursive copy for copying directories; Copies even hidden files cp -v Verbose; Prints informative messages
  • 21. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With Files & Directories: ‘mv’ Command $ mv [options] source destination mv This command is used to move files and directories mv -i Enters interactive mode; CLI asks before overwriting files mv -u Updates the destination file only when source file is different from destination file mv -v Verbose; Prints source and destination files
  • 22. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With Directories: ‘mkdir’ Command $ mkdir directory-path mkdir This command is used to create a new directory mkdir -p Creates both a new parent directory and a sub-directory mkdir --parents This is also used for the same process mkdir –p file1/{f2,f3,f4} This is used to create multiple subdirectories inside the new parent directory
  • 23. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With Files & Directories: ‘rm’ & ‘rmdir’ $ rmdir foldername $ rm filename/ foldername rmdir This command is used to remove the specified directory (Empty) rmdir –p Removes both the parent and child directory rmdir –pv Removes all the parent and sub directories along with the verbose. rm –r Removes even non empty directories. rm –rp Removes non empty directories including parent and subdirectories.
  • 24. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With User Permissions: ‘r’, ‘w’ & ‘x’ $ l s – l $ e d u r e k a 5 2 5 5 0 4 0 2 A u g 1 2 2 0 1 6 FILE/DIR TYPE USER PERMISSIONS GROUP PERMISSIONS Other’s PERMISSIONS Read – ‘r’ Write – ‘w’ Execute – ‘x’ FILE PERMISSIONS Normal File – ‘-’ Directory – ‘d’ Character Special File – ‘c’ Binary Special File – ‘b’ FILE TYPES
  • 25. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With User Permissions: ‘r’, ‘w’ & ‘x’ $ l s – l $ 1 e d u r e k a e d u r e k a 5 2 5 5 0 4 0 2 A u g 1 2 2 0 1 6 FILE/DIR TYPE USER PERMISSIONS GROUP PERMISSIONS Other’s PERMISSIONS SYMBOLIC LINKS Owner Name Group Name Read – ‘r’ Write – ‘w’ Execute – ‘x’ FILE PERMISSIONS Normal File – ‘-’ Directory – ‘d’ Character Special File – ‘c’ Binary Special File – ‘b’ FILE TYPES
  • 26. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With User Permissions: ‘r’, ‘w’ & ‘x’ $ l s – l $ 1 e d u r e k a e d u r e k a 5 2 5 5 0 4 0 2 A u g 1 2 2 0 1 6 FILE/DIR TYPE USER PERMISSIONS GROUP PERMISSIONS Other’s PERMISSIONS SYMBOLIC LINKS Owner Name Group Name Time Stamp FILE SIZE Read – ‘r’ Write – ‘w’ Execute – ‘x’ FILE PERMISSIONS Normal File – ‘-’ Directory – ‘d’ Character Special File – ‘c’ Binary Special File – ‘b’ FILE TYPES Users – ‘u’ Groups – ‘g’ Others – ‘o’ All – ‘a’ DENOTIONS
  • 27. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With User Permissions: ‘r’, ‘w’ & ‘x’ Commands Explanation chmod g+wx filename This gives the write and execute permission to group members chmod u=rwx,o-wx filename This gives the read, write and execute permission to owners, and removes the write and execute ownership from other members chown username filename Changes the owner of the specified file chown username:groupname filename Changes both the owner and group ownership of the specified file chgrp groupname filename Changes the group ownership of the specified file chmod : To change the access permissions of files and directories chown : To change the owner of files and directories chgrp : To change the group ownership of file and directories
  • 28. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Hands-on: Linux Commands 02 cat, grep, sort, pipe commands 03 cp, mv, mkdir, rm, rmdir & user permissions 04 Linux repository, tar files, env var & regex 05 Processes, adding users & ssh 0101 pwd, clear, ls & cd commands 01 pwd, clear, ls & cd commands
  • 29. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With Linux Repositories $ sudo yum install package-name // For RHEL based systems $ sudo apt-get install package-name: // For Debian based systems $ sudo dnf install package-name // For Fedora based systems $ sudo yum update $ sudo yum install java-1.8.0-openjdk $ update-alternatives --config java // For selecting from various java versions $ cd $ sudo gedit .bashrc # Set the Environment variables here $ source .bashrc Java8 Installation Stable versions of most software's will already be available in Linux repositories. Command to install them:
  • 30. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Working With Tar Files When you download a package from the internet, the downloaded file comes in compressed form. Commands to decompress and compress files in Linux: $ tar –cvf tar-file-name file-name // Compressing files to Tar format $ tar –xvf tar-file-name // Extracting/ Decompressing files in Tar format gzip: To compress files with .gz format gunzip: To decompress .gz files tar: To compress and decompress files with .tar format
  • 31. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Environment Variables Environment variables control the behavior of the software packages installed in Linux. The path where the packages have been installed will be specified in environment variables. $ printenv // Prints the list of all environment variables $ echo $HOME // This will print the path of the home directory of the user $ echo $PATH // It is a colon-separated list of directories in which the shell looks for commands $ echo $HOSTNAME // This will print the hostname $ echo $USERNAME // This will print the username $ echo $LANG // This will print the language being used $ echo $BASH_VERSION // This will print the version of this instance of bash
  • 32. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Regular Expressions Regular Expressions (RegEx) are used to search through data. It can be piped along with ‘grep’ command to find patterns of text in the file. $ cat File1.txt | grep ^a $ grep 'a[0-9]x' File1.txt $ ls | grep '[xt$]' Symbol Explanation . Replaces any character ^ Matches the start of the string $ Matches the end of the string * Matches the preceding character zero or more times ? Matches the preceding character one or more times ( ) Groups regular expressions Represents special characters $ ls | grep 'le[0-9].txt‘ $ grep -n ['a*'] File1.txt $ grep ['d.d'] File1.txt $ echo {a..z} $ echo {4..45} $ echo 1{a..z}9
  • 33. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Hands-on: Linux Commands 02 cat, grep, sort, pipe commands 03 cp, mv, mkdir, rm, rmdir & user permissions 04 Linux repository, tar files, env var & regex 05 Processes, adding users & ssh 0101 pwd, clear, ls & cd commands 01 pwd, clear, ls & cd commands
  • 34. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Processes  An instance of a program is called a process.  Any command given to Linux kernel starts a new process.  There can be multiple processes (instances) of the same program. Processes Foreground Processes Background Processes $ t o p P I D U S E R P R N I V R T R E S S H R S % C P U % M E M T I M E + C O M M A N D Process ID User Name Priority Niceness Value Virtual Memory Physical Memory Shared Memory Status CPU Time Physical Memory Used Total CPU Time Command
  • 35. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Creating Users $ sudo useradd user-name // Adding a new user $ sudo passwd user-name // Setting a password for that user $ sudo userdel user-name // Deleting that user $ sudo groupadd group-name // Adding a new group $ sudo groupdel group-name // Deleting that group $ sudo usermod -g group-name user-name // Adding a user to a primary group
  • 36. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING SSH (Secure Shell) For Remote Machine Access $ service iptables stop // Drops the IP table $ sudo chkconfig iptables off // Permanently disbales the IP table $ sudo gedit /etc/hosts // Add the below IP addresses in both the master and slave’s hosts file master 192.168.56.102 slave 192.168.56.103 $ ip addr show // To show the IP address $ sudo ip addr del ip-address dev eth1 // Deleting existing IP $ sudo ip addr add 192.168.56.102/24 dev eth1 // Adding IP at the master’s node $ sudo ip addr add 192.168.56.103/24 dev eth1 // Adding IP at the slave’s node $ ssh master // Running this command at the slave node will give remote access to master $ ssh slave // Running this command at the master node will give remote access to slave
  • 37. www.edureka.co/linux-adminEDUREKA’S LINUX ADMINISTRATION CERTIFICATION TRAINING Summary Slide Birth Of Linux Linux Distributions Basic Linux Commands Working With Files & Directories Repos, TAR, Env Var, RegEx Processes, Users & SSH