SlideShare a Scribd company logo
1 of 4
Download to read offline
Basics GNU/Linux Commands
Basics GNU/Linux Commands
#1. ls : list directory contents
ls
If you want to see hidden files/directories (beginning with dot.), the use -a flag.
ls -a
Check the manual for more detail (man ls).
#2. cd : Change Directory
cd ../
cd /home/Desktop
Remember,
. represents the current directory
.. represents the parent directory
~ represents the home directory (of the user)
#3. ​pwd​ : print the current/working directory
pwd
/home/Desktop/scripts
#4. ​mkdir​ : make/create directory.
mkdir ​funny_stuffs
#5. ​rm : remove/delete​ file/directory
rm useless.sh
NOTE : it removes directories only if it’s empty, unless you specify -f flag for force deletion. But you must be careful with the arguments such as -r, -f. (-rf is
very dangerous).
#6. ​sudo​ : superuser do, to gain root privilege
e.g
sudo apt-get install ​gnome-shell
Then enter your user account password, and you would be able to do administrative tasks like root. So if you’re getting any permission error using a
command, then adding sudo as a prefix, might help.
#7. ​mv : rename or move a file/directory
mv file1 ~​/Downloads/Archive/
the above command will move the file from the current directory to target directory.
mv logo_2.jpg new_logo.jpg
it will rename the file to new_logo.jpg.
#8. ​cat : View File contents
cat install.log
#9.​ man ​: A Reference manual for utils/commands/programs
e.g if you want to know more about rm command, then type –
man rm
#10. ​cp : Copy Files/Directories
cp movie_name.mp4 ~/Downloads/movies/
The above command will copy the movie_name.mp4 to the specified directory.
#11.​ wget : Download files from server
GNU Wget or wget is very handy in downloading stuffs from internet, over the command line.
wget url_of_the_content
#12.​ gksudo : Run GUI Application with Root privilege
gksudo nautilus
The above command will open nautilus with root privilege. It’s just like sudo, but in GUI mode.
#13. ​shutdown : To shutdown ​the computer from terminal
shutdown -h
where time can be 0 if you want to shutdown now or specify the exact time such as 10:30.
#14.​ restart : Restart the computer
restart
Package Management
These are Ubuntu Specific commands. It Requires root privilege, so just add the sudo prefix before each command (it will ask for the user password and
you’re done!).
#15. ​apt-get : Command Line Tool for handling packages
There are various options such as
install – To install package.
e.g Install the program PyRoom (A distraction Free Text Editor)
sudo apt-get install pyroom
remove – To remove package
sudo apt-get remove kate
update – To update the package cache
sudo apt-get update
#​16. add-apt-repository – To add a PPA (for your favorite Application)
e.g add the PPA for the App Eidete (Screencasting program)
sudo add-apt-repository ppa:shnatsel/eidete-daily
After, adding the PPA, apt-get update command is required.
#17. ​apt-cache : To access the Package details from cache
search : search for the related packages in the apt-cache
e.g
apt-cache search image editor
Prabathshantha@gmail.com

More Related Content

What's hot

6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
Teja Bheemanapally
 
Puppet barcampexercises.jzt
Puppet barcampexercises.jztPuppet barcampexercises.jzt
Puppet barcampexercises.jzt
som_nangia
 
Linux Commands - 3
Linux Commands - 3Linux Commands - 3
Linux Commands - 3
Kanchilug
 

What's hot (20)

Xampp
XamppXampp
Xampp
 
Terminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partITerminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partI
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commands
 
EUC 2013 - Erlang in a *NIX World
EUC 2013 - Erlang in a *NIX WorldEUC 2013 - Erlang in a *NIX World
EUC 2013 - Erlang in a *NIX World
 
Ubuntu presentation
Ubuntu presentationUbuntu presentation
Ubuntu presentation
 
How to install Odoo 13 in Ubuntu ?
How to install Odoo 13 in Ubuntu ?How to install Odoo 13 in Ubuntu ?
How to install Odoo 13 in Ubuntu ?
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Puppet barcampexercises.jzt
Puppet barcampexercises.jztPuppet barcampexercises.jzt
Puppet barcampexercises.jzt
 
Linux
LinuxLinux
Linux
 
Day 6 ubuntu boot camp
Day 6 ubuntu boot campDay 6 ubuntu boot camp
Day 6 ubuntu boot camp
 
Choosing Linux Distro - Personal Desktop
Choosing Linux Distro - Personal DesktopChoosing Linux Distro - Personal Desktop
Choosing Linux Distro - Personal Desktop
 
NCSU MGSA Unix Presentation
NCSU MGSA Unix PresentationNCSU MGSA Unix Presentation
NCSU MGSA Unix Presentation
 
Linux Commands - 3
Linux Commands - 3Linux Commands - 3
Linux Commands - 3
 
How to build and load linux to embedded system
How to build and load linux to embedded systemHow to build and load linux to embedded system
How to build and load linux to embedded system
 
