- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- querry reg tar
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-19-2008 01:09 AM
06-19-2008 01:09 AM
querry reg tar
can anyone tell me what is the o/p of the below given command if I am not giving the name of the tar file while creating the tar.
where it is creating that file.
tar -cvf
regards
atulkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 01:14 AM
06-19-2008 01:14 AM
Re: querry reg tar
If I understand you, the question is what will happen if you do not specify a filename with tar.
The command will error out and perform no work.
tar -cvf *
Produces no output
tar -cvf my.tar
Will produce a recursive tar file of everything from where the command is run.
This is all on the man page.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 01:21 AM
06-19-2008 01:21 AM
Re: querry reg tar
if you don't give the name of file (so don't use f option) it writes to your tape.
Kenan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 01:36 AM
06-19-2008 01:36 AM
Re: querry reg tar
$ tar -cvf file_name
Attempt to create archive of no files. Nothing dumped.
$ tar -cvf
tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 01:36 AM
06-19-2008 01:36 AM
Re: querry reg tar
I agree with Kenan , in fact if you don't give the name of file (so don't use f option) it writes to your tape (if it exits) otherwise in stdin/stdout.
The standard, for example, is:
tar cvf tmp.tar /tmp
to create a tar file for /tmp directory.
Best regards.
Ernesto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 03:16 AM
06-19-2008 03:16 AM
Re: querry reg tar
The tar command saves and restores archives of files on a magnetic tape, a flexible disk, or a regular file.
The default archive file is /dev/rmt/0m.
SYNOPSIS
# tar [-]key [arg ...] [file | -C directory] ...
f
Use the next arg argument as the name of the archive instead of the default, /dev/rmt/0m. If the name of the file is -, tar writes to standard output or reads from standard input, whichever is appropriate, and the default blocking factor becomes 1. Thus, tar can be used as the head or tail of a pipeline
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 06:59 AM
06-19-2008 06:59 AM
Re: querry reg tar
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 07:15 AM
06-19-2008 07:15 AM
Re: querry reg tar
> Produces no output
Because "tar" can read your mind, so it knows
that the first argument produced by expanding
"*" is _not_ supposed to go with "-f"?
> if you don't give the name of file (so
> don't use f option) [...]
But he _did_ "use f option".
If the question is, "What does it do?", then
why not try it and see? This would seem (to
me) to be more reliable than asking anyone.
If the question is, "How should I do
what