- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar and hidden files
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
Discussions
Discussions
Discussions
Forums
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
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
тАО09-20-2005 08:29 AM
тАО09-20-2005 08:29 AM
tar and hidden files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 08:37 AM
тАО09-20-2005 08:37 AM
Re: tar and hidden files
if the tar image has files starting with "." character, i.e., hidden unix files, you will see them using -a switch on ls command, like in ls -al.
Since I am not sure what you mean by hidden files not seen, I am not sure what else to suggest you but if you can provide more information as in, what you can see using winzip that does not show up under tar, you may get better educated responses.
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 08:43 AM
тАО09-20-2005 08:43 AM
Re: tar and hidden files
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 08:45 AM
тАО09-20-2005 08:45 AM
Re: tar and hidden files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 08:51 AM
тАО09-20-2005 08:51 AM
Re: tar and hidden files
# tar -tvf filename.tar
should show all the files on that tar file. There is no hidden file concept for unix with tar.
. files are considered as hidden file though tar can see those ..
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 09:00 AM
тАО09-20-2005 09:00 AM
Re: tar and hidden files
Can the blocking factor change in the middle of a .tar file? How would you do that?
Here is the output of 'tar tvf foo.tar':
rwxr-xr-x 48/48 0 Aug 19 08:49 2004 netvault/
rw-r--r-- 48/48 316 Aug 19 04:41 2004 netvault/bmsinfo
rwxr-xr-x 48/48 0 Aug 19 04:41 2004 netvault/extrabkl/
rwxr-xr-x 48/48 0 Aug 19 04:41 2004 netvault/extrapackages/
rwxr--r-- 48/48 3959 Aug 19 04:41 2004 netvault/install
rw-r--r-- 48/48 13306 Aug 19 04:41 2004 netvault/license.txt
rw-r--r-- 48/48 22280192 Aug 19 04:41 2004 netvault/nvdist
WinZip is able to display and extract 2 additional directory structures called 'packages' and 'serverpackages'. As you can see, these do not list with the tar utility.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 09:08 AM
тАО09-20-2005 09:08 AM
Re: tar and hidden files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 09:23 AM
тАО09-20-2005 09:23 AM
Re: tar and hidden files
USTAR format archive
drwxr-xr-x 0 48 48 Aug 19 2004 netvault/
-rw-r--r-- 0 48 48 316 Aug 19 2004 netvault/bmsinfo
drwxr-xr-x 0 48 48 Aug 19 2004 netvault/extrabkl/
drwxr-xr-x 0 48 48 Aug 19 2004 netvault/extrapackages/
-rwxr--r-- 0 48 48 3959 Aug 19 2004 netvault/install
-rw-r--r-- 0 48 48 13306 Aug 19 2004 netvault/license.txt
-rw-r--r-- 0 48 48 22280192 Aug 19 2004 netvault/nvdist
pax: netvault-r2004aug19-chief-hpux.tar : This doesn't look like a tar archive
pax: netvault-r2004aug19-chief-hpux.tar : Skipping to next file...
Could this be a corrupted file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 09:40 AM
тАО09-20-2005 09:40 AM
Re: tar and hidden files
http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.15.1/
The downside is that since you are 11.0 , you will need to download the source (along with the prerequisites) and compile/link it for youre system. It's not a difficult process and the instructions are included with the download. It becomes more difficult if all you have is the Bundled C compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 09:52 AM
тАО09-20-2005 09:52 AM
Re: tar and hidden files
Also you can untar the files in windows , using Winzip , make a ZIP file. FTP to the system.
And unzip using the unzip command.
# cd /usr/local/bin
# unzip -l filename.zip [ To list files ]
# unzip filename.zip
* You need to have unzip file :
Here it is:
http://gatekeep.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=unzip
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 11:21 AM
тАО09-20-2005 11:21 AM
Re: tar and hidden files
You can also , do like this to get the files on unix system, which unix tar unable to retrive:
1. unzip in windows using winzip.
2. make it a single tar file , using:
http://prdownloads.sourceforge.net/gnuwin32/bsdtar-1.02.032.exe?use_mirror=keihanna
The command to be use :
c:\> bsdtar -cvf file.tar yourfiles_path\*
3. ftp the tar file to the unix system.
4. do # tar -xvf in unix system.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2005 04:32 PM
тАО09-20-2005 04:32 PM
Re: tar and hidden files
Tar sometimes does not extract empty directories.