Sponsored Content
Full Discussion: How to tar .gz files?
Top Forums Shell Programming and Scripting How to tar .gz files? Post 302352117 by girish1428 on Thursday 10th of September 2009 12:03:46 PM
Old 09-10-2009
You can check by running one of the following 2 commands, if tar is present on your machine or not:

Code:
which tar

# this should give you the full path of the tar executable, if present

or

Code:
echo $PATH | grep tar

If you dont find tar in any of the above then you will have to search for the executable by executing the following command:

Code:
find / -name tar

If you find it, then you can first tar your files and then gzip the *.tar file
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Untaring *.tar.tar files

Hi all, How to untar a file with .tar.tar extension. A utility that i downloaded from net had this extension. Thanks in advance, bubeshj. (6 Replies)
Discussion started by: bubeshj
6 Replies

2. Shell Programming and Scripting

How to process the files using .tar.gz files in script

Hi, I have some file in /users/xyz directoty with .tar.gz extension. i need to find these files and if found in need to run other commands. I now the command for finding files,but how to put if condition ?please help me Thanks (3 Replies)
Discussion started by: bmkreddy
3 Replies

3. UNIX for Dummies Questions & Answers

.tar.tar files

I downloaded what I thought was a gziped file (at least on remote server it had a .gz extention) and once I had it it was filename.tar.tar..I tried the standard untar tar -xvf filename on it and get an error. Does anyone know what's going on? (5 Replies)
Discussion started by: capeme
5 Replies

4. Shell Programming and Scripting

.tar files

is there any war to extract .tar file other than using ssh? does ncftp has a command to extract .tar files? (1 Reply)
Discussion started by: arsonist
1 Replies

5. UNIX for Advanced & Expert Users

How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi, On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files. a) /usr/users/oracle/bin b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies

6. UNIX for Dummies Questions & Answers

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 -... (2 Replies)
Discussion started by: ahSher
2 Replies

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

8. UNIX for Dummies Questions & Answers

How to tar all files except logs and .txt files

Hi I greatly appreciate the forum and the people here very helpful :) I could able to tar all the directories, sub dirs and the files. But unable to tar all the directories excluding the log and text files. Can anyone please advise the exact command to use for excluding .log and .txt? PS:... (4 Replies)
Discussion started by: Olivia
4 Replies

9. Solaris

Command to remove existing files in the tar files in Solaris 10

Hi, I am using solaris 10 OS.Please help me out with the commands needed in below two scenarios. 1)How to delete the existing files in the tar file. suppose i have a main tarfile named application.tar and it contains a file called ingres.tar. what is the command to remove ingres.tar... (2 Replies)
Discussion started by: muraliinfy04
2 Replies

10. Shell Programming and Scripting

How to create zip/gz/tar files for if the files are older than particular days in UNIX or Linux?

I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also? I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
updadmin(8)						      System Manager's Manual						       updadmin(8)

NAME
updadmin - Invokes the Update Installation Cleanup utility to remove or archive backup files created by an Update Installation SYNOPSIS
/usr/sbin/updadmin DESCRIPTION
The updadmin command invokes the Update Administration Cleanup utility, which removes or archives the backup files that were created by an Update Installation process. There are no flags or options associated with this command. Running this utility is an optional step after performing an Update Installation, but it is recommended if you want to recover disk space being consumed by these backup files. The backup files that are created by an Update Installation have these extensions: *.PreMRG - A file saved to a extension is a backup copy of a customized protected system file. System files in this category are system files that are expected to be customized by users, for example, /etc/passwd and /etc/hosts. If the automatic merge process fails to merge the new version of the file with your customizations to the file, your customizations must be merged manually into the new version of the file when the Update Installation is complete. The *.PreMRG version is a copy of the file as it existed before the Update Installation and only will be present if the automatic merge fails. *.PreUPD - A file saved to a extension is a backup copy of a customized unprotected system file as it existed before the Update Installa- tion. System files in this category are system files that are not expected to be customized by users, for example, /usr/bin/X11/netscape. If an unprotected system file is altered in any way, customizations must be merged manually into the new version of the system file when the Update Installation is complete. When you are finished merging your customizations into the new version of the file, these backup files no longer are needed, and they can be removed or archived. The Update Installation Cleanup utility gives you the option to archive or remove all backup files, or to select only the files you want. You are prompted to enter an archive destination if you decide to archive the files. The Update Installation Cleanup utility uses the tar(1) command to create the archive, and the archive destination can be any archive des- tination supported by the tar command, including tape devices. The default archive location is the backup.tar file in the /var/adm/update/ directory. You can use any file name you want, but if you want the file to have a extension, you must enter it as part of the file name. If the file name exists, it is overwritten. You have the option to compress the archive file with the gzip utility; if you do, a extension is appended automatically. Unless you compress the archive file, the space savings realized by archiving to a tar file on disk will be only in moving the files from the / (root), /usr, or /var file systems to the file system containing the archive. To save disk space, archive the files to tape. To archive to a tape device in tar format, enter archive destinations similar to the following: /dev/tape/tape0c - archives to a default density rewind tape (with compression) /dev/ntape/tape0_d0 - archives to a nonrewind tape device 0. The _d0 suffix specifies the density. If you are archiving to a nonrewind tape device, it is recommended to use a brand new or erasable tape. On systems capable of graphical display, the updadmin command invokes a graphical user interface to the Update Installation Cleanup util- ity. On systems that are not capable of graphical displays, a text-based, menu-driven user interface is invoked. The Update Installation Cleanup utility is also available as a task from the SysMan Menu. To view the online help for the Update Installation Cleanup utility without running the utility, use the following command: # /usr/dt/bin/dthelpview -h /usr/dt/appconfig/help/C/updadmin.sdl RESTRICTIONS
You must have root privileges to use the Update Installation Cleanup utility. If your system has not been updated to the next version of the operating system by the Update Installation process, the Update Installation Cleanup utility cannot be invoked. FILES
Update Administration Cleanup utility Contains the online help for the Update Administration Cleanup utility. Default location of the ar- chive file SEE ALSO
Commands: tar(1), gzip(1), sysman(8), installupdate(8) Installation Guide updadmin(8)
All times are GMT -4. The time now is 09:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy