- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: tar cfv, rvf, tvf and xvf
Operating System - Tru64 Unix
1819818
Members
3303
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО07-25-2008 11:12 PM
тАО07-25-2008 11:12 PM
tar cfv, rvf, tvf and xvf
Hi all need to know about tar command.
1) The tar command should come with (minus) - or not?
tar -cfv /dev/rmt/xm /filepath
or
tar cfv /dev/rmt/xm /filepath
I am using with minus option all the while.
2)If to list out the tape from tar command into file is it using below command?
tar -tvf /dev/rmt/xm >/tmp/backup_list.txt
To restore the file is it below command?
tar -xvf /dev/rmt/xm /filepath
1) The tar command should come with (minus) - or not?
tar -cfv /dev/rmt/xm /filepath
or
tar cfv /dev/rmt/xm /filepath
I am using with minus option all the while.
2)If to list out the tape from tar command into file is it using below command?
tar -tvf /dev/rmt/xm >/tmp/backup_list.txt
To restore the file is it below command?
tar -xvf /dev/rmt/xm /filepath
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2008 12:46 AM
тАО07-26-2008 12:46 AM
Re: tar cfv, rvf, tvf and xvf
Hi,
Reading manuals is usually quite enlightening.
# man tar
Cheers,
Rob
Reading manuals is usually quite enlightening.
# man tar
Cheers,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2008 09:55 PM
тАО07-26-2008 09:55 PM
Re: tar cfv, rvf, tvf and xvf
Here is the HP-UX man page:
http://docs.hp.com/en/B2355-60130/tar.1.html
>1) The tar command should come with (minus) or not?
Either. I use "-". You also have the order wrong, it should be -cvf file.
Yes, for 2), you use -tvf to list and -xvf to extract.
http://docs.hp.com/en/B2355-60130/tar.1.html
>1) The tar command should come with (minus) or not?
Either. I use "-". You also have the order wrong, it should be -cvf file.
Yes, for 2), you use -tvf to list and -xvf to extract.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2008 06:19 AM
тАО07-27-2008 06:19 AM
Re: tar cfv, rvf, tvf and xvf
I hope following helps you,
[Tru64 UNIX] The syntax of the tar command has recently changed. The
minus sign (-) at the beginning of a key/option set is no longer
optional. If tar sees a minus sign in front of an option that
requires an argument, tar expects the argument to follow the option
immediately. In order to use the original tar syntax in existing
scripts, you must remove the minus sign if more than one option
requiring an argument is given. Consider this command in the old
form:
tar -xbfp 20 /dev/ntape/tape0
Under the new implementation, this command becomes
tar xbfp 20 /dev/ntape/tape0
or
tar -xb 20 -f /dev/ntape/tape0 -p
[Tru64 UNIX] The syntax of the tar command has recently changed. The
minus sign (-) at the beginning of a key/option set is no longer
optional. If tar sees a minus sign in front of an option that
requires an argument, tar expects the argument to follow the option
immediately. In order to use the original tar syntax in existing
scripts, you must remove the minus sign if more than one option
requiring an argument is given. Consider this command in the old
form:
tar -xbfp 20 /dev/ntape/tape0
Under the new implementation, this command becomes
tar xbfp 20 /dev/ntape/tape0
or
tar -xb 20 -f /dev/ntape/tape0 -p
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP