SlideShare a Scribd company logo
BASICS OF UNIX
• Unix was developed by ken Thompson in 1969
• Unix is CUI operating system
• CUI stands for command user interface OS
• It is a case sensitive
• It is multitasking operating system
• It is derived from UNICS assembly language
• UNICS stands for Uniplexed information computing system
Features of Unix
• Multi User Capability
• Multi Tasking Capability
• Portability
• Communication(Electronic Mail)
• Security
• Open System
• Help Facility
• $ indicates login in Normal User Level
• # indicates Login in Super User Level
Flavors of Unix
Unix level we have multiple flavors of Operating systems using Unix Code they
can implemented Different operating systems ‘s those are
Company Operating System Plat Form
Sun Micro Systems Solaris SPARC Server
IBM AIX Main Frames level
HP HP – UX (HP – UNIX) ProLiant
Compaq true64 Alpha Processors
BSD BSD OS Intel Processors
Red Hat Linux RHEL ,Centos,Fedora,Ubuntu, SUSE
Linux
Etc Nearly 120 Flavours developed in
Linux
Basic commands
logname : It displays current user
Syntax : $logname
pwd : It displays present working directory path
Syntax : $pwd
date : It displays system date and time
Syntax : $date
cal : It displays current month calendar
Syntax: $cal
clear: To clear the screen
Syntax: $clear
cal 2010 : It displays 2010 calendar
Syntax: $cal 2010
cont.
uname : It displays operating system name
Syntax : $uname
uname -r : It displays kernel version
Syntax : $uname -r
hostname : It displays server name
Syntax : $hostname
hostname -i : It displays server IP address
Syntax : $hostname -I
who : It displays list of users who connected to the server
Syntax : $who
finger : It displays user information
Syntax : $finger username
cont.
who am i : It displays current user information (parent user)
syntax : $who am i
whoami : It displays switched user name (child user)
syntax : whoami
tty : It displays terminal name
syntax:$tty
uptime : It displays how long server is up and running ,No. of users
connected and avg load on the serever
syntax : $uptime
su : It is used to switch from one user account to another user account
syntax : $su -username
cont.
which : It displays location of the given command
syntax: $which
exit : To logout from current user
syntax: $exit
man : It displays help page of given command
syntax: man commandname
Working with files
cat : This is used to create a new files (or) To open existing
files (or) To append data to existing file
1.Creatinganewfile:
Syntax : $cat>filename
---------------
---------------
ctrl +d
Cont.
2. How to open a file :
syntax : $cat<filename (or) $cat filename
3. Appending data to a file :
syntax : $cat>>filename
- - - - - - - - -
- - - - - - - - -
ctrl + d
Cont.
4.howtoopenmultiplefiles:
syntax : $cat<file1 file2 file3 - - - - - - file n
It displays first file1 file contents followed by file2 file followed by file3
i.e. It joins multiple files vertically without space
touch : It is used to create empty files i.e. zero bytes
files
syntax : $touch filename
Creatingmultiplefiles:
syntax : $touch file1 file2 - - - - - file n
It creates f1,f2,…..etc as new empty files
Deleting files
1. rm : To delete a file
syntax : $rm filename
2. rm -i : It deletes a file with conformation
syntax : $rm -i filename
ex : $rm -i sample ? Y (yes) or N (no)
3. rm -f : It deletes a file forcibly
syntax : rm -f filename
Remove multiple files :
syntax : $rm file1 file2 file3 - - - - - - file n
Working with directories:
1.Mkdir : To create a new directory
Syntax : $mkdir directory name Ex : $mkdir sample
2.Cd : To change a directory path
Syntax : $cd directory name
3. Cd .. : To come out from current working directory
Syntax : $cd ..
4. cd : It a changes to root directory
Syntax : $cd
5. Creating multiple directories :
Syntax : $mkdir abc xyz axc
Then create The abc xyz axc directories
Cont.
Removing directory :
1. Rmdir : To remove directory but directory must be
empty
Syntax : $rmdir directory name
Options :
a) rm -r : It deletes recursively entire directory structure with conformation
Syntax : rm -r directory name
b) rm -ri : It deletes recursively entire directory structure with
conformation
syntax : $rm –ri directory name
Copying a file :
cp : To copy a file from source to target
syntax : $cp source file Target file
ex : $cp file1 file2 : This will copy the contents of file 1 into file 2 . If file 2 is
already existed it overwrites
$cp -i file1 file2 : if file2 is already existed then it ask the confirmation
Syntax : $cp -i file1 file2
Cont.
• Movingfiles:
mv : To rename (or) move the file/directory
Syntax : $mv file1 file2 (for file)
mv -R :
syntax : $mv file1 file2 (for directory)
For Hiddenfiles : To hide a file or directory start filename or directory with
“.” (dot) character
syntax : $cat > .filename
- - - - - - - -
ctrl + d
1.$mv file .file : To hide existing a file
2. $mv .file file : To unhide a file
3. $mkdir .dirname : To hide directory
Viewing list of files
ls : It list current directory all files and subdirectories in the ascending order based on
ASCII values
syntax : $ls
Options :
ls -a : It list all files along with the hidden files
syntax : $ls –a
ls -r : It list all files in reverse order
syntax : $ls -r
ls -R : It list all files recursively
syntax : $ls -R
ls -t : It list all files based on date and time of creation
syntax : ls -t
ls -l : It list all files in log list format
syntax : $ls -l
Cont .
wc : It counts total no. of lines, words and characters in given file
syntax : wc filename
Options:
1.wc -l : itcountsno.oflinesinthegivenfile
syntax:$wc -l
2.wc -w : itcountsno.of wordsinthegivenfile
syntax:$wc -w
3.wc -c : itcountsno.ofcharactersinthegivenfile
syntax:$wc -c
4.wc -lw: itcountsno.oflinesandwordsinthegivenfile
syntax:$wc -lw
Cont.
cmp : It compares two files character by character if no output ,then files
are same other wise the files are not same
syntax : $cmp file1 file2
diff : It displays different lines b/w two files (line by line)
syntax : diff file1 file2
file : It displays the given filename
syntax : $file filename
Ad

