Hai Bharathi
I am saravanan . I thoughts i wil appreciate , this method is very useful to linux newbie Kept it up bye --- On Thu, 10/16/08, Bharathi Subramanian <[EMAIL PROTECTED]> wrote: From: Bharathi Subramanian <[EMAIL PROTECTED]> Subject: [Ilugc] One Day One GNU/Linux Command (TAR) To: "Indian Linux Users Group - Chennai" <[email protected]> Date: Thursday, October 16, 2008, 9:24 AM One Day One GNU/Linux Command ============================= tar -- Create/Add/Extract Tape ARchives files. Summary: tar is an archiving program designed to store and extract files from an archive file known as a tar file. A tar file may be made on a tape drive, however, it is also common to write a tar file to a normal file. Normally ".tar" file is not a compressed files, it is actually a collection of files within a single file. ".tar.gz"/ ".tgz" is a collection of files in compressed mode. Example: $ tar -cf myfile.tar mydir -- Create new tar file. $ tar -cvf myfile.tar mydir -- With detail output. $ tar -tvf myfile.tar -- List the content of the tar file. $ tar -uvf myfile.tar mydir -- Update/Append files that are newer than copy in tar. $ tar -xvf myfile.tar -- Extract the tar file. $ tar -xvf myfile.tar dir1/file1 -- Extract only file1 from the tar. $ tar --delete -vf myfile.tar *.doc -- Delete all files with .doc extn from tar file. $ tar --diff -vf myfile.tar mydir -- Differences between archive & mydir $ tar -czvf myfile.tgz mydir -- Tar and GZip the files. $ tar -xzvf myfile.tgz -- Extract the tgz file. $ tar -cZvf myfile.tgz mydir -- Tar and compress the files. $ tar -xZvf myfile.tgz -- Extract the tgz file. Read: man tar HTH :) -- Bharathi S _______________________________________________ To unsubscribe, email [EMAIL PROTECTED] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc _______________________________________________ To unsubscribe, email [EMAIL PROTECTED] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
