09-24-2001
to find out what the switches for a certain command mean, try typing "man [name of command]"
this should give the results you are looking for.
if this fails try "info [name of command]"
this should help, but for the meantime:
for the command tar:
x - means to eXtract files from the tar
f - means to get source from named File
v - makes command Verbose, or announce all actions
-
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi
In one of the thread I have found
echo ${SHELL##*/}
Can any of u pls let me know, what is the
interpretation for ##* over here?
Thanks. (2 Replies)
Discussion started by: yeheyaansari
2 Replies
2. Shell Programming and Scripting
hey, what's $$varname in a script? I used to see $varname only. search on google didn't help. thanks. (4 Replies)
Discussion started by: patiobarbecue
4 Replies
3. UNIX for Dummies Questions & Answers
Can you please tell me what this means?
use grep to find from the file myfile.txt all lines containing the sequence tt but not more 2 ts?
I have no idea. (2 Replies)
Discussion started by: rushhour
2 Replies
4. UNIX for Advanced & Expert Users
:) Hi,
In some script i got these regular expression
like ,
n=$#
and
for i in $*
can anybody let me know, what does it means (5 Replies)
Discussion started by: deb.simply
5 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies
6. UNIX for Dummies Questions & Answers
I can not find out what the %U means in the following command:
ooffice -calc %U (2 Replies)
Discussion started by: borobudur
2 Replies
7. Shell Programming and Scripting
I have a script like
select * from table
!!
what those exclamation marks mean (4 Replies)
Discussion started by: vasuarjula
4 Replies
8. Shell Programming and Scripting
Hi,
I have seen in some ksh script, that we are executing shell scripts inside other shell script as
. variable.sh
What is . here? Their is space between . and variabloe. And why we are not executing it like ./variable.sh? I know that . signifies current directory , but what its... (2 Replies)
Discussion started by: jatanig
2 Replies
9. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
TAR(1) General Commands Manual TAR(1)
NAME
tar - archiver
SYNOPSIS
tar key [ file ... ]
DESCRIPTION
Tar saves and restores file trees. It is most often used to transport a tree of files from one system to another. The key is a string
that contains at most one function letter plus optional modifiers. Other arguments to the command are names of files or directories to be
dumped or restored. A directory name implies all the contained files and subdirectories (recursively).
The function is one of the following letters:
c Create a new archive with the given files as contents.
x Extract the named files from the archive. If a file is a directory, the directory is extracted recursively. Modes are restored if
possible. If no file argument is given, extract the entire archive. If the archive contains multiple entries for a file, the lat-
est one wins.
t List all occurrences of each file in the archive, or of all files if there are no file arguments.
r The named files are appended to the archive.
The modifiers are:
v (verbose) Print the name of each file treated preceded by the function letter. With t, give more details about the archive entries.
f Use the next argument as the name of the archive instead of the default standard input (for keys x and t) or standard output (for
keys c and r).
u Use the next (numeric) argument as the user id for files in the output archive. This is only useful when moving files to a non-Plan
9 system.
g Use the next (numeric) argument as the group id for files in the output archive.
EXAMPLES
Tar can be used to copy hierarchies thus:
{cd fromdir; tar c .} | {cd todir; tar x}
SOURCE
/sys/src/cmd/tar.c
SEE ALSO
ar(1), bundle(1), tapefs(1)
BUGS
There is no way to ask for any but the last occurrence of a file.
File path names are limited to 100 characters.
The tar format allows specification of links and symbolic links, concepts foreign to Plan 9: they are ignored.
TAR(1)