Asim
HUSANOVIĆ

Tag: bash

admin
Command to Compress/Uncompress tar.gz and tar.bz2 files
2012.08.22 08:53:39

Compress folder Test/ to Test.tar.gz

tar czfv Test.tar.gz Test/

czfv = ‘Compress Zip File Verbose’
If you want bzip files, use ‘j’ instead of ‘z’.

Uncompress Test.tar.gz to folder Test/

tar -xzf Test.tar.gz


x = ‘eXtract’
Again, if you want bzip files, use ‘j’ instead of ‘z’.



Tags: bash | sh | ksh | linux | unix | tar | gz | bz

Comments 1 | Hits: 1557 | Read more...


 
admin
Bash
2012.07.01 17:51:06

Recursive grep:

grep -rn pattern /path/

 

Find open port and forse close:

Find:

netnetstat -apn |grep 8080

Kill:

lsof -i tcp:8080



Tags: bash | sh | ksh | linux | unix | grep | port

Comments 1 | Hits: 1455 | Read more...


 

IDOBlog - blog for joomla 1.5