Saturday, October 24, 2009

Useful Command Lines


alright this is where i'll be keeping all the cmds that i need to use once in a while that i cant remember loL


1 ----------------

a) winrar multiple subfolders into multiple files. (Mainly use for comix cbr )

cd /home/heoyea/comic; find * -maxdepth 0 -type d -exec rar a {}.rar {} \;


b) same as above but deletes orginal files after it has been compressed

cd /home/heoyea/comic; find * -maxdepth 0 -type d -exec rar a -df {}.rar {} \;


2------------------
sudo add-apt-repository ppa:heoyea/ppa

3------------------
a) sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678 [8 total]

Signing key:1024R/12345678
Fingerprint:9D2C2E0A3C88DD807EC787D74874D36812345678

b)
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com ABCDEFGH12345678 [16total]



4------------------
(Bleachbit replaces this, not really needed)

sudo apt-get autoclean & sudo apt-get clean

note: autoclean removes old packages thats u cannot DL no more,
clean= removes all packages saved in cache

5----------------------

sudo apt-get autoremove

Note: removes dependencys of uninstalled apps


6------------------------
sudo dpkg-reconfigure xserver-xorg

note: blackscreen of death, this reinstalls default drivers?


No comments:

Post a Comment