After using read name_of_tar to get the name of the tar file you want to create. You use it by changing
to:
Note that if you blindly accept a filename from a user and don't verify the contents and appropriately quote uses of the user supplied string, you open your account with all sorts of security holes.
The purpose of shc is to obscure the text of the script that is in the shell script. That won't help anyone if you give anyone the root password or make the script writeable or executable by anyone other than root.
This User Gave Thanks to Don Cragun For This Post:
Hi All
Can someone pls guide me if there any utility to compress file on windows & uncompress on vxworks
I tried as -
- compressed some folders on windows ... i created .tar ( to maintain directory structure ) and compressed to .gz format.
- on VxWorks i have uncompressed it to .tar... (1 Reply)
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)
Hi All,
I am not one of the super users / root for AIX 5.3 system.
There is a filesystem
Say
/DIR1 and its has several subdirs in it say SUBDIR1, SUBDIR2, SUBDIR3.
Can I create a tar file for all files under DIR1 and SUBDIR1, SUBDIR3. Excluding SIBDIR2?
Also how can I preserve... (2 Replies)
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)
I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it.
Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem?
tar tvf file1.tar
... (1 Reply)
Hello Team,
Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
Thanks in advance. (10 Replies)
Quick question,
is it possible to make a Tar of completely directory and placing the tar file in it (will this cause even the tar file to tarred ?)
sample:
/opt/freeware/bin/tar -cvf - /oracle | gzip > /oracle/backup.tgz
will the tar file backup.tgz also include backup.tgz ?
i tried... (5 Replies)
Coming from this thread, just wondering if there is an option to check if the Tar of the files/directory will be without any file-errors without actually making the tar.
Scenario:
Let's say you have a directory of 20GB, but you don't have the space to make Tar file at the moment, and you want... (14 Replies)
Discussion started by: filosophizer
14 Replies
LEARN ABOUT ULTRIX
ln
ln(1) General Commands Manual ln(1)Name
ln - link to a file
Syntax
ln [ -f ] [ -i ] [ -s ] name1 [name2]
ln [ -f ] [ -i ] [ -s ] name ... directory
Description
A link is a directory entry referring to a file. A file, together with its size and all its protection information may have several links
to it. There are two kinds of links: hard links and symbolic links.
By default makes hard links. A hard link to a file is indistinguishable from the original directory entry. Any changes to a file are
effective independent of the name used to reference the file. Hard links may not span file systems and may not refer to directories.
Given one or two arguments, creates a link to an existing file name1. If name2 is given, the link has that name. The name2 may also be a
directory in which to place the link. Otherwise it is placed in the current directory. If only the directory is specified, the link is
made to the last component of name1.
Given more than two arguments, makes links to all the named files in the named directory. The links made have the same name as the files
being linked to.
Options-f Forces existing destination pathnames to be removed before linking without prompting for confirmation.
-i Write a prompt to standard output requesting information for each link that would overwrite an existing file. If the response from
standard input is affirmative, and if permissions allow, the link is done. The -i option has this effect even if the standard input is
not a terminal.
-s Creates a symbolic link.
A symbolic link contains the name of the file to which it is linked. The referenced file is used when an operation is performed on
the link. A on a symbolic link returns the linked-to file. An must be done to obtain information about the link. The call may be
used to read the contents of a symbolic link. Symbolic links may span file systems and may refer to directories.
See Alsocp(1), mv(1), rm(1), link(2), readlink(2), stat(2), symlink(2)ln(1)