SlideShare a Scribd company logo
4
Most read
6
Most read
11
Most read
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 (20)

PPTX
Linux standard file system
Taaanu01
 
PPT
Vi editor in linux
Bhumivaghasiya
 
PDF
Linux introduction
Md. Zahid Hossain Shoeb
 
PDF
Basic linux commands
Shakeel Shafiq
 
PPTX
Filepermissions in linux
Subashini Pandiarajan
 
PPTX
Linux file system
Md. Tanvir Hossain
 
PDF
Linux systems - Linux Commands and Shell Scripting
Emertxe Information Technologies Pvt Ltd
 
PPTX
Know the UNIX Commands
Brahma Killampalli
 
PDF
Lesson 2 Understanding Linux File System
Sadia Bashir
 
PPTX
Software management in linux
nejadmand
 
PPTX
Linux ppt
lincy21
 
PPTX
Unix OS & Commands
Mohit Belwal
 
PPTX
Linux Presentation
Muhammad Qazi
 
PPT
Shell programming
Moayad Moawiah
 
PPTX
Introduction 2 linux
Papu Kumar
 
PPT
Linux basics
Santosh Khadsare
 
PPT
Linux presentation
Nikhil Jain
 
PPTX
Introduction to linux ppt
Omi Vichare
 
PPT
Basic command ppt
Rohit Kumar
 
Linux standard file system
Taaanu01
 
Vi editor in linux
Bhumivaghasiya
 
Linux introduction
Md. Zahid Hossain Shoeb
 
Basic linux commands
Shakeel Shafiq
 
Filepermissions in linux
Subashini Pandiarajan
 
Linux file system
Md. Tanvir Hossain
 
Linux systems - Linux Commands and Shell Scripting
Emertxe Information Technologies Pvt Ltd
 
Know the UNIX Commands
Brahma Killampalli
 
Lesson 2 Understanding Linux File System
Sadia Bashir
 
Software management in linux
nejadmand
 
Linux ppt
lincy21
 
Unix OS & Commands
Mohit Belwal
 
Linux Presentation
Muhammad Qazi
 
Shell programming
Moayad Moawiah
 
Introduction 2 linux
Papu Kumar
 
Linux basics
Santosh Khadsare
 
Linux presentation
Nikhil Jain
 
Introduction to linux ppt
Omi Vichare
 
Basic command ppt
Rohit Kumar
 

Viewers also liked (18)

PPTX
Linux commands
Mannu Khani
 
ODP
Linux Introduction (Commands)
anandvaidya
 
PPTX
UNIX/Linux training
Michael Olafusi
 
PPTX
Linux.ppt
onu9
 
PPT
Basic Linux day 2
Saikumar Daram
 
PPTX
Ip address classes
urshari
 
PPTX
Classes of adressing
Harish Godiyal
 
PPTX
Classes of ip addresses
NetProtocol Xpert
 
PPT
Linuxppt
TSUBHASHRI
 
PPTX
IP Address
Rahul P
 
PPTX
Linux basics part 1
Lilesh Pathe
 
PDF
web programming UNIT VIII python by Bhavsingh Maloth
Bhavsingh Maloth
 
PPT
Linux
Hema Prasanth
 
PDF
PythonIntro_pycon2010
Kannappan Sirchabesan
 
PDF
Build and deploy scientific Python Applications
Ramakrishna Reddy
 
DOC
Configuration difference between ipv6 and ipv4
Huanetwork
 
PDF
Tutorial on-python-programming
Chetan Giridhar
 
PPT
Comparison between ipv4 and ipv6
Dharmesh Patel
 
Linux commands
Mannu Khani
 
Linux Introduction (Commands)
anandvaidya
 
UNIX/Linux training
Michael Olafusi
 
Linux.ppt
onu9
 
Basic Linux day 2
Saikumar Daram
 
Ip address classes
urshari
 
Classes of adressing
Harish Godiyal
 
Classes of ip addresses
NetProtocol Xpert
 
Linuxppt
TSUBHASHRI
 
IP Address
Rahul P
 
Linux basics part 1
Lilesh Pathe
 
web programming UNIT VIII python by Bhavsingh Maloth
Bhavsingh Maloth
 
PythonIntro_pycon2010
Kannappan Sirchabesan
 
Build and deploy scientific Python Applications
Ramakrishna Reddy
 
Configuration difference between ipv6 and ipv4
Huanetwork
 
Tutorial on-python-programming
Chetan Giridhar
 
Comparison between ipv4 and ipv6
Dharmesh Patel
 
Ad

Similar to Basic commands of linux (20)

PDF
Linux commands
Saurabh Gupta
 
PDF
Linux commands
debashis rout
 
PDF
LinuxCommands (1).pdf
AnkitKushwaha792697
 
PPT
Basiccommandppt 130415133716-phpapp02
Kamalakannan Kuppan
 
PPTX
T02___________Basic_Linux_Commands__pptx
bestboybulshaawi
 
PPTX
Using linux in schools
saeed7878
 
DOCX
Linux basic commands tutorial
Teja Bheemanapally
 
PDF
The structure of Linux - Introduction to Linux for bioinformatics
BITS
 
PPT
linux-lecture4.ppt
LuigysToro
 
PDF
17 Linux Basics #burningkeyboards
Denis Ristic
 
DOCX
232623113-Basic-Linux-Commands.docx linux unix
mahakbhogill
 
PDF
Linux Basics
Luther Hill
 
PPTX
Linux Commands - Basic commands for Beginners
reachadhinvs
 
PPT
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
YajnadattaPattanayak
 
PPTX
Linux commands
penetration Tester
 
PPT
Linux commands and file structure
Sreenatha Reddy K R
 
PPTX
Introduction to linux day1
UtpalenduChakrobortt1
 
PPTX
Linux week 2
Vinoth Sn
 
PPTX
Lab 3 -Linux Files, Directories and Basic Commands.pptx
Ciceer Ghimirey
 
PPTX
Linux Command.pptx
SaileshB5
 
Linux commands
Saurabh Gupta
 
Linux commands
debashis rout
 
LinuxCommands (1).pdf
AnkitKushwaha792697
 
Basiccommandppt 130415133716-phpapp02
Kamalakannan Kuppan
 
T02___________Basic_Linux_Commands__pptx
bestboybulshaawi
 
Using linux in schools
saeed7878
 
Linux basic commands tutorial
Teja Bheemanapally
 
The structure of Linux - Introduction to Linux for bioinformatics
BITS
 
linux-lecture4.ppt
LuigysToro
 
17 Linux Basics #burningkeyboards
Denis Ristic
 
232623113-Basic-Linux-Commands.docx linux unix
mahakbhogill
 
Linux Basics
Luther Hill
 
Linux Commands - Basic commands for Beginners
reachadhinvs
 
linux-lecture4.pptuyhbjhbiibihbiuhbbihbi
YajnadattaPattanayak
 
Linux commands
penetration Tester
 
Linux commands and file structure
Sreenatha Reddy K R
 
Introduction to linux day1
UtpalenduChakrobortt1
 
Linux week 2
Vinoth Sn
 
Lab 3 -Linux Files, Directories and Basic Commands.pptx
Ciceer Ghimirey
 
Linux Command.pptx
SaileshB5
 
Ad

Recently uploaded (20)

PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Digital Circuits, important subject in CS
contactparinay1
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 

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