SlideShare a Scribd company logo
1 of 1
Download to read offline
Ubuntu Reference
                          Privileges                                                           Network
sudo command – run command as root                                  ifconfig – show network information
sudo -s – open a root shell                                         iwconfig – show wireless information
sudo -s -u user – open a shell as user                              sudo iwlist scan – scan for wireless networks
sudo -k – forget sudo passwords                                     sudo /etc/init.d/networking restart – reset
gksudo command – visual sudo dialog (GNOME)                         network for manual configurations
kdesudo command – visual sudo dialog (KDE)                          (file) /etc/network/interfaces – manual
sudo visudo – edit /etc/sudoers                                     configuration
gksudo nautilus – root file manager (GNOME)                         ifup interface – bring interface online
kdesudo konqueror – root file manager (KDE)                         ifdown interface – disable interface
passwd – change your password
                                                                                         Special Packages
                            Display                                 ubuntu-desktop – standard Ubuntu environment
sudo /etc/init.d/gdm restart – restart X and                        kubuntu-desktop – KDE desktop
return to login (GNOME)                                             xubuntu-desktop – XFCE desktop
sudo /etc/init.d/kdm restart – restart X and                        ubuntu-minimal – core Ubuntu utilities
return to login (KDE)                                               ubuntu-standard – standard Ubuntu utilities
(file) /etc/X11/xorg.conf – display                                 ubuntu-restricted-extras – non-free, but useful
configuration                                                       kubuntu-restricted-extras – KDE of the above
sudo dexconf – reset xorg.conf configuration                        xubuntu-restricted-extras – XFCE of the above
Ctrl+Alt+Bksp – restart X display if frozen                         build-essential – packages used to compile
Ctrl+Alt+FN – switch to tty N                                       programs
Ctrl+Alt+F7 – switch back to X display                              linux-image-generic – latest generic kernel
                                                                    image
                     System Services¹                               linux-headers-generic – latest build headers
start service – start job service (Upstart)
stop service – stop job service (Upstart)                                                      Firewall¹
status service – check if service is running                        ufw enable – turn on the firewall
(Upstart)                                                           ufw disable – turn off the firewall
/etc/init.d/service start – start service                           ufw default allow – allow all connections by
(SysV)                                                              default
/etc/init.d/service stop – stop service (SysV)                      ufw default deny – drop all connections by
/etc/init.d/service status – check service                          default
(SysV)                                                              ufw status – current status and rules
/etc/init.d/service restart – restart service                       ufw allow port – allow traffic on port
(SysV)                                                              ufw deny port – block port
runlevel – get current runlevel                                     ufw deny from ip – block ip adress

                 Package Management¹                                                    Application Names
apt-get update – refresh available updates                          nautilus – file manager (GNOME)
apt-get upgrade – upgrade all packages                              dolphin – file manager (KDE)
apt-get dist-upgrade – upgrade with package                         konqueror – web browser (KDE)
replacements; upgrade Ubuntu version                                kate – text editor (KDE)
apt-get install pkg – install pkg                                   gedit – text editor (GNOME)
apt-get purge pkg – uninstall pkg
apt-get autoremove – remove obsolete packages                                                   System
apt-get -f install – try to fix broken packages                     Recovery - Type the phrase “REISUB” while
dpkg --configure -a – try to fix broken                             holding down Alt and SysRq (PrintScrn) with
packages                                                            about 1 second between each letter. Your system
dpkg -i pkg.deb – install file pkg.deb                              will reboot.
(file) /etc/apt/sources.list – APT repository                       lsb_release -a – get Ubuntu version
list                                                                uname -r – get kernel version
                                                                    uname -a – get all kernel information

1. Prefix commands with sudo to run.
Ubuntu is a trademark of Canonical Ltd. Licensed under CC-BY-SA 3.0. Free to redistribute; see creativecommons.org for details.

More Related Content

What's hot

ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2Yogindernath Gupta
 
IT8076 - SOFTWARE TESTING
IT8076 - SOFTWARE TESTINGIT8076 - SOFTWARE TESTING
IT8076 - SOFTWARE TESTINGSathya R
 
Intro to software development
Intro to software developmentIntro to software development
Intro to software developmentHawkman Academy
 
Software Engineering MCQs
Software Engineering MCQsSoftware Engineering MCQs
Software Engineering MCQsGurpreet singh
 
Software Architecture Document | Part 1
Software Architecture Document | Part 1Software Architecture Document | Part 1
Software Architecture Document | Part 1Habibur Rony
 
Architecture Of The Linux Kernel
Architecture Of The Linux KernelArchitecture Of The Linux Kernel
Architecture Of The Linux Kernelguest547d74
 
