SlideShare a Scribd company logo
1 of 17
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

More Related Content

What's hot

Basics of UNIX Commands
Basics of UNIX CommandsBasics of UNIX Commands
Basics of UNIX CommandsSubra Das
 
Linux commd
Linux commdLinux commd
Linux commdragav03
 
Linux commd
Linux commdLinux commd
Linux commdragav03
 
Unix primer
Unix primerUnix primer
Unix primerdummy
 
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 webminingGabriela Plantie
 
Unix And Shell Scripting
Unix And Shell ScriptingUnix And Shell Scripting
Unix And Shell ScriptingJaibeer Malik
 
Directory Commands - R.D.Sivakumar
Directory Commands - R.D.SivakumarDirectory Commands - R.D.Sivakumar
Directory Commands - R.D.SivakumarSivakumar 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 raikarGauravRaikar3
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command ReferenceSumankumar Panchal
 
Service intergration
Service intergration Service intergration
Service intergration 재민 장
 
Quick start bash script
Quick start   bash scriptQuick start   bash script
Quick start bash scriptSimon Su
 
intro unix/linux 02
intro unix/linux 02intro unix/linux 02
intro unix/linux 02duquoi
 
Php file handling in Hindi
Php file handling in Hindi Php file handling in Hindi
Php file handling in Hindi Vipin sharma
 

What's hot (20)

Basics of UNIX Commands
Basics of UNIX CommandsBasics of UNIX Commands
Basics of UNIX Commands
 
Linux commd
Linux commdLinux commd
Linux commd
 
Linux commd
Linux commdLinux commd
Linux commd
 
Unix primer
Unix primerUnix primer
Unix primer
 
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
 
Unix And Shell Scripting
Unix And Shell ScriptingUnix And Shell Scripting
Unix And Shell Scripting
 
Unix - Shell Scripts
Unix - Shell ScriptsUnix - Shell Scripts
Unix - Shell Scripts
 
Swap
SwapSwap
Swap
 
Linux system admin
Linux system adminLinux system admin
Linux system admin
 
Vi Editor
Vi EditorVi Editor
Vi Editor
 
Linux shell scripting
Linux shell scriptingLinux shell scripting
Linux shell scripting
 
Directory Commands - R.D.Sivakumar
Directory Commands - R.D.SivakumarDirectory Commands - R.D.Sivakumar
Directory Commands - R.D.Sivakumar
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
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
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command Reference
 
Service intergration
Service intergration Service intergration
Service intergration
 
Quick start bash script
Quick start   bash scriptQuick start   bash script
Quick start bash script
 
SHELL PROGRAMMING
SHELL PROGRAMMINGSHELL PROGRAMMING
SHELL PROGRAMMING
 
intro unix/linux 02
intro unix/linux 02intro unix/linux 02
intro unix/linux 02
 
Php file handling in Hindi
Php file handling in Hindi Php file handling in Hindi
Php file handling in Hindi
 

Similar to Basics of Unix Adminisration

Raspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OSRaspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OSMohamed Abdallah
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scriptsPrashantTechment
 
Bozorgmeh os lab
Bozorgmeh os labBozorgmeh os lab
Bozorgmeh os labFS Karimi
 
Linux powerpoint
Linux powerpointLinux powerpoint
Linux powerpointbijanshr
 
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_manualKuntal 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
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Wave Digitech
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structureSreenatha Reddy K R
 
Linux Notes-1.pdf
Linux Notes-1.pdfLinux Notes-1.pdf
Linux Notes-1.pdfasif64436
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unixsouthees
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.pptLuigysToro
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.pptanandha ganesh
 
Karkha unix shell scritping
Karkha unix shell scritpingKarkha unix shell scritping
Karkha unix shell scritpingchockit88
 
Perintah dasar terminal kali linux
Perintah dasar terminal kali linuxPerintah dasar terminal kali linux
Perintah dasar terminal kali linuxFaizalguswanda
 
Unix command line concepts
Unix command line conceptsUnix command line concepts
Unix command line conceptsArtem Nagornyi
 

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
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
Bozorgmeh os lab
Bozorgmeh os labBozorgmeh os lab
Bozorgmeh os lab
 
Linux powerpoint
Linux powerpointLinux powerpoint
Linux powerpoint
 
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
 
Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja Linux Command Line - By Ranjan Raja
Linux Command Line - By Ranjan Raja
 
Lnx
LnxLnx
Lnx
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
Linux Notes-1.pdf
Linux Notes-1.pdfLinux Notes-1.pdf
Linux Notes-1.pdf
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
 
Rhel1
Rhel1Rhel1
Rhel1
 
Karkha unix shell scritping
Karkha unix shell scritpingKarkha unix shell scritping
Karkha unix shell scritping
 
Perintah dasar terminal kali linux
Perintah dasar terminal kali linuxPerintah dasar terminal kali linux
Perintah dasar terminal kali linux
 
Unix command line concepts
Unix command line conceptsUnix command line concepts
Unix command line concepts
 

Recently uploaded

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 

Recently uploaded (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 

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