0% found this document useful (0 votes)
144 views1 page

Linux Kom and

This document provides a concise reference to common Ubuntu commands for privileges, networking, display configuration, package management, firewall configuration, and other system utilities. It lists commands for running programs as root, managing network interfaces and wireless connections, restarting the display server, installing and updating packages, and configuring the ufw firewall. Recovery options like REISUB are also included to reboot the system if it freezes.

Uploaded by

marijaas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views1 page

Linux Kom and

This document provides a concise reference to common Ubuntu commands for privileges, networking, display configuration, package management, firewall configuration, and other system utilities. It lists commands for running programs as root, managing network interfaces and wireless connections, restarting the display server, installing and updating packages, and configuring the ufw firewall. Recovery options like REISUB are also included to reboot the system if it freezes.

Uploaded by

marijaas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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 confgurations
kdesudo command – visual sudo dialog (KDE) (fle) /etc/network/interfaces – manual
sudo visudo – edit /etc/sudoers confguration
gksudo nautilus – root fle manager (GNOME) ifup interface – bring interface online
kdesudo konqueror – root fle 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
(fle) /etc/X11/xorg.conf – display ubuntu-restricted-extras – non-free, but useful
confguration kubuntu-restricted-extras – KDE of the above
sudo dexconf – reset xorg.conf confguration 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 frewall
(Upstart) ufw disable – turn of the frewall
/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 trafic 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 – fle manager (GNOME)
apt-get upgrade – upgrade all packages dolphin – fle 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 fx broken packages Recovery - Type the phrase “REISUB” while
dpkg --configure -a – try to fx broken holding down Alt and SysRq (PrintScrn) with
packages about 1 second between each letter. Your system
dpkg -i pkg.deb – install fle pkg.deb will reboot.
(fle) /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. Prefi 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.

You might also like