Tuesday, April 19, 2011

Missed Sudo?

It is often we miss to add "sudo" and end in messages like "Permission denied" or "only root can do that"...
here is  simple tip for that

just run

sudo !!

eg:
abhisheklal@abhisheklal-System-Product-Name:~$ umount -a
umount: only root can do that
abhisheklal@abhisheklal-System-Product-Name:~$
sudo !!
sudo umount -a
umount: /home/abhisheklal/Music: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /var/run: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /dev/shm: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /dev: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount: /: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
abhisheklal@abhisheklal-System-Product-Name:~$

No comments:

Post a Comment