小猴子也會的 Ubuntu Desktop 14.04 安裝教學
小猴子也會的 Ubuntu Desktop 14.04 安裝教學小猴子也會的 Ubuntu Desktop 14.04 安裝教學
小猴子也會的 Ubuntu Desktop 14.04 安裝教學
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting Started
 
Forcefully unmount a linux disk partition
Forcefully unmount a linux disk partitionForcefully unmount a linux disk partition
Forcefully unmount a linux disk partition
 
Day4 ubuntu boot camp
Day4 ubuntu boot campDay4 ubuntu boot camp
Day4 ubuntu boot camp
 

Viewers also liked

Как пробежать марафон и получить удовольствие
Как пробежать марафон и получить удовольствиеКак пробежать марафон и получить удовольствие
Как пробежать марафон и получить удовольствие
letrack
 
ماهنامه تبلیغات مدرن شماره 1
ماهنامه تبلیغات مدرن شماره 1ماهنامه تبلیغات مدرن شماره 1
ماهنامه تبلیغات مدرن شماره 1
Arzu Shahveran
 
eLearning Expo 2013 Tεχνολογία και Mάθηση
eLearning Expo 2013   Tεχνολογία και MάθησηeLearning Expo 2013   Tεχνολογία και Mάθηση
eLearning Expo 2013 Tεχνολογία και Mάθηση
John Soudias
 
EY_Utilization of mobile devices in Romania_ALL
EY_Utilization of mobile devices in Romania_ALLEY_Utilization of mobile devices in Romania_ALL
EY_Utilization of mobile devices in Romania_ALL
Constantin Magdalina
 

Viewers also liked (20)

Islami dënon terrorizmin. albanian (shqip)
Islami dënon terrorizmin. albanian (shqip)Islami dënon terrorizmin. albanian (shqip)
Islami dënon terrorizmin. albanian (shqip)
 
Pro #7 JAN`16
Pro #7 JAN`16Pro #7 JAN`16
Pro #7 JAN`16
 
Video and Opening up education @ camerazizanio
Video and Opening up education @ camerazizanioVideo and Opening up education @ camerazizanio
Video and Opening up education @ camerazizanio
 
Как пробежать марафон и получить удовольствие
Как пробежать марафон и получить удовольствиеКак пробежать марафон и получить удовольствие
Как пробежать марафон и получить удовольствие
 
01 juego de tronos
01   juego de tronos01   juego de tronos
01 juego de tronos
 
ماهنامه تبلیغات مدرن شماره 1
ماهنامه تبلیغات مدرن شماره 1ماهنامه تبلیغات مدرن شماره 1
ماهنامه تبلیغات مدرن شماره 1
 
eLearning Expo 2013 Tεχνολογία και Mάθηση
eLearning Expo 2013   Tεχνολογία και MάθησηeLearning Expo 2013   Tεχνολογία και Mάθηση
eLearning Expo 2013 Tεχνολογία και Mάθηση
 
David ingles
David inglesDavid ingles
David ingles
 
New Housing Projects in Wagholi Annex Pune
New Housing Projects in Wagholi Annex PuneNew Housing Projects in Wagholi Annex Pune
New Housing Projects in Wagholi Annex Pune
 
Economia col·laborativa, turisme col·laboratiu i KangApp
Economia col·laborativa, turisme col·laboratiu i KangAppEconomia col·laborativa, turisme col·laboratiu i KangApp
Economia col·laborativa, turisme col·laboratiu i KangApp
 
Why and Where to Outsource Data Entry Services? - Infographic
Why and Where to Outsource Data Entry Services? - InfographicWhy and Where to Outsource Data Entry Services? - Infographic
Why and Where to Outsource Data Entry Services? - Infographic
 
Companies act 2014 Impact & implications for irish charities
Companies act 2014 Impact & implications for irish charitiesCompanies act 2014 Impact & implications for irish charities
Companies act 2014 Impact & implications for irish charities
 
Competing for Talent in Digital Age
Competing for Talent in Digital AgeCompeting for Talent in Digital Age
Competing for Talent in Digital Age
 
EY_Utilization of mobile devices in Romania_ALL
EY_Utilization of mobile devices in Romania_ALLEY_Utilization of mobile devices in Romania_ALL
EY_Utilization of mobile devices in Romania_ALL
 
Five rivers in punjab
Five rivers in punjabFive rivers in punjab
Five rivers in punjab
 
Κολινδρός Πιερίας Τσούρας Αποστόλης, Α2 Γ. Κολινδρού, 2015-16
Κολινδρός Πιερίας Τσούρας Αποστόλης, Α2 Γ. Κολινδρού, 2015-16Κολινδρός Πιερίας Τσούρας Αποστόλης, Α2 Γ. Κολινδρού, 2015-16
Κολινδρός Πιερίας Τσούρας Αποστόλης, Α2 Γ. Κολινδρού, 2015-16
 
