<body> <!-- www.mybloglog.com --> <script type='text/javascript' src='http://track3.mybloglog.com/js/jsserv.php?mblID=2008020909412660'></script> <!-- www.mybloglog.com -->

Unix command | Unix administrator

Unix | Linux | Solaris | Hp-Ux | Xen ... what the fsck, is sar. Why not use vmstat. Is prstat better than top? Bash, korn, c shell, sea shell? root passwd shadow, su - ssp. Time to mount the nfs and starts with UNIX hosting, much more easier on Linux hosting.

tar Command

Thursday, December 20, 2007

tar a file and then copy it / untar in a new folder
# cd /source/directory
# tar cf - . |(cd /destination/dir; tar xvfBp -)

tar command with exclude
# tar cvf /apache.tar --exclude=/var/apache/htdocs/docu/patch/*.zip \
> --exclude=/var/apache/htdocs/docu/iplanet/*.gz /var/apache/htdocs/docu

# tar cvf /os.tar --exclude=/var --exclude=/usr --exclude=sys / Note: not working to backup OS
posted by MML, 3:45 AM

0 Comments:

Add a comment