- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file tar/gzip
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 07:00 AM
06-05-2002 07:00 AM
file tar/gzip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 07:06 AM
06-05-2002 07:06 AM
Re: file tar/gzip
To know that genrally
1. tar file will ahve a *.tar suffix or you can just do a tar tvf filenname and it will list the contents if that file
2. A gzip file will have .gz suffix , do a gzip -t to check the inegrity of the file and hence the format.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 07:07 AM
06-05-2002 07:07 AM
Re: file tar/gzip
First tar up the files
tar cvf filename.tar /path/to/files/*
or
tar cvf filename.tar ./*
THEN
gzip the tar file
gzip filename.tar
This should result in filename.tgz
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 07:07 AM
06-05-2002 07:07 AM
Re: file tar/gzip
In brief,
man tar for more information
man gzip for more information
tar cvf FILE.tar -> compress
tar xvf FILE.tar -> extract
tar tvf FILE.tar -> view
gzip FILE -> compress
gunzip FILE.gz -> uncompress
Hope this helps. Regards.
Steven Sim kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 07:07 AM
06-05-2002 07:07 AM
Re: file tar/gzip
Man tar and man gzip should help.
basic command:-
tar -cvf file.tar
gzip -9 file.tar
will cteate a file file.tar.gz (Zipped and tared.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 07:07 AM
06-05-2002 07:07 AM
Re: file tar/gzip
# cd /home
# tar -cvf myhome.tar skchan
# gzip myhome.tar
You should get the file "myhome.tar.gz". To unzip ..
# gunzip myhome.tar.gz
# tar -xvf myhome.tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 07:14 AM
06-05-2002 07:14 AM
Re: file tar/gzip
# tar -cvzf filte.tar.gz files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 07:29 AM
06-05-2002 07:29 AM
Re: file tar/gzip
To tar the contents of a directory ,
tar cvf /tmp/new_file.tar /dir1 /dir2 /dir3
To gzip this tar file,
gzip /tmp/new_file.tar
To back out,
gunzip /tmp/new_file.tar.gz
tar xvf /tmp/new_file.tar
Remeber since the files were backed up using absolute path names, extraction of the same will overwrite the file that already exists.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 08:06 AM
06-06-2002 08:06 AM
Re: file tar/gzip
TAR and gzip /home directory
assuming you have space in /tmp
cd /home
tar cf - * |gzip > /tmp/home.tar.gz
Example:
Restore /home to /home1 directory
cd /home1
gunzip < /tmp/home.tar.gz| tar xf -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2002 08:31 AM
06-06-2002 08:31 AM
Re: file tar/gzip
http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25/
tar -cvf --gzip
live free or die
harry