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

Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands Ahmed El-Arabawy
 
Find & Locate utility Linux
Find & Locate utility LinuxFind & Locate utility Linux
Find & Locate utility LinuxBhavik Bhansali
 
Парадигма объектно-ориентированного программирования.
Парадигма объектно-ориентированного программирования.Парадигма объектно-ориентированного программирования.
Парадигма объектно-ориентированного программирования.Unguryan Vitaliy
 
What can corpus software do? Routledge chpt 11
 What can corpus software do? Routledge chpt 11 What can corpus software do? Routledge chpt 11
What can corpus software do? Routledge chpt 11RajpootBhatti5
 
Course 102: Lecture 13: Regular Expressions
Course 102: Lecture 13: Regular Expressions Course 102: Lecture 13: Regular Expressions
Course 102: Lecture 13: Regular Expressions Ahmed El-Arabawy
 
Unix shell scripting basics
Unix shell scripting basicsUnix shell scripting basics
Unix shell scripting basicsManav Prasad
 
Software development o & c
Software development o & cSoftware development o & c
Software development o & cAmit Patil
 
Introdução a Containers Docker
Introdução a Containers DockerIntrodução a Containers Docker
Introdução a Containers DockerMatheus Fidelis
 
Course 102: Lecture 9: Input Output Internals
Course 102: Lecture 9: Input Output Internals Course 102: Lecture 9: Input Output Internals
Course 102: Lecture 9: Input Output Internals Ahmed El-Arabawy
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linuxshravan saini
 
TDD and Unit Testing in Golang
TDD and Unit Testing in GolangTDD and Unit Testing in Golang
TDD and Unit Testing in GolangSofian Hadiwijaya
 
Introduction to Docker - VIT Campus
Introduction to Docker - VIT CampusIntroduction to Docker - VIT Campus
Introduction to Docker - VIT CampusAjeet Singh Raina
 
Latest Selenium Interview Questions And Answers.pdf
Latest Selenium Interview Questions And Answers.pdfLatest Selenium Interview Questions And Answers.pdf
Latest Selenium Interview Questions And Answers.pdfVarsha Rajput
 

What's hot (20)

Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
 
Kali linux commands
Kali linux commandsKali linux commands
Kali linux commands
 
Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands
 
Mi tutorial-eclipse
Mi tutorial-eclipseMi tutorial-eclipse
Mi tutorial-eclipse
 
Find & Locate utility Linux
Find & Locate utility LinuxFind & Locate utility Linux
Find & Locate utility Linux
 
Парадигма объектно-ориентированного программирования.
Парадигма объектно-ориентированного программирования.Парадигма объектно-ориентированного программирования.
Парадигма объектно-ориентированного программирования.
 
What can corpus software do? Routledge chpt 11
 What can corpus software do? Routledge chpt 11 What can corpus software do? Routledge chpt 11
What can corpus software do? Routledge chpt 11
 
Course 102: Lecture 13: Regular Expressions
Course 102: Lecture 13: Regular Expressions Course 102: Lecture 13: Regular Expressions
Course 102: Lecture 13: Regular Expressions
 
Unix shell scripting basics
Unix shell scripting basicsUnix shell scripting basics
Unix shell scripting basics
 
Software development o & c
Software development o & cSoftware development o & c
Software development o & c
 
Introdução a Containers Docker
Introdução a Containers DockerIntrodução a Containers Docker
Introdução a Containers Docker
 
Course 102: Lecture 9: Input Output Internals
Course 102: Lecture 9: Input Output Internals Course 102: Lecture 9: Input Output Internals
Course 102: Lecture 9: Input Output Internals
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
 
TDD and Unit Testing in Golang
TDD and Unit Testing in GolangTDD and Unit Testing in Golang
TDD and Unit Testing in Golang
 
JPA - Java Persistence API
JPA - Java Persistence APIJPA - Java Persistence API
JPA - Java Persistence API
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Introduction to Docker - VIT Campus
Introduction to Docker - VIT CampusIntroduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
 
Latest Selenium Interview Questions And Answers.pdf
Latest Selenium Interview Questions And Answers.pdfLatest Selenium Interview Questions And Answers.pdf
Latest Selenium Interview Questions And Answers.pdf
 
C語言檔案處理
C語言檔案處理C語言檔案處理
C語言檔案處理
 
Docker
DockerDocker
Docker
 

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

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
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
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
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
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
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
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
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🔝
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

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.