More Related Content

What's hot (20)

Basics of UNIX Commands
Basics of UNIX CommandsBasics of UNIX Commands
Basics of UNIX Commands
Subra Das
 
Linux commd
Linux commdLinux commd
Linux commd
ragav03
 
Linux commd
Linux commdLinux commd
Linux commd
ragav03
 
Unix primer
Unix primerUnix primer
Unix primer
dummy
 
R- create a table from a list of files.... before webmining
R- create a table from a list of files.... before webminingR- create a table from a list of files.... before webmining
R- create a table from a list of files.... before webmining
Gabriela Plantie
 
Unix And Shell Scripting
Unix And Shell ScriptingUnix And Shell Scripting
Unix And Shell Scripting
Jaibeer Malik
 
Unix - Shell Scripts
Unix - Shell ScriptsUnix - Shell Scripts
Unix - Shell Scripts
ananthimurugesan
 
Swap
SwapSwap
Swap
abdullah roomi
 
Linux system admin
Linux system adminLinux system admin
Linux system admin
Mohammed Zainul Abiddin
 
Vi Editor
Vi EditorVi Editor
Vi Editor
Shiwang Kalkhanda
 
Linux shell scripting
Linux shell scriptingLinux shell scripting
Linux shell scripting
Mohamed Abubakar Sittik A
 
Directory Commands - R.D.Sivakumar
Directory Commands - R.D.SivakumarDirectory Commands - R.D.Sivakumar
Directory Commands - R.D.Sivakumar
Sivakumar R D .
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
simha.dev.lin
 
system management -shell programming by gaurav raikar
system management -shell programming by gaurav raikarsystem management -shell programming by gaurav raikar
system management -shell programming by gaurav raikar
GauravRaikar3
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command Reference
Sumankumar Panchal
 
Service intergration
Service intergration Service intergration
Service intergration
재민 장
 
Quick start bash script
Quick start   bash scriptQuick start   bash script
Quick start bash script
Simon Su
 
