SlideShare une entreprise Scribd logo
1  sur  20
LINUX
Shifa Sageer
WHAT IS LINUX?
● Linux is an open-source operating system like other operating systems such
as Microsoft Windows, Apple Mac OS, iOS, Google android, etc.
● The Linux OS was developed by Linus Torvalds in 1991.
USE OF LINUX
● In mid-1990s NASA replaced it’s expensive machines with clusters of
cheap computers running Linux.
● Almost all supercomputers run some form of linux.
● Android is based on linux.
● In-Flight entertainment systems use linux.
● It is very much famous among developers and normal computer users.
FREE AND OPEN SOURCE OS
● Most OS come in a compiled format ie ,source code has run through a program
called a compiler that translates the source code into a language that is known to the
computer.
● On the other hand, open-source is completely different. The source code is included
with the compiled version and allows modification by anyone having some knowledge.
● It gives us the freedom to run the program, freedom to change the code according to
our use.
"for the people, by the people."
STRUCTURE OF LINUX SYSTEM
It consist of three parts:
● LINUX Kernel
● Shells
● Tools and applications
LINUX KERNEL
Kernel is the core of the UNIX OS. It controls all tasks, schedule all
Processes and carries out all the functions of OS.
SHELL
Shell is the command interpreter in the UNIX OS. It accepts command
from the user and analyses and interprets them.
BASIC LINUX COMMANDS
1. pwd
To find Present Working directory.
Example:
user@user:~$ pwd
/home/user
2. mkdir
Making a Directory in the terminal.
mkdir dirName - Creates a directory with name dirName.
Example:
mkdir temp
Creates the directory temp.
3. rmdir
Removing a Directory
rmdir dirName - Removes a directory dirName.
Example:
rmdir temp
- Removes the directory temp.
4.cd
Change your current working directory.
Example:
user@user:~$ cd Desktop
user@user:~/Desktop$
cd .. -Move to your parent directory.
•
Example:
user@user:~/Desktop/new$ cd ..
user@user:~/Desktop$
5. cat
Sends file contents to standard output. This is a way to list the
contents of short files to the screen.
Example:
user@user:~$ cat > filename
Hi
How are you
user@user:~$ cat filename
Hi
How are you
6. ls
Lists directory contents of files and directories.
Example:
user@user:~$ ls
Desktop Documents Downloads Music Pictures Public Templates Videos
•ls -a - Display the hidden files.
•ls -al - List all files in the current working directory in long list(rwx..)
•Example:
user@user:~$ls -al
drwxr-xr-x 21 user user 4096 Jan 30 06:57 .
-rw------- 1 user user 36 Jan 30 06:59 .bash_history
7. cp
•This command is used to copy files or directory.
•cp source_file destination_file
Example:
user@user:~/Desktop/new$ cp oldfile.txt newfile.txt
8. Echo
•used to print the message on the screen.
Eg:$echo “text”
9. mv
Move or rename files.
mv myfile yourfile
•Move the file from "myfile" to "yourfile". This effectively changes
the name of "myfile" to "yourfile" and ask the user whether we
want to overwrite or not.
10. uname
•Display linux information.
Example:
•$ uname -o
GNU/Linux
11. History
history command is used to view the previously executed
command.
12. bc
•An arbitrary precision calculator language.
Example:
ccf@FISATPC0360:~$ bc
1+4
5
13. who
•The command is used to get information about currently logged in user
on to the system.
14. date
•used to check the date and time
15. cal
•used to display the calendar Syn:$cal 2 2009
16. touch
used to create a blank file.
17. grep
used to search a particular word or pattern related to that word from the file.
Syn:$grep search word filename
Eg:$grep hi student
18. wc
•wc–it counts the number of lines, words, character in a
specified file(s) with the options as –l,-w,-c
syn:$wc file.txt
$wc -w file.txt
19. head
$head filename
Eg:$head student
To display the top two lines:
•$head -2 student
20. Tail
•displays last 10 lines of the file
•Syn:$tail filename Eg:$tail student
•To display the bottom two lines;
•Syn:$ tail -2 student
16. chmod
–used to change the permissions of a file or directory.
$ch mod category operation permission file
Where, Category–is the user type
Operation–is used to assign or remove permission
Permission–is the type of permission
File– file used to assign or remove permission
THANK YOU

Contenu connexe

Similaire à INTRODUCTION TO LINUX

Similaire à INTRODUCTION TO LINUX (20)

Linux Notes-1.pdf
Linux Notes-1.pdfLinux Notes-1.pdf
Linux Notes-1.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
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programming
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
 
Operating systems unix
Operating systems   unixOperating systems   unix
Operating systems unix
 
Introduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUXIntroduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUX
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
 
Introduction to UNIX
Introduction to UNIXIntroduction to UNIX
Introduction to UNIX
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
 
