Tag Archives: aix

crontab logs on AIX 5.3

/var/adm/cron/log

Tagged , , | Leave a comment

Extract a certain file to a certain directory from a tar archive using GNU Tar

“gtar -C hobba -xvf aamr.tar aamr/1” where: “hobba” is the directory to extract to“aamr.tar” is the archive from which we’ll extract the file “aamr/1” is the file inside the archive to be extracted to the destination directory (hobba).

Tagged , , , | Leave a comment

A more convenient alternative to AIX tar; gtar

Searched everywhere just to know how to use the “tar” command to extract an archive to a certain folder instead of extracting it using the same directory structure inside, and so here are the steps: Don’t use the “tar” program … Continue reading

Tagged , , | Leave a comment

How to edit scheduled jobs (crontab) on AIX

A very useful link: http://publib.boulder.ibm.com/infocenter/discover/v8r4/index.jsp?topic=/com.ibm.discovery.ds.publish.doc/c_UG_Configuring_Cron_Job.htm

Tagged , | Leave a comment

How To Find and Delete Files Not Matching MULTIPLE criteria using bash in AIX

“find . ! -name “*.bz2” ! -name “ESPRD*” | xargs rm”  The above command finds all files in the “current” directory excluding those with “*.bz2” extension and those which start with “ESPRD*” and then deletes them all.

Tagged , | Leave a comment