SHELL PROGRAMMING
SHELL PROGRAMMINGSHELL PROGRAMMING
SHELL PROGRAMMING
jinal thakrar
 
intro unix/linux 02
intro unix/linux 02intro unix/linux 02
intro unix/linux 02
duquoi
 
Php file handling in Hindi
Php file handling in Hindi Php file handling in Hindi
Php file handling in Hindi
Vipin sharma
 
Basics of UNIX Commands
Basics of UNIX CommandsBasics of UNIX Commands
Basics of UNIX Commands
Subra Das
 
Linux commd
Linux commdLinux commd
Linux commd
ragav03
 
Linux commd
Linux commdLinux commd
Linux commd
ragav03
 
Unix primer
Unix primerUnix primer
Unix primer
dummy
 
R- create a table from a list of files.... before webmining
R- create a table from a list of files.... before webminingR- create a table from a list of files.... before webmining
R- create a table from a list of files.... before webmining
Gabriela Plantie
 
Unix And Shell Scripting
Unix And Shell ScriptingUnix And Shell Scripting
Unix And Shell Scripting
Jaibeer Malik
 
Directory Commands - R.D.Sivakumar
Directory Commands - R.D.SivakumarDirectory Commands - R.D.Sivakumar
Directory Commands - R.D.Sivakumar
Sivakumar R D .
 
system management -shell programming by gaurav raikar
system management -shell programming by gaurav raikarsystem management -shell programming by gaurav raikar
system management -shell programming by gaurav raikar
GauravRaikar3
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command Reference
Sumankumar Panchal
 
Service intergration
Service intergration Service intergration
Service intergration
재민 장
 
Quick start bash script
Quick start   bash scriptQuick start   bash script
Quick start bash script
Simon Su
 
intro unix/linux 02
intro unix/linux 02intro unix/linux 02
intro unix/linux 02
duquoi
 
Php file handling in Hindi
Php file handling in Hindi Php file handling in Hindi
Php file handling in Hindi
Vipin sharma
 

Similar to Basics of Unix Adminisration (20)

Raspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OSRaspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OS
Mohamed Abdallah
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
PrashantTechment
 
Bozorgmeh os lab
Bozorgmeh os labBozorgmeh os lab
Bozorgmeh os lab
FS Karimi
 
Linux powerpoint
Linux powerpointLinux powerpoint
Linux powerpoint
bijanshr
 
Linux System commands Essentialsand Basics.pptx
Linux System commands Essentialsand Basics.pptxLinux System commands Essentialsand Basics.pptx
Linux System commands Essentialsand Basics.pptx
mba1130feb2024
 
Rishav Mishra final presentation on UNIX Final.pptx
Rishav Mishra final presentation on UNIX Final.pptxRishav Mishra final presentation on UNIX Final.pptx
Rishav Mishra final presentation on UNIX Final.pptx
rishavmishra041
 
Basic shell programs assignment 1_solution_manual
Basic shell programs assignment 1_solution_manualBasic shell programs assignment 1_solution_manual
Basic shell programs assignment 1_solution_manual
Kuntal Bhowmick
 
Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja
Ranjan Raja
 
Lnx
LnxLnx
Lnx
PlanetExpressATX
 
OS-Module 2 Linux Programming Important topics
OS-Module 2 Linux Programming Important topicsOS-Module 2 Linux Programming Important topics
OS-Module 2 Linux Programming Important topics
JithinS34
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
Wave Digitech
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
Brahma Killampalli
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
Sreenatha Reddy K R
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
Teja Bheemanapally
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
Teja Bheemanapally
 
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
linux-lecture4.pptuyhbjhbiibihbiuhbbihbilinux-lecture4.pptuyhbjhbiibihbiuhbbihbi
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
YajnadattaPattanayak
 
Linux Notes-1.pdf
Linux Notes-1.pdfLinux Notes-1.pdf
Linux Notes-1.pdf
asif64436
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
southees
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
LuigysToro
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
anandha ganesh
 
Raspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OSRaspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OS
Mohamed Abdallah
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
PrashantTechment
 
