Results 1 to 4 of 4
Code:
# tar cf file.tar file
# gz -9 file.tar
that's the command when compressing file to tar.gz format but it CAN NOT archieving file with password, not like when ...
- 06-01-2005 #1Just Joined!
- Join Date
- Apr 2005
- Posts
- 1
tar.gz file with password
that's the command when compressing file to tar.gz format but it CAN NOT archieving file with password, not like when i used winzip or winrar in windows os. so, how to compressing file to tar.gz format but with password.Code:# tar cf file.tar file # gz -9 file.tar
and how to do it in tar.bz2 format (compressing file to tar.bz2 with password) ?
thank for the help
- 06-01-2005 #2Linux Engineer
- Join Date
- Aug 2004
- Posts
- 826
gz isn't a command on my computer, though it might be on yours. To gzip a file do
and to bzip2 it doCode:$ gzip file.tar
There shouldn't be a password required to compress a file.Code:$ bzip2 file.tar
- 06-02-2005 #3Just Joined!
- Join Date
- Feb 2005
- Location
- Noplace Interesting
- Posts
- 76
It seems like you're trying to encrypt the archive with a password. Try-
gpg -c <file_name>
gpg should ask you for a passphrase (aka password).
To decrypt->
gpg <file_name>.gpg
Again gpg, will ask you for a passphrase to decrypt the file.
Oh, and to make .bz2 files try
tar -cjvf <output_file> <input_file>
- 06-02-2005 #4Linux Engineer
- Join Date
- Aug 2004
- Posts
- 826
Oh, oops, I forgot about the password thing.
/me runs and hides


Reply With Quote