Software engineering تلخيص
Software engineering تلخيصSoftware engineering تلخيص
Software engineering تلخيصARWA ALSAIF
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts pptRathna Priya
 
ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5Yogindernath Gupta
 
Chapter 6 software metrics
Chapter 6 software metricsChapter 6 software metrics
Chapter 6 software metricsdespicable me
 
Fundamentals of software development
Fundamentals of software developmentFundamentals of software development
Fundamentals of software developmentPratik Devmurari
 
Kernel linux lab manual feb (1)
Kernel linux lab manual feb (1)Kernel linux lab manual feb (1)
Kernel linux lab manual feb (1)johny shaik
 

What's hot (17)

ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2
 
IT8076 - SOFTWARE TESTING
IT8076 - SOFTWARE TESTINGIT8076 - SOFTWARE TESTING
IT8076 - SOFTWARE TESTING
 
Intro to software development
Intro to software developmentIntro to software development
Intro to software development
 
Software Engineering MCQs
Software Engineering MCQsSoftware Engineering MCQs
Software Engineering MCQs
 
Software Architecture Document | Part 1
Software Architecture Document | Part 1Software Architecture Document | Part 1
Software Architecture Document | Part 1
 
Architecture Of The Linux Kernel
Architecture Of The Linux KernelArchitecture Of The Linux Kernel
Architecture Of The Linux Kernel
 
Software engineering تلخيص
Software engineering تلخيصSoftware engineering تلخيص
Software engineering تلخيص
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
 
White box ppt
White box pptWhite box ppt
White box ppt
 
Static Testing
Static TestingStatic Testing
Static Testing
 
ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5
 
Chapter 6 software metrics
Chapter 6 software metricsChapter 6 software metrics
Chapter 6 software metrics
 
Black & White Box testing
Black & White Box testingBlack & White Box testing
Black & White Box testing
 
Fundamentals of software development
Fundamentals of software developmentFundamentals of software development
Fundamentals of software development
 
White Box Testing
White Box Testing White Box Testing
White Box Testing
 
Kernel linux lab manual feb (1)
Kernel linux lab manual feb (1)Kernel linux lab manual feb (1)
Kernel linux lab manual feb (1)
 
Complexity metrics and models
Complexity metrics and modelsComplexity metrics and models
Complexity metrics and models
 

Similar to Ubuntu reference guide for system administration, networking, and package management

Similar to Ubuntu reference guide for system administration, networking, and package management (20)

Ubunturef
UbunturefUbunturef
Ubunturef
 
Clase4 (consola linux)
Clase4 (consola linux)Clase4 (consola linux)
Clase4 (consola linux)
 
Introduction to linux day1
Introduction to linux day1Introduction to linux day1
Introduction to linux day1
 
Linux Troubleshooting
Linux TroubleshootingLinux Troubleshooting
Linux Troubleshooting
 
Rhel3
Rhel3Rhel3
Rhel3
 
Andresen 8 21 02
Andresen 8 21 02Andresen 8 21 02
Andresen 8 21 02
 
Ubuntu Cheat Sheet
Ubuntu Cheat SheetUbuntu Cheat Sheet
Ubuntu Cheat Sheet
 
Ubunturef
UbunturefUbunturef
Ubunturef
 
DevOps Braga #6
DevOps Braga #6DevOps Braga #6
DevOps Braga #6
 
Linux training
Linux trainingLinux training
Linux training
 
Linux
Linux Linux
Linux
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
Software management in linux
Software management in linuxSoftware management in linux
Software management in linux
 
Linuxconcepts
LinuxconceptsLinuxconcepts
Linuxconcepts
 
Linux
LinuxLinux
Linux
 
Sahul
SahulSahul
Sahul
 
Sahul
SahulSahul
Sahul
 
Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)Advanced Level Training on Koha / TLS (ToT)
Advanced Level Training on Koha / TLS (ToT)
 
Clase10 (consola linux)
Clase10 (consola linux)Clase10 (consola linux)
Clase10 (consola linux)
 
Introduction to linux day-3
Introduction to linux day-3Introduction to linux day-3
Introduction to linux day-3
 

More from Piyush Mittal

More from Piyush Mittal (20)

Power mock
Power mockPower mock
Power mock
 
Design pattern tutorial
Design pattern tutorialDesign pattern tutorial
Design pattern tutorial
 
Reflection
ReflectionReflection
Reflection
 
Gpu archi
Gpu archiGpu archi
Gpu archi
 
Cuda Architecture
Cuda ArchitectureCuda Architecture
Cuda Architecture
 
Intel open mp
Intel open mpIntel open mp
Intel open mp
 
Intro to parallel computing
Intro to parallel computingIntro to parallel computing
Intro to parallel computing
 
Cuda toolkit reference manual
Cuda toolkit reference manualCuda toolkit reference manual
Cuda toolkit reference manual
 
