Ubuntu Sheet Cheat - Ubuntu Reference Privileges sudo...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Ubuntu Reference Privileges sudo command – run command as root sudo -s – open a root shell sudo -s -u user – open a shell as user sudo -k – forget sudo passwords gksudo command – visual sudo dialog (GNOME) kdesudo command – visual sudo dialog (KDE) sudo visudo – edit /etc/sudoers gksudo nautilus – root file manager (GNOME) kdesudo konqueror – root file manager (KDE) passwd – change your password Display sudo /etc/init.d/gdm restart – restart X and return to login (GNOME) sudo /etc/init.d/kdm restart – restart X and return to login (KDE) (file) /etc/X11/xorg.conf – display configuration sudo dexconf – reset xorg.conf configuration Ctrl+Alt+Bksp – restart X display if frozen Ctrl+Alt+F N – switch to tty N Ctrl+Alt+F7 – switch back to X display System Services¹ start service – start job service (Upstart) stop service – stop job service (Upstart) status service – check if service is running (Upstart) /etc/init.d/ service start – start service (SysV) /etc/init.d/ service stop – stop service (SysV) /etc/init.d/ service status – check service (SysV) /etc/init.d/ service restart – restart service (SysV) runlevel – get current runlevel Package Management¹ apt-get update – refresh available updates apt-get upgrade – upgrade all packages apt-get dist-upgrade – upgrade with package replacements; upgrade Ubuntu version apt-get install pkg – install pkg apt-get purge pkg – uninstall pkg apt-get autoremove – remove obsolete packages apt-get -f install – try to fix broken packages dpkg --configure -a – try to fix broken packages dpkg -i pkg.deb – install file pkg.deb (file) /etc/apt/sources.list – APT repository list Network ifconfig – show network information iwconfig – show wireless information sudo iwlist scan – scan for wireless networks sudo /etc/init.d/networking restart – reset network for manual configurations (file) /etc/network/interfaces – manual configuration ifup interface – bring interface online ifdown interface – disable interface...
View Full Document

This note was uploaded on 03/05/2010 for the course ENGINEERIN Linux taught by Professor Ubuntu during the Spring '10 term at King Abdullah University of Science and Technology.

Page1 / 2

Ubuntu Sheet Cheat - Ubuntu Reference Privileges sudo...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online