Activity 3: Submitted By: Mark Daeniel J. Alamida BIT-21

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 16

ACTIVITY 3

Submitted by: Mark Daeniel J. Alamida


BIT-21

GIVE THE USE OF EACH COMMAND:


Tar - the tar command used to rip a collection of files and directories into highly
compressed archieve file.
-c the c command sends the output to the screen.
-v the v command adds a v flag.
-f the f command the filename that being passed.
-tvf this command will display the contents of a tar file.
-z this type of command make use of the gzip utility to perform a compression.
Gzip is a tool that is used to compress files.

COMMANDS TO DISPLAY THE CONTENT OF A


TAR FILE

tar tvf filename.tar


tar tvf filename.tar.gz
tar tvf filename.tar.bz2

DEFINITIONS
Relative path names relative path name is a path
that is specified relative in your current directory.
List contents list contents are the directory in
Linux.
Verbose it verbosely shows the filenames.
Filenames filenames are specific name of a file.
Option this are called choices.

COMMAND TO CREATE A FILE THAT IS


COMPRESSED

Gzip filename.gz

OUTPUT OF THE FOLLOWING

COMMAND TO GO BACK TO THE ORIGINAL


LOCATION OF THE DIRECTORY

Cd
Tar

OUTPUT THE FOLLOWING


COMMAND

COMMAND TO ADD A FILE TO AND EXISTING


ARCHIEVE

Tar rvf /path/to/archieve.tar


/path/to/newfile.txt

OUTPUT OF THE FOLLOWING


COMMANDS

You might also like