Bozorgmeh os lab
Bozorgmeh os labBozorgmeh os lab
Bozorgmeh os lab
FS Karimi
 
Linux powerpoint
Linux powerpointLinux powerpoint
Linux powerpoint
bijanshr
 
Linux System commands Essentialsand Basics.pptx
Linux System commands Essentialsand Basics.pptxLinux System commands Essentialsand Basics.pptx
Linux System commands Essentialsand Basics.pptx
mba1130feb2024
 
Rishav Mishra final presentation on UNIX Final.pptx
Rishav Mishra final presentation on UNIX Final.pptxRishav Mishra final presentation on UNIX Final.pptx
Rishav Mishra final presentation on UNIX Final.pptx
rishavmishra041
 
Basic shell programs assignment 1_solution_manual
Basic shell programs assignment 1_solution_manualBasic shell programs assignment 1_solution_manual
Basic shell programs assignment 1_solution_manual
Kuntal Bhowmick
 
Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja
Ranjan Raja
 
OS-Module 2 Linux Programming Important topics
OS-Module 2 Linux Programming Important topicsOS-Module 2 Linux Programming Important topics
OS-Module 2 Linux Programming Important topics
JithinS34
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
Wave Digitech
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
Sreenatha Reddy K R
 
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
linux-lecture4.pptuyhbjhbiibihbiuhbbihbilinux-lecture4.pptuyhbjhbiibihbiuhbbihbi
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
YajnadattaPattanayak
 
Linux Notes-1.pdf
Linux Notes-1.pdfLinux Notes-1.pdf
Linux Notes-1.pdf
asif64436
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
southees
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
LuigysToro
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
anandha ganesh
 
Ad

Recently uploaded (20)

How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
Odoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo SlidesOdoo Inventory Rules and Routes v17 - Odoo Slides
Odoo Inventory Rules and Routes v17 - Odoo Slides
Celine George
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
LDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini UpdatesLDMMIA Reiki Master Spring 2025 Mini Updates
LDMMIA Reiki Master Spring 2025 Mini Updates
LDM Mia eStudios
 
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Phoenix – A Collaborative Renewal of Children’s and Young People’s Services C...
Library Association of Ireland
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
Ad

