SlideShare a Scribd company logo
1 of 19
Download to read offline
Linux Adminstartion
What is OS?
● An operating system (OS) is a collection of
software(Programs) that manages computer
hardware resources .
● It is an interface between a computer user and
computer hardware.
What is Linux?
● Linux is a Kernel.(core part of linux based OS)
- It is open source.
- its source code is freely available.
- It is free to use.
History of Linux
Unix - Ken Thompson and Dennis Ritchie
GNU project - Richard Stallman – FSF - GNU General Public License(GPL)
Linux - Linus Torvalds
Architecture of a Linux system
Linux Distributions(Disto's)
Linux
RedHat
Debian
Kali Linux,Linux Mint,Ubuntu,
Ubuntu MATE
CentOS,Fedora,Mandriva Linux
,openSUSE,
Red Hat Linux,Scientific Linux
CentOS
Community Enterprise Operating System
Linux Administration
Linux System Administration Linux Server Administration
BASIC LINUX COMMANDS
Terminal and command
● We manage linux using commands.
command [options] [arguments]
● Use an application called terminal to pass commands
to the operating system.
Application--->System Tools--->Terminal.
Basic Commands
1. # uptime
- The uptime command prints the current time
- The duration of time the system has been up
- The number of users online.
- The load average.
[ Linux keeps uptime information in /proc/uptime]
2. # date
- Display date & time.
3. # cal
- Display a calendar.
# cal 12 07 1994
4. # clear
- Clear terminal screen
Basic Commands
5. # echo
- This command will echo whatever you provide it.
6. # whatis [command name]
- This command gives a one line description about the
command.
7. # man [command name]
- To see a command's manual page.
8. # info [command name]
- These are like web pages. Internal links are present
within the info pages.
Basic Commands
6. # whoami
- This command reveals the user who is currently logged in.
7. # cd [path-to-directory]
- Change the current working directory to the directory
provided as argument.
8. # pwd (Print Current working directory)
- The current directory can be checked with ‘pwd’ command
Basic Commands
● Fields of # ls -l or # ll command.
drwxr-xr-x 2 root root 4096 2016-07-06 12:52 files
type
Accesmode
/permission
No:of links/
Shortcuts
owner
group
size Modification date and time
Name
U G O
Basic Commands
1. # ls -la - To list hidden files.
2. # ls -ld - To list the properties of a director.
3. # ls -lh - The size is converted into kilo/Mega
bytes.
4. # ls -lr - List in reverse of alphabetical order.
5. # ls -lS - To sort in term of size.
6. # ls -lSr -List in reverse form of size.
7. # ls -lt – List based on time.
Basic Commands
10. # touch [filename].[extension]
- For creating an empty file.
- If a file already exists, touch will update its
time stamp.
11. # nano [filename]
- To write and modify the content of a file.
12. # cat [filename]
- used to concatenate one or more files and print the result to the
standard output
- Cannot modify the content.
13. # vim [filename]
14. # vi [filename]
Basic Commands
15. # mkdir [directory name]
- to create a directory.
# mkdir -p – to create parent directory
16. # rm
- To remove a file or directory
# rm -f [filename] – forcefully remove
# rm -rf [file or directory name]
Basic Commands
17. # cp [source path] [destination path]
# cp -r – to copy directory.
18. # mv [source path] [destination path]
19. # head [filename]
# head -n5 [filename] -to print the first 5 lines
20. # tail [filename]
# tail -n5 [filename] -to print the last 5 lines
Basic Commands
21. # wc [filename] -word count
# wc -l [filename] – Total lines.
# wc -w [filename] – Total words.
# wc -c [filename] – Total characters.
22. # cd -Change working direstory.
# cd . - working directory itself.
# cd .. - Parent directory
# cd ../..
23. # rmdir – to remove empty directory.
24. # history – To view the history of commands.
25. # halt – To terminate the system.

More Related Content

What's hot (20)

Basic linux day 5
Basic linux day 5Basic linux day 5
Basic linux day 5
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 
Basic Linux day 1
Basic Linux day 1Basic Linux day 1
Basic Linux day 1
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Know the UNIX Commands
Know the UNIX CommandsKnow the UNIX Commands
Know the UNIX Commands
 
Basic linux day 3
Basic linux day 3Basic linux day 3
Basic linux day 3
 
Basic commands
Basic commandsBasic commands
Basic commands
 
Basic Linux day 6
Basic Linux day 6Basic Linux day 6
Basic Linux day 6
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command Line
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
BASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUXBASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUX
 
Important Linux Commands
Important Linux CommandsImportant Linux Commands
Important Linux Commands
 
Useful Linux and Unix commands handbook
Useful Linux and Unix commands handbookUseful Linux and Unix commands handbook
Useful Linux and Unix commands handbook
 
Linux command for beginners
Linux command for beginnersLinux command for beginners
Linux command for beginners
 

Similar to Basic

Linux presentation
Linux presentationLinux presentation
Linux presentationNikhil Jain
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scriptsPrashantTechment
 
Basic shell commands by Jeremy Sanders
Basic shell commands by Jeremy SandersBasic shell commands by Jeremy Sanders
Basic shell commands by Jeremy SandersDevanand Gehlot
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1Lilesh Pathe
 
INTRODUCTION TO LINUX
INTRODUCTION TO LINUXINTRODUCTION TO LINUX
INTRODUCTION TO LINUXhafees4
 
Basiccommandppt 130415133716-phpapp02
Basiccommandppt 130415133716-phpapp02Basiccommandppt 130415133716-phpapp02
Basiccommandppt 130415133716-phpapp02Kamalakannan Kuppan
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to UnixSudharsan S
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.pptanandha ganesh
 
Lecture1 2 intro-unix
Lecture1 2 intro-unixLecture1 2 intro-unix
Lecture1 2 intro-unixnghoanganh
 
The Linux Command Cheat Sheet
The Linux Command Cheat SheetThe Linux Command Cheat Sheet
The Linux Command Cheat SheetTola LENG
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unixsouthees
 
Linux Cheat Sheet.pdf
Linux Cheat Sheet.pdfLinux Cheat Sheet.pdf
Linux Cheat Sheet.pdfroschahacker
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxRajesh Kumar
 

Similar to Basic (20)

Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Group13
Group13Group13
Group13
 
Linux day 1
Linux day 1Linux day 1
Linux day 1
 
Linux basic
Linux basicLinux basic
Linux basic
 
LinuxCommands (1).pdf
LinuxCommands (1).pdfLinuxCommands (1).pdf
LinuxCommands (1).pdf
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
Linux
LinuxLinux
Linux
 
Basic shell commands by Jeremy Sanders
Basic shell commands by Jeremy SandersBasic shell commands by Jeremy Sanders
Basic shell commands by Jeremy Sanders
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
 
INTRODUCTION TO LINUX
INTRODUCTION TO LINUXINTRODUCTION TO LINUX
INTRODUCTION TO LINUX
 
Basiccommandppt 130415133716-phpapp02
Basiccommandppt 130415133716-phpapp02Basiccommandppt 130415133716-phpapp02
Basiccommandppt 130415133716-phpapp02
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
 
Lecture1 2 intro-unix
Lecture1 2 intro-unixLecture1 2 intro-unix
Lecture1 2 intro-unix
 
The Linux Command Cheat Sheet
The Linux Command Cheat SheetThe Linux Command Cheat Sheet
The Linux Command Cheat Sheet
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
Linux Cheat Sheet.pdf
Linux Cheat Sheet.pdfLinux Cheat Sheet.pdf
Linux Cheat Sheet.pdf
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptx
 

More from ARYA TM

Process management
Process managementProcess management
Process managementARYA TM
 
Useradmin
Useradmin Useradmin
Useradmin ARYA TM
 
Webserver
WebserverWebserver
WebserverARYA TM
 
package mangement
package mangementpackage mangement
package mangementARYA TM
 
EBS elastic block store
EBS elastic block storeEBS elastic block store
EBS elastic block storeARYA TM
 
Side final 2
Side final 2Side final 2
Side final 2ARYA TM
 
Multi-Level audio steganography
Multi-Level audio steganographyMulti-Level audio steganography
Multi-Level audio steganographyARYA TM
 

More from ARYA TM (13)

Ftp
FtpFtp
Ftp
 
Dns
DnsDns
Dns
 
Process management
Process managementProcess management
Process management
 
Useradmin
Useradmin Useradmin
Useradmin
 
Webserver
WebserverWebserver
Webserver
 
Crontab
CrontabCrontab
Crontab
 
package mangement
package mangementpackage mangement
package mangement
 
s3
s3s3
s3
 
AWS
AWSAWS
AWS
 
EBS elastic block store
EBS elastic block storeEBS elastic block store
EBS elastic block store
 
DevOps
DevOps DevOps
DevOps
 
Side final 2
Side final 2Side final 2
Side final 2
 
Multi-Level audio steganography
Multi-Level audio steganographyMulti-Level audio steganography
Multi-Level audio steganography
 

Recently uploaded

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 

Recently uploaded (20)

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 

Basic

  • 2. What is OS? ● An operating system (OS) is a collection of software(Programs) that manages computer hardware resources . ● It is an interface between a computer user and computer hardware.
  • 3. What is Linux? ● Linux is a Kernel.(core part of linux based OS) - It is open source. - its source code is freely available. - It is free to use.
  • 4. History of Linux Unix - Ken Thompson and Dennis Ritchie GNU project - Richard Stallman – FSF - GNU General Public License(GPL) Linux - Linus Torvalds
  • 5. Architecture of a Linux system
  • 6. Linux Distributions(Disto's) Linux RedHat Debian Kali Linux,Linux Mint,Ubuntu, Ubuntu MATE CentOS,Fedora,Mandriva Linux ,openSUSE, Red Hat Linux,Scientific Linux
  • 8. Linux Administration Linux System Administration Linux Server Administration
  • 10. Terminal and command ● We manage linux using commands. command [options] [arguments] ● Use an application called terminal to pass commands to the operating system. Application--->System Tools--->Terminal.
  • 11. Basic Commands 1. # uptime - The uptime command prints the current time - The duration of time the system has been up - The number of users online. - The load average. [ Linux keeps uptime information in /proc/uptime] 2. # date - Display date & time. 3. # cal - Display a calendar. # cal 12 07 1994 4. # clear - Clear terminal screen
  • 12. Basic Commands 5. # echo - This command will echo whatever you provide it. 6. # whatis [command name] - This command gives a one line description about the command. 7. # man [command name] - To see a command's manual page. 8. # info [command name] - These are like web pages. Internal links are present within the info pages.
  • 13. Basic Commands 6. # whoami - This command reveals the user who is currently logged in. 7. # cd [path-to-directory] - Change the current working directory to the directory provided as argument. 8. # pwd (Print Current working directory) - The current directory can be checked with ‘pwd’ command
  • 14. Basic Commands ● Fields of # ls -l or # ll command. drwxr-xr-x 2 root root 4096 2016-07-06 12:52 files type Accesmode /permission No:of links/ Shortcuts owner group size Modification date and time Name U G O
  • 15. Basic Commands 1. # ls -la - To list hidden files. 2. # ls -ld - To list the properties of a director. 3. # ls -lh - The size is converted into kilo/Mega bytes. 4. # ls -lr - List in reverse of alphabetical order. 5. # ls -lS - To sort in term of size. 6. # ls -lSr -List in reverse form of size. 7. # ls -lt – List based on time.
  • 16. Basic Commands 10. # touch [filename].[extension] - For creating an empty file. - If a file already exists, touch will update its time stamp. 11. # nano [filename] - To write and modify the content of a file. 12. # cat [filename] - used to concatenate one or more files and print the result to the standard output - Cannot modify the content. 13. # vim [filename] 14. # vi [filename]
  • 17. Basic Commands 15. # mkdir [directory name] - to create a directory. # mkdir -p – to create parent directory 16. # rm - To remove a file or directory # rm -f [filename] – forcefully remove # rm -rf [file or directory name]
  • 18. Basic Commands 17. # cp [source path] [destination path] # cp -r – to copy directory. 18. # mv [source path] [destination path] 19. # head [filename] # head -n5 [filename] -to print the first 5 lines 20. # tail [filename] # tail -n5 [filename] -to print the last 5 lines
  • 19. Basic Commands 21. # wc [filename] -word count # wc -l [filename] – Total lines. # wc -w [filename] – Total words. # wc -c [filename] – Total characters. 22. # cd -Change working direstory. # cd . - working directory itself. # cd .. - Parent directory # cd ../.. 23. # rmdir – to remove empty directory. 24. # history – To view the history of commands. 25. # halt – To terminate the system.