SlideShare a Scribd company logo
1 of 11
Basic Linux Commands
By- Saini shravan sitaram
GUI vs CLI
Types of Commands
• File Handling commands
• Text Processing Commands
• System Administration Commands
• Process Management Commands
• Network Commands
etc…
File Handling commands
• mkdir - make directories
Syntax: mkdir [OPTION] DIRECTORY...
eg. mkdir Movies
• ls - list directory contents
Syntax: ls
eg. : ls
• cd - changes directories
Syntax: cd Directory1/Directory2
eg. : cd Desktop/presentation
cd .. ,cd /
=>Continued
• pwd - print name of current working directory
Syntax: pwd
eg. : pwd
• cp - copy files and directories
Syntax: cp sourceFile destFile
eg.: cp file1 file2
cp file1 presentation
• mv - move (rename) files
Syntax: mv sourcefile destDirectory
eg. : mv hello presentation
mv hello hi
=>Continued
• rw - remove files or directories
Syntax: rw fileName
eg. : rw hello.txt
rw –rf pictures
• find - search for files in a directory hierarchy
Syntax: find [path] [pattern]
eg.: find file1.txt
• history - prints recently used commands
Syntax: history
eg. : history
More Commands... ??
Learn
By
YourSelf
How to Execute C/C++ programmes in
Linux
1. Install compiler => gcc/g++ compiler
2. Write a programme
3. Give commands to command shell
4. And u did that.
COMPILERS
gcc Compiler
• GCC is installed by
default, in Ubuntu.
Installing g++ Compiler
• Open command shell
• Command:sudo apt-
get install g++
Write a C/C++ programme
• Open text editor
• Write your code
• Save it with .c or .cpp extension
• Create an empty document in the
same directory to store output.
Execute Your Programe
• Open command shell
• Command: compiler fileName –o outputfile
– Ex.
1. gcc cHello.c –o output1
2. g++ cppHello.cpp -o output2
• Command : ./outputFileName =>To see the
content of outputfile

More Related Content

What's hot

Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
Rohit Kumar
 

What's hot (20)

Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux
Linux Linux
Linux
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux File System
Linux File SystemLinux File System
Linux File System
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux Introduction (Commands)
Linux Introduction (Commands)Linux Introduction (Commands)
Linux Introduction (Commands)
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystem
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Filepermissions in linux
Filepermissions in linuxFilepermissions in linux
Filepermissions in linux
 
Linux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating SystemLinux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating System
 
File permissions
File permissionsFile permissions
File permissions
 

Viewers also liked

Tutorial on-python-programming
Tutorial on-python-programmingTutorial on-python-programming
Tutorial on-python-programming
Chetan Giridhar
 

Viewers also liked (18)

Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 
Basic Linux day 2
Basic Linux day 2Basic Linux day 2
Basic Linux day 2
 
Ip address classes
Ip address classesIp address classes
Ip address classes
 
Classes of adressing
Classes of adressingClasses of adressing
Classes of adressing
 
Classes of ip addresses
Classes of ip addressesClasses of ip addresses
Classes of ip addresses
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
IP Address
IP AddressIP Address
IP Address
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
 
web programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Malothweb programming UNIT VIII python by Bhavsingh Maloth
web programming UNIT VIII python by Bhavsingh Maloth
 
Linux
Linux Linux
Linux
 
PythonIntro_pycon2010
PythonIntro_pycon2010PythonIntro_pycon2010
PythonIntro_pycon2010
 
Build and deploy scientific Python Applications
Build and deploy scientific Python Applications  Build and deploy scientific Python Applications
Build and deploy scientific Python Applications
 
Configuration difference between ipv6 and ipv4
Configuration difference between ipv6 and ipv4Configuration difference between ipv6 and ipv4
Configuration difference between ipv6 and ipv4
 
Tutorial on-python-programming
Tutorial on-python-programmingTutorial on-python-programming
Tutorial on-python-programming
 
Comparison between ipv4 and ipv6
Comparison between ipv4 and ipv6Comparison between ipv4 and ipv6
Comparison between ipv4 and ipv6
 