MAD 8108 KV100 Catalog (EEE & IPE Version)
MAD 8108 KV100 Catalog (EEE & IPE Version)MAD 8108 KV100 Catalog (EEE & IPE Version)
MAD 8108 KV100 Catalog (EEE & IPE Version)
 
da best,LOL
da best,LOLda best,LOL
da best,LOL
 
Adeptio
AdeptioAdeptio
Adeptio
 
San francisco
San franciscoSan francisco
San francisco
 

Similar to Basics Ubuntu commands

Similar to Basics Ubuntu commands (20)

Solaris basics
Solaris basicsSolaris basics
Solaris basics
 
Ubuntu Practice and Configuration
Ubuntu Practice and ConfigurationUbuntu Practice and Configuration
Ubuntu Practice and Configuration
 
Linux
LinuxLinux
Linux
 
Edup wifi for raspberry zero
Edup wifi  for raspberry zeroEdup wifi  for raspberry zero
Edup wifi for raspberry zero
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Sahul
SahulSahul
Sahul
 
Sahul
SahulSahul
Sahul
 
Basic shell commands by Jeremy Sanders
Basic shell commands by Jeremy SandersBasic shell commands by Jeremy Sanders
Basic shell commands by Jeremy Sanders
 
Fedora Linux
Fedora LinuxFedora Linux
Fedora Linux
 
Linux_Fedora_ppt
Linux_Fedora_pptLinux_Fedora_ppt
Linux_Fedora_ppt
 
Xen time machine
Xen time machineXen time machine
Xen time machine
 
linux
linuxlinux
linux
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
Towards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev MachineTowards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev Machine
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linux basic for CADD biologist
Linux basic for CADD biologistLinux basic for CADD biologist
Linux basic for CADD biologist
 
Ubuntu alternate ubuntu installation
Ubuntu alternate ubuntu installationUbuntu alternate ubuntu installation
Ubuntu alternate ubuntu installation
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 

Recently uploaded

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 

Recently uploaded (20)

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
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 🔝✔️✔️
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
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 🔝✔️✔️
 

Basics Ubuntu commands

  • 2. Basics GNU/Linux Commands #1. ls : list directory contents ls If you want to see hidden files/directories (beginning with dot.), the use -a flag. ls -a Check the manual for more detail (man ls). #2. cd : Change Directory cd ../ cd /home/Desktop Remember, . represents the current directory .. represents the parent directory ~ represents the home directory (of the user) #3. ​pwd​ : print the current/working directory pwd /home/Desktop/scripts #4. ​mkdir​ : make/create directory. mkdir ​funny_stuffs #5. ​rm : remove/delete​ file/directory rm useless.sh NOTE : it removes directories only if it’s empty, unless you specify -f flag for force deletion. But you must be careful with the arguments such as -r, -f. (-rf is very dangerous). #6. ​sudo​ : superuser do, to gain root privilege e.g sudo apt-get install ​gnome-shell Then enter your user account password, and you would be able to do administrative tasks like root. So if you’re getting any permission error using a command, then adding sudo as a prefix, might help.
  • 3. #7. ​mv : rename or move a file/directory mv file1 ~​/Downloads/Archive/ the above command will move the file from the current directory to target directory. mv logo_2.jpg new_logo.jpg it will rename the file to new_logo.jpg. #8. ​cat : View File contents cat install.log #9.​ man ​: A Reference manual for utils/commands/programs e.g if you want to know more about rm command, then type – man rm #10. ​cp : Copy Files/Directories cp movie_name.mp4 ~/Downloads/movies/ The above command will copy the movie_name.mp4 to the specified directory. #11.​ wget : Download files from server GNU Wget or wget is very handy in downloading stuffs from internet, over the command line. wget url_of_the_content #12.​ gksudo : Run GUI Application with Root privilege gksudo nautilus The above command will open nautilus with root privilege. It’s just like sudo, but in GUI mode. #13. ​shutdown : To shutdown ​the computer from terminal shutdown -h where time can be 0 if you want to shutdown now or specify the exact time such as 10:30. #14.​ restart : Restart the computer restart Package Management These are Ubuntu Specific commands. It Requires root privilege, so just add the sudo prefix before each command (it will ask for the user password and you’re done!).
  • 4. #15. ​apt-get : Command Line Tool for handling packages There are various options such as install – To install package. e.g Install the program PyRoom (A distraction Free Text Editor) sudo apt-get install pyroom remove – To remove package sudo apt-get remove kate update – To update the package cache sudo apt-get update #​16. add-apt-repository – To add a PPA (for your favorite Application) e.g add the PPA for the App Eidete (Screencasting program) sudo add-apt-repository ppa:shnatsel/eidete-daily After, adding the PPA, apt-get update command is required. #17. ​apt-cache : To access the Package details from cache search : search for the related packages in the apt-cache e.g apt-cache search image editor Prabathshantha@gmail.com