tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file
Prev   Next
# 1  
Old 04-01-2009
tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

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 - ora_475244.

Why is it so? Please help. Thks!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Tar - pre-checking before making the Tar file

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

2. UNIX for Dummies Questions & Answers

Do I need to extract the entire tar file to confirm the tar folder is fine?

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)
Discussion started by: vivien_chu
1 Replies

3. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

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

4. Shell Programming and Scripting

Bus error while using command tar -cvf

Hi, I am working on a mac OSX machine. I am getting bus error :confused: when i use the command tar -cvf file1.tar file1 What could be the reason for this?? (1 Reply)
Discussion started by: shweeths
1 Replies

5. UNIX for Advanced & Expert Users

Tar utility (untar a .tar file) on VxWorks

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)
Discussion started by: uday_01
1 Replies

6. UNIX for Dummies Questions & Answers

shortcut for tar cvf - [filename] | gzip > [filename].tar.gz

i'd like to have an alias (or something similar) where i can type a command like "archive" and a filename and have it tar and gzip the file, so... $ archive filename results in filename.tar.gz...do i have to write a script to do this? (4 Replies)
Discussion started by: bcamp1973
4 Replies

7. UNIX for Advanced & Expert Users

Does tar do crc checking on a tape or tar file?

Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies

8. UNIX for Dummies Questions & Answers

using Tar -cvf file.tar "Need Help"

Ok, I use the command tar -cvf ~kw4691/output/test.tar ~kw4691/input on one UNIX server, lets call it sneezy. I FTP the tared file over to another server, lets call it bashful. Use the tar -xvf test.tar command and get the error ~kw4691/input "could not create the directory" /hom/dev/sy40... (7 Replies)
Discussion started by: wev
7 Replies

9. UNIX for Advanced & Expert Users

using TAR -cvf test.tar "HELP"

Ok, I use the command tar -cvf /home/output/test.tar /home/input on one UNIX server, lets call it sneezy. I FTP the tared file over to another server, lets call it bashful. Use the tar -xvf test.tar command and get a error indicating that it is looking for the same directory as where the... (3 Replies)
Discussion started by: wev
3 Replies
Login or Register to Ask a Question
auditd(1m)																auditd(1m)

NAME
auditd - Starts the DCE Audit Daemon. SYNOPSIS
auditd [-t trail_file] [-a] [-s size] [-wrap] [-w svc_route] [-d debug_level] OPTIONS
Specifies the pathname of the audit trail file used by the Audit daemon. The default path of the audit trail file is dcelo- cal/var/aud/adm/central_trail. If an audit trail file name (instead of an absolute pathname) is specified, the file will be created in the dcelocal/var/aud/adm/ directory. Audits the Audit daemon's control interface access. Sets a warning threshold on the size of the audit trail file. The Audit daemon displays a warning message each time an audit record is appended to the audit trail after the threshold has been reached. Wraps the recording of audit events to the beginning of the audit trail file when its size limit is reached. The default action when the size limit has been reached is to stop auditing. Specifies where each level of serviceability messages are routed. The svc_route argument is divided into three fields, separated by colons - the level, a routing identifier, and a routing parameter: severity:how:where See svcroute(5) for possible values for these fields. Specifies debugging level of sub-components. The debug_level argument contains four fields separated by a colon: component:flags:how:where See svcroute(5) for possible values of these fields. DESCRIPTION
The auditd command starts the Audit daemon. The Audit daemon must be run on the host before the audit clients. The Audit daemon can only service audit clients that are on the host where it is running. Thus, an Audit daemon must be installed and run on every host in the cell that has audit clients (audit clients include DCE servers and user-written application servers). The Audit daemon has two functions. It maintains the filter files which are shared by all audit clients running on the host. It also pro- vides an audit record logging service to these clients. The Audit daemon runs under the local host's machine principal identity (host/hostname/self). A DCE Host daemon (dced) must be running on the local host when auditd is started. Typically, dced and auditd are started at boot time. The auditd process places itself in the background and sends messages indicating it is ready to service requests for updating or querying filters and logging audit records. Privileges Required You must be logged into a privileged account (cell_admin or a member of the audit-admin group) to be able to run auditd. EXAMPLES
The following example starts the Audit daemon using the default audit trail file (dcelocal/var/aud/adm/central_trail): $ auditd The following example starts the Audit daemon and specifies my_trail_file as the audit trail file. $auditd -t my_trail_file The following example starts the Audit daemon and specifies where each level of serviceability messages is going to be routed. $ auditd -w FATAL:FILE:/dev/console -w NOTICE:FILE:/opt/dcelocal/var/audit/adm/svc_log The following example starts the Audit daemon and specifies the debugging level. $ auditd -d 1,esl.9 RELATED INFORMATION
aud(1m), audevents(1m), audfilter(1m), audtrail(1m), dcecp(1m). auditd(1m)