Similar to Basic commands of linux

File handling and permisions.pptx
File handling and permisions.pptxFile handling and permisions.pptx
File handling and permisions.pptx
AkampaPhilomena
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programming
Priyadarshini648418
 

Similar to Basic commands of linux (20)

Linux commands
Linux commands Linux commands
Linux commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Marwan al suwaidi
Marwan al suwaidiMarwan al suwaidi
Marwan al suwaidi
 
Linux basics and commands - from lynxbee.com
Linux basics and commands - from lynxbee.comLinux basics and commands - from lynxbee.com
Linux basics and commands - from lynxbee.com
 
davisExam1
davisExam1davisExam1
davisExam1
 
linux commands.pdf
linux commands.pdflinux commands.pdf
linux commands.pdf
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command Shell
 
workshop_1.ppt
workshop_1.pptworkshop_1.ppt
workshop_1.ppt
 
Linux commands
Linux commandsLinux commands
Linux commands
 
BASICS OF LINUX OPERATING SYSTEM.pptx
BASICS OF LINUX OPERATING SYSTEM.pptxBASICS OF LINUX OPERATING SYSTEM.pptx
BASICS OF LINUX OPERATING SYSTEM.pptx
 
LinuxCommands (1).pdf
LinuxCommands (1).pdfLinuxCommands (1).pdf
LinuxCommands (1).pdf
 
File handling and permisions.pptx
File handling and permisions.pptxFile handling and permisions.pptx
File handling and permisions.pptx
 
LINUX_admin_commands.pptx
LINUX_admin_commands.pptxLINUX_admin_commands.pptx
LINUX_admin_commands.pptx
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programming
 
05. Ubuntu Terminal Commands.pptx
05. Ubuntu Terminal Commands.pptx05. Ubuntu Terminal Commands.pptx
05. Ubuntu Terminal Commands.pptx
 
14.Linux Command
14.Linux Command14.Linux Command
14.Linux Command
 
008-Basic-Linux-Commands.pdf
008-Basic-Linux-Commands.pdf008-Basic-Linux-Commands.pdf
008-Basic-Linux-Commands.pdf
 
basic-unix.pdf
basic-unix.pdfbasic-unix.pdf
basic-unix.pdf
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 

Basic commands of linux

  • 1. Basic Linux Commands By- Saini shravan sitaram
  • 3. Types of Commands • File Handling commands • Text Processing Commands • System Administration Commands • Process Management Commands • Network Commands etc…
  • 4. File Handling commands • mkdir - make directories Syntax: mkdir [OPTION] DIRECTORY... eg. mkdir Movies • ls - list directory contents Syntax: ls eg. : ls • cd - changes directories Syntax: cd Directory1/Directory2 eg. : cd Desktop/presentation cd .. ,cd /
  • 5. =>Continued • pwd - print name of current working directory Syntax: pwd eg. : pwd • cp - copy files and directories Syntax: cp sourceFile destFile eg.: cp file1 file2 cp file1 presentation • mv - move (rename) files Syntax: mv sourcefile destDirectory eg. : mv hello presentation mv hello hi
  • 6. =>Continued • rw - remove files or directories Syntax: rw fileName eg. : rw hello.txt rw –rf pictures • find - search for files in a directory hierarchy Syntax: find [path] [pattern] eg.: find file1.txt • history - prints recently used commands Syntax: history eg. : history
  • 8. How to Execute C/C++ programmes in Linux 1. Install compiler => gcc/g++ compiler 2. Write a programme 3. Give commands to command shell 4. And u did that.
  • 9. COMPILERS gcc Compiler • GCC is installed by default, in Ubuntu. Installing g++ Compiler • Open command shell • Command:sudo apt- get install g++
  • 10. Write a C/C++ programme • Open text editor • Write your code • Save it with .c or .cpp extension • Create an empty document in the same directory to store output.
  • 11. Execute Your Programe • Open command shell • Command: compiler fileName –o outputfile – Ex. 1. gcc cHello.c –o output1 2. g++ cppHello.cpp -o output2 • Command : ./outputFileName =>To see the content of outputfile