Basics of Unix Adminisration

  • 1. BASICS OF UNIX • Unix was developed by ken Thompson in 1969 • Unix is CUI operating system • CUI stands for command user interface OS • It is a case sensitive • It is multitasking operating system • It is derived from UNICS assembly language • UNICS stands for Uniplexed information computing system
  • 2. Features of Unix • Multi User Capability • Multi Tasking Capability • Portability • Communication(Electronic Mail) • Security • Open System • Help Facility • $ indicates login in Normal User Level • # indicates Login in Super User Level
  • 3. Flavors of Unix Unix level we have multiple flavors of Operating systems using Unix Code they can implemented Different operating systems ‘s those are Company Operating System Plat Form Sun Micro Systems Solaris SPARC Server IBM AIX Main Frames level HP HP – UX (HP – UNIX) ProLiant Compaq true64 Alpha Processors BSD BSD OS Intel Processors Red Hat Linux RHEL ,Centos,Fedora,Ubuntu, SUSE Linux Etc Nearly 120 Flavours developed in Linux
  • 4. Basic commands logname : It displays current user Syntax : $logname pwd : It displays present working directory path Syntax : $pwd date : It displays system date and time Syntax : $date cal : It displays current month calendar Syntax: $cal clear: To clear the screen Syntax: $clear cal 2010 : It displays 2010 calendar Syntax: $cal 2010
  • 5. cont. uname : It displays operating system name Syntax : $uname uname -r : It displays kernel version Syntax : $uname -r hostname : It displays server name Syntax : $hostname hostname -i : It displays server IP address Syntax : $hostname -I who : It displays list of users who connected to the server Syntax : $who finger : It displays user information Syntax : $finger username
  • 6. cont. who am i : It displays current user information (parent user) syntax : $who am i whoami : It displays switched user name (child user) syntax : whoami tty : It displays terminal name syntax:$tty uptime : It displays how long server is up and running ,No. of users connected and avg load on the serever syntax : $uptime su : It is used to switch from one user account to another user account syntax : $su -username
  • 7. cont. which : It displays location of the given command syntax: $which exit : To logout from current user syntax: $exit man : It displays help page of given command syntax: man commandname
  • 8. Working with files cat : This is used to create a new files (or) To open existing files (or) To append data to existing file 1.Creatinganewfile: Syntax : $cat>filename --------------- --------------- ctrl +d
  • 9. Cont. 2. How to open a file : syntax : $cat<filename (or) $cat filename 3. Appending data to a file : syntax : $cat>>filename - - - - - - - - - - - - - - - - - - ctrl + d
  • 10. Cont. 4.howtoopenmultiplefiles: syntax : $cat<file1 file2 file3 - - - - - - file n It displays first file1 file contents followed by file2 file followed by file3 i.e. It joins multiple files vertically without space touch : It is used to create empty files i.e. zero bytes files syntax : $touch filename Creatingmultiplefiles: syntax : $touch file1 file2 - - - - - file n It creates f1,f2,…..etc as new empty files
  • 11. Deleting files 1. rm : To delete a file syntax : $rm filename 2. rm -i : It deletes a file with conformation syntax : $rm -i filename ex : $rm -i sample ? Y (yes) or N (no) 3. rm -f : It deletes a file forcibly syntax : rm -f filename Remove multiple files : syntax : $rm file1 file2 file3 - - - - - - file n
  • 12. Working with directories: 1.Mkdir : To create a new directory Syntax : $mkdir directory name Ex : $mkdir sample 2.Cd : To change a directory path Syntax : $cd directory name 3. Cd .. : To come out from current working directory Syntax : $cd .. 4. cd : It a changes to root directory Syntax : $cd 5. Creating multiple directories : Syntax : $mkdir abc xyz axc Then create The abc xyz axc directories
  • 13. Cont. Removing directory : 1. Rmdir : To remove directory but directory must be empty Syntax : $rmdir directory name Options : a) rm -r : It deletes recursively entire directory structure with conformation Syntax : rm -r directory name b) rm -ri : It deletes recursively entire directory structure with conformation syntax : $rm –ri directory name Copying a file : cp : To copy a file from source to target syntax : $cp source file Target file ex : $cp file1 file2 : This will copy the contents of file 1 into file 2 . If file 2 is already existed it overwrites $cp -i file1 file2 : if file2 is already existed then it ask the confirmation Syntax : $cp -i file1 file2
  • 14. Cont. • Movingfiles: mv : To rename (or) move the file/directory Syntax : $mv file1 file2 (for file) mv -R : syntax : $mv file1 file2 (for directory) For Hiddenfiles : To hide a file or directory start filename or directory with “.” (dot) character syntax : $cat > .filename - - - - - - - - ctrl + d 1.$mv file .file : To hide existing a file 2. $mv .file file : To unhide a file 3. $mkdir .dirname : To hide directory
  • 15. Viewing list of files ls : It list current directory all files and subdirectories in the ascending order based on ASCII values syntax : $ls Options : ls -a : It list all files along with the hidden files syntax : $ls –a ls -r : It list all files in reverse order syntax : $ls -r ls -R : It list all files recursively syntax : $ls -R ls -t : It list all files based on date and time of creation syntax : ls -t ls -l : It list all files in log list format syntax : $ls -l
  • 16. Cont . wc : It counts total no. of lines, words and characters in given file syntax : wc filename Options: 1.wc -l : itcountsno.oflinesinthegivenfile syntax:$wc -l 2.wc -w : itcountsno.of wordsinthegivenfile syntax:$wc -w 3.wc -c : itcountsno.ofcharactersinthegivenfile syntax:$wc -c 4.wc -lw: itcountsno.oflinesandwordsinthegivenfile syntax:$wc -lw
  • 17. Cont. cmp : It compares two files character by character if no output ,then files are same other wise the files are not same syntax : $cmp file1 file2 diff : It displays different lines b/w two files (line by line) syntax : diff file1 file2 file : It displays the given filename syntax : $file filename