user
pass
 
 
fish only 0
2008-12-05 00:00
fish only 0
2008-12-04 19:31
fish only 0
2008-12-04 19:28
Welcome noima
2008-12-03 16:11
 
@ startusers' foldersthkcommands memo
from thk thk on 2008-04-06 17:56 tags linux , programming
It's hard to remember all those linux commands

1.to exclude a directory from svn control
svn propset svn:ignore '*' dir_name/

Quick Start: Here we’l present quick start examples explained.

Create linux tar gz (Gzip) archive

tar -czvf myarchive.tgz mydirectory/

We use the -t option to create an linux tar archive
-c, –create        ​​        ​​      createanew archive

Note that .tgz is the same thing as .tar.gz

Create linux simple tar archive (withouth compresion)

tar -cvf myarchive.tar mydirectory/

Extracting linux tar archive:

Extract linux tar gz (Gzip) archive
tar -xzvf mystuff.tgz

Extract linux simple tar archive
tar -xvf mystuff.tar

We use -x to extract the files form the tar archive
-x, –extract, –get    extract files from an archive

And now let us shortly explain this command

Usage: tar [OPTION]… [FILE]…

Let us check the option used in this example

-c, –create      ​​        ​​        ​​createanew archive
-z, –gzip, –ungzip      ​​  filterthearchive through gzip
-v, –verbose      ​​        ​​     verboselylistfiles processed
-f, –file=ARCHIVE     ​​     usearchivefile or device ARCHIVE

Testing / viewing your archive

tar -tvf myarchive.tar
tar -tzvf myarchive.tgz

Here we used the - t opton
-t, –list       ​​        ​​        ​​  list the contents of an archive