redhat_by_Cbitss.ppt
redhat_by_Cbitss.pptredhat_by_Cbitss.ppt
redhat_by_Cbitss.ppt
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
chapter-1-introduction-to-linux.ppt
chapter-1-introduction-to-linux.pptchapter-1-introduction-to-linux.ppt
chapter-1-introduction-to-linux.ppt
 
Introduction to Linux.ppt
Introduction to Linux.pptIntroduction to Linux.ppt
Introduction to Linux.ppt
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
Linux Internals - Part I
Linux Internals - Part ILinux Internals - Part I
Linux Internals - Part I
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command Shell
 

Dernier

5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceanilsa9823
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 

Dernier (20)

5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female serviceCALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 

INTRODUCTION TO LINUX

  • 2. WHAT IS LINUX? ● Linux is an open-source operating system like other operating systems such as Microsoft Windows, Apple Mac OS, iOS, Google android, etc. ● The Linux OS was developed by Linus Torvalds in 1991.
  • 3. USE OF LINUX ● In mid-1990s NASA replaced it’s expensive machines with clusters of cheap computers running Linux. ● Almost all supercomputers run some form of linux. ● Android is based on linux. ● In-Flight entertainment systems use linux. ● It is very much famous among developers and normal computer users.
  • 4. FREE AND OPEN SOURCE OS ● Most OS come in a compiled format ie ,source code has run through a program called a compiler that translates the source code into a language that is known to the computer. ● On the other hand, open-source is completely different. The source code is included with the compiled version and allows modification by anyone having some knowledge. ● It gives us the freedom to run the program, freedom to change the code according to our use. "for the people, by the people."
  • 5. STRUCTURE OF LINUX SYSTEM It consist of three parts: ● LINUX Kernel ● Shells ● Tools and applications
  • 6. LINUX KERNEL Kernel is the core of the UNIX OS. It controls all tasks, schedule all Processes and carries out all the functions of OS. SHELL Shell is the command interpreter in the UNIX OS. It accepts command from the user and analyses and interprets them.
  • 8. 1. pwd To find Present Working directory. Example: user@user:~$ pwd /home/user 2. mkdir Making a Directory in the terminal. mkdir dirName - Creates a directory with name dirName. Example: mkdir temp Creates the directory temp.
  • 9. 3. rmdir Removing a Directory rmdir dirName - Removes a directory dirName. Example: rmdir temp - Removes the directory temp.
  • 10. 4.cd Change your current working directory. Example: user@user:~$ cd Desktop user@user:~/Desktop$ cd .. -Move to your parent directory. • Example: user@user:~/Desktop/new$ cd .. user@user:~/Desktop$
  • 11. 5. cat Sends file contents to standard output. This is a way to list the contents of short files to the screen. Example: user@user:~$ cat > filename Hi How are you user@user:~$ cat filename Hi How are you
  • 12. 6. ls Lists directory contents of files and directories. Example: user@user:~$ ls Desktop Documents Downloads Music Pictures Public Templates Videos •ls -a - Display the hidden files. •ls -al - List all files in the current working directory in long list(rwx..) •Example: user@user:~$ls -al drwxr-xr-x 21 user user 4096 Jan 30 06:57 . -rw------- 1 user user 36 Jan 30 06:59 .bash_history
  • 13. 7. cp •This command is used to copy files or directory. •cp source_file destination_file Example: user@user:~/Desktop/new$ cp oldfile.txt newfile.txt 8. Echo •used to print the message on the screen. Eg:$echo “text”
  • 14. 9. mv Move or rename files. mv myfile yourfile •Move the file from "myfile" to "yourfile". This effectively changes the name of "myfile" to "yourfile" and ask the user whether we want to overwrite or not. 10. uname •Display linux information. Example: •$ uname -o GNU/Linux
  • 15. 11. History history command is used to view the previously executed command. 12. bc •An arbitrary precision calculator language. Example: ccf@FISATPC0360:~$ bc 1+4 5
  • 16. 13. who •The command is used to get information about currently logged in user on to the system. 14. date •used to check the date and time 15. cal •used to display the calendar Syn:$cal 2 2009 16. touch used to create a blank file.
  • 17. 17. grep used to search a particular word or pattern related to that word from the file. Syn:$grep search word filename Eg:$grep hi student 18. wc •wc–it counts the number of lines, words, character in a specified file(s) with the options as –l,-w,-c syn:$wc file.txt $wc -w file.txt
  • 18. 19. head $head filename Eg:$head student To display the top two lines: •$head -2 student 20. Tail •displays last 10 lines of the file •Syn:$tail filename Eg:$tail student •To display the bottom two lines; •Syn:$ tail -2 student
  • 19. 16. chmod –used to change the permissions of a file or directory. $ch mod category operation permission file Where, Category–is the user type Operation–is used to assign or remove permission Permission–is the type of permission File– file used to assign or remove permission