Wednesday, April 21, 2010

Forgetting my tar gzip for no reason

I just can't seem to retain the usual tar gzip commands I use.. SO here is my blog entry that is also a cheat sheet for commands I use often, but still can't seem to remember.

Tar Gzip Create: tar -czvf filename.tar.gz folder/
Tar Gzip Expand: tar -xzvf filename.tar.gz

Grant for Mysql;
GRANT <permissions ALL, SELECT> on DB.Table(*) to user@<ip or like '10.%'> identified by 'pwd';

Copy, preserving permissions, verbosely, recursively, forcing:
cp -pvfr files where

If I think of more (as I google them because I've forgotten them again) I'll edit my own post.. since this post is all for me anyhow :D

Deleting a block in VI:

First line: ma
Last line: :'a,.d


No comments:


Made by Lena