Matrix multiplication using CUDA
Matrix multiplication using CUDAMatrix multiplication using CUDA
Matrix multiplication using CUDA
 
Channel coding
Channel codingChannel coding
Channel coding
 
Basics of Coding Theory
Basics of Coding TheoryBasics of Coding Theory
Basics of Coding Theory
 
Java cheat sheet
Java cheat sheetJava cheat sheet
Java cheat sheet
 
Google app engine cheat sheet
Google app engine cheat sheetGoogle app engine cheat sheet
Google app engine cheat sheet
 
Git cheat sheet
Git cheat sheetGit cheat sheet
Git cheat sheet
 
Vi cheat sheet
Vi cheat sheetVi cheat sheet
Vi cheat sheet
 
Css cheat sheet
Css cheat sheetCss cheat sheet
Css cheat sheet
 
Cpp cheat sheet
Cpp cheat sheetCpp cheat sheet
Cpp cheat sheet
 
Php cheat sheet
Php cheat sheetPhp cheat sheet
Php cheat sheet
 
oracle 9i cheat sheet
oracle 9i cheat sheetoracle 9i cheat sheet
oracle 9i cheat sheet
 
Open ssh cheet sheat
Open ssh cheet sheatOpen ssh cheet sheat
Open ssh cheet sheat
 

Recently uploaded

Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Recently uploaded (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

Ubuntu reference guide for system administration, networking, and package management

  • 1. Ubuntu Reference Privileges Network sudo command – run command as root ifconfig – show network information sudo -s – open a root shell iwconfig – show wireless information sudo -s -u user – open a shell as user sudo iwlist scan – scan for wireless networks sudo -k – forget sudo passwords sudo /etc/init.d/networking restart – reset gksudo command – visual sudo dialog (GNOME) network for manual configurations kdesudo command – visual sudo dialog (KDE) (file) /etc/network/interfaces – manual sudo visudo – edit /etc/sudoers configuration gksudo nautilus – root file manager (GNOME) ifup interface – bring interface online kdesudo konqueror – root file manager (KDE) ifdown interface – disable interface passwd – change your password Special Packages Display ubuntu-desktop – standard Ubuntu environment sudo /etc/init.d/gdm restart – restart X and kubuntu-desktop – KDE desktop return to login (GNOME) xubuntu-desktop – XFCE desktop sudo /etc/init.d/kdm restart – restart X and ubuntu-minimal – core Ubuntu utilities return to login (KDE) ubuntu-standard – standard Ubuntu utilities (file) /etc/X11/xorg.conf – display ubuntu-restricted-extras – non-free, but useful configuration kubuntu-restricted-extras – KDE of the above sudo dexconf – reset xorg.conf configuration xubuntu-restricted-extras – XFCE of the above Ctrl+Alt+Bksp – restart X display if frozen build-essential – packages used to compile Ctrl+Alt+FN – switch to tty N programs Ctrl+Alt+F7 – switch back to X display linux-image-generic – latest generic kernel image System Services¹ linux-headers-generic – latest build headers start service – start job service (Upstart) stop service – stop job service (Upstart) Firewall¹ status service – check if service is running ufw enable – turn on the firewall (Upstart) ufw disable – turn off the firewall /etc/init.d/service start – start service ufw default allow – allow all connections by (SysV) default /etc/init.d/service stop – stop service (SysV) ufw default deny – drop all connections by /etc/init.d/service status – check service default (SysV) ufw status – current status and rules /etc/init.d/service restart – restart service ufw allow port – allow traffic on port (SysV) ufw deny port – block port runlevel – get current runlevel ufw deny from ip – block ip adress Package Management¹ Application Names apt-get update – refresh available updates nautilus – file manager (GNOME) apt-get upgrade – upgrade all packages dolphin – file manager (KDE) apt-get dist-upgrade – upgrade with package konqueror – web browser (KDE) replacements; upgrade Ubuntu version kate – text editor (KDE) apt-get install pkg – install pkg gedit – text editor (GNOME) apt-get purge pkg – uninstall pkg apt-get autoremove – remove obsolete packages System apt-get -f install – try to fix broken packages Recovery - Type the phrase “REISUB” while dpkg --configure -a – try to fix broken holding down Alt and SysRq (PrintScrn) with packages about 1 second between each letter. Your system dpkg -i pkg.deb – install file pkg.deb will reboot. (file) /etc/apt/sources.list – APT repository lsb_release -a – get Ubuntu version list uname -r – get kernel version uname -a – get all kernel information 1. Prefix commands with sudo to run. Ubuntu is a trademark of Canonical Ltd. Licensed under CC-BY-SA 3.0. Free to redistribute; see creativecommons.org for details.