Ubuntu Reference                          Privileges                                                           Networksudo...
Upcoming SlideShare
Loading in …5
×

Ubuntu cheat sheet

873 views
678 views

Published on

Published in: Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
873
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Ubuntu cheat sheet

  1. 1. Ubuntu Reference Privileges Networksudo command – run command as root ifconfig – show network informationsudo -s – open a root shell iwconfig – show wireless informationsudo -s -u user – open a shell as user sudo iwlist scan – scan for wireless networkssudo -k – forget sudo passwords sudo /etc/init.d/networking restart – resetgksudo command – visual sudo dialog (GNOME) network for manual configurationskdesudo command – visual sudo dialog (KDE) (file) /etc/network/interfaces – manualsudo visudo – edit /etc/sudoers configurationgksudo nautilus – root file manager (GNOME) ifup interface – bring interface onlinekdesudo konqueror – root file manager (KDE) ifdown interface – disable interfacepasswd – change your password Special Packages Display ubuntu-desktop – standard Ubuntu environmentsudo /etc/init.d/gdm restart – restart X and kubuntu-desktop – KDE desktopreturn to login (GNOME) xubuntu-desktop – XFCE desktopsudo /etc/init.d/kdm restart – restart X and ubuntu-minimal – core Ubuntu utilitiesreturn to login (KDE) ubuntu-standard – standard Ubuntu utilities(file) /etc/X11/xorg.conf – display ubuntu-restricted-extras – non-free, but usefulconfiguration kubuntu-restricted-extras – KDE of the abovesudo dexconf – reset xorg.conf configuration xubuntu-restricted-extras – XFCE of the aboveCtrl+Alt+Bksp – restart X display if frozen build-essential – packages used to compileCtrl+Alt+FN – switch to tty N programsCtrl+Alt+F7 – switch back to X display linux-image-generic – latest generic kernel image System Services¹ linux-headers-generic – latest build headersstart 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 portrunlevel – get current runlevel ufw deny from ip – block ip adress Package Management¹ Application Namesapt-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 pkgapt-get autoremove – remove obsolete packages Systemapt-get -f install – try to fix broken packages Recovery - Type the phrase “REISUB” whiledpkg --configure -a – try to fix broken holding down Alt and SysRq (PrintScrn) withpackages about 1 second between each letter. Your systemdpkg -i pkg.deb – install file pkg.deb will reboot.(file) /etc/apt/sources.list – APT repository lsb_release -a – get Ubuntu versionlist uname -r – get kernel version uname -a – get all kernel information1. 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.

×