How Do You Tar A File In UNIX?
The common means with which to archive a batch of files within a UNIX system is by using the “tar” command. When you issue a tar command you can easily roll up a group of files. This eases the delivery of a group of files in per-session intensive applications such as the File Transfer Protocol and peer-to-peer applications. These steps describe how you can tar a file in UNIX using the command prompt. Step 1 Open a terminal session on your UNIX PC. Otherwise, you can Telnet into the terminal from a remote machine. Step 2 Once in the terminal, type “tar -cf” and do not press “Enter.” The “c” indicates that you are creating a tar file, and the “f” indicates that the tar is to be given the name you specify. Step 3 Press the spacebar and type in the full name (with extension) you want for the file. If you’re tarballing a picture, for example, you might want to type “pictures.tar.” Step 4 Press space and enter the path of the full path to the file. Remember that the path should be relative t