Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Ubuntu Commands - Display

sudo /etc/init.d/gdm restart - restart X (GNOME)

sudo /etc/init.d/kdm restart - restart X (KDE)

(file) /etc/Xll/xorg.conf - display configuration

sudo dpkg-reconfigure -phigh xserver-xorg - reset X configuration

Ctrl+Alt+Bksp - restart X display if frozen

Ctrl+Alt+FN - switch to tty N

Ctrl+Alt+F7 - switch back to X display

Read more


Ubuntu Commands - Privileges

sudo command - run command as root

sudo su - open a root shell

sudo su 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

Read more

About This Blog

This is a place where I write about the things I find interesting and are worth to share.