Saturday, April 27, 2013

Check if package is installed in Ubuntu/Debian/Mint

Check if package dkms is installed:

$: dpkg -s dkms


Reference(s):
http://www.cyberciti.biz/faq/find-out-if-package-is-installed-in-linux/


Monday, April 22, 2013

Logout GNOME from command line

$: gnome-session-quit

Reference(s):
http://askubuntu.com/questions/15795/how-can-you-log-out-via-the-terminal

Sunday, April 14, 2013

Delete files in a directory that is older than specified

Delete all files in C:\temp which was older than 04/14/2013.
c:\temp> forfiles /D -04/13/2013 -c "cmd /c rmdir /s /q @file"