Unix (compressed archieve, non-verbose)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unix (compressed archieve, non-verbose)
# 1  
Old 11-02-2012
Unix (compressed archieve, non-verbose)

I'm confusing with this question. Smilie Can any one tell me how to do and use which command? Smilie

create a compressed archive of the "Test" directory and it's contents, called Test.tar.gz, and place it in the current directory. Use a non-verbose tar command with a single string, including the option to invoke gzip.
# 2  
Old 11-02-2012
Create the tar file of directory and its contents using following command:-

Code:
tar -cf Test.tar Test

Create the gzip file of tar file created using following command:-

Code:
gzip Test.tar

Now you will have Test.tar.gz

Verbose tar command is with -v option which is not used.
This User Gave Thanks to Yoda For This Post:
# 3  
Old 11-02-2012
With GNU tar:

Code:
tar -czf Test.tar.gz Test

This User Gave Thanks to balajesuri For This Post:
# 4  
Old 11-02-2012
Thank you guy...it works.
# 5  
Old 11-03-2012
Homework ?

Quote:
Originally Posted by wk9031
I'm confusing with this question. Smilie Can any one tell me how to do and use which command? Smilie

create a compressed archive of the "Test" directory and it's contents, called Test.tar.gz, and place it in the current directory. Use a non-verbose tar command with a single string, including the option to invoke gzip.
Hello,

this question looks like homework.

Attend the forum rules, please !

Regards
# 6  
Old 11-03-2012
Moderator's Comments:
Mod Comment Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.

-Thread closed-
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Verbose command cp

Hi, I have sometimes a problem when i want to copy files from a nas, it's the nas which have a problem when it is very requested by a lot of users, the command cp turn and don't stop (the file size does not increase) and it's lock. Is it possible to verbose this command ? I try with the flag... (1 Reply)
Discussion started by: protocomm
1 Replies

2. Shell Programming and Scripting

Archieve one weeks old txt files

Hi All, Am trying to write a script which does the archiving of *.txt files if it's one week old from the current date. /TK/Project_ATT/Results/ File format : -rw-r----- 1 root root 20562 Sep 11 10:24 UQ-CI01_FF_20130905_10H24M.txt -rw-r----- 1 root root 20562 Sep... (2 Replies)
Discussion started by: Optimus81
2 Replies

3. Shell Programming and Scripting

Problem in turn verbose on in sftp

Hi, I am trying to turn verbose on for sftp but i get message to look lftp options. SFTP_LOG=`lftp -u $P_USERID,$P_PSWD sftp://$P_HOSTNAME <<EOF cd $P_DEST_DIR mput $P_FILE_PREFIX bye EOF` The above one works fine but i don't see the debugging details\log details. I want... (7 Replies)
Discussion started by: consat
7 Replies

4. UNIX for Dummies Questions & Answers

archieve and zip the multiple file with no extension

Hi, I'm new to scripting. I need to find all the 10 files in the source directory and then archieve them to archive directory. The source files which im getting does not have any extensions just binary files. I need to find them by the file names and archive it. Directory also contains other... (1 Reply)
Discussion started by: etldeveloper
1 Replies

5. Shell Programming and Scripting

Getting cURL to output verbose to a file

This is about to drive me crazy. What I want to do is simple: output ALL the verbose information from curl to a file I have read the manual, tried several options and searched this forum but no salvation... I'm using curl -k -Q "command" --user user:passwd --ftp-pasv --ftp-ssl -v... (1 Reply)
Discussion started by: caramandi
1 Replies

6. UNIX for Advanced & Expert Users

What is command to extract single file from an archieve?

I just want to extract one sigle file from an .ear archieve instead of extracting whole ear. Can anyone help me on this? (4 Replies)
Discussion started by: harshal_dcx
4 Replies

7. Shell Programming and Scripting

Unix Commands to check a file is compressed or not?

Hi, I need to find out whether a file is compressed or not and based on that i need to compress that file and move it to archive folder. say for e.g: If file is compressed then just move to archive folder else compress and move end if i have implemented a... (2 Replies)
Discussion started by: kk17
2 Replies

8. Shell Programming and Scripting

sftp verbose output

We need to use sftp to replace the ftp on all our application scripts. The command itself works, however,the output from the verbose is not giving us a success response with a transfer count. Our processes require that we interrogate the response to ensure the data transfer was successful. ... (2 Replies)
Discussion started by: MizzGail
2 Replies

9. Shell Programming and Scripting

alternative for Archieve

Hi all , In order to zip the file ... first we need to use TAR and then GZIP on the TAR file ..... Is there any other method for zipping the files directly as in windows ( winzip ) Regards, Dhananjay (3 Replies)
Discussion started by: dhananjayk
3 Replies

10. Shell Programming and Scripting

python vs bash - verbose mode

hey all! i'm looking how to render verbose python scripts. what i'm looking for would be an equivalent to a "bash -xf" in bash script headers.. Any help? (2 Replies)
Discussion started by: penguin-friend
2 Replies
Login or Register to Ask a Question