Flux rss

How to use the tar command

Published by jak58, last update on Saturday November 1, 2008 07:00:47 AM by jak58

How to use the tar command




Archiving files with “tarâ€


The "tar" command allow you to regroup several files to store them in a single file, still remaining uncompressed.

Archiving folder (or directory) with “tarâ€


tar -vcf archive_name.tar name_of_file

tar: the command
vcf: the options
v :provides a description of archived content (optional)
c: to create an archive
f: to specify a name for the archive(in parameter)
archive_name.tar: name given to the archive (the argument)
name_of_file: name of the folder (or directory) to be archived

Unpacking file with tar


The tar command is also used to unpack the files, ie to extract all the individual files contained in an archive file.

Unpack the file with tar



tar-vxf my_file.tar

tar: the command
vxf: the options
v:provides a description of the unpacked files (optional)
x:to extract the files
f:to designate the archive containing the files (given parameter)
my_file.tar: the name of the archive to retrieve

Unpacking specific files with "tar"


Example:

You can also unpack only part of a “tar†archive and extract specific files.
tar -xvf my_archive.tar "*.jpg"

Extract in the file "my_archive" all files with the .jpg extension ".

For a list of all files in the archive, use the "-t".

tar -tf my_file.tar
Network tools - Traceroute Traceroute is a network diagnostic tool found on most operating systems, which is used for determining which path a packet has taken. The traceroute command can be used to draw up a map of the routers found between a source machine and a target... en.kioskea.net/outils-reseau/traceroute.php3
UNIX system - Commands Unix Commands Description Options ls lists the content of a directory -a Displays all files, including hidden files -I Displays a detailed listing -R Displays the files recursively (i.e. in the sub-directories) -d Displays only the directories and... en.kioskea.net/unix/unixcomm.php3
Linux - Commands Command Description DOS equivalent ls lists the content of a directory dir cd change of directory cd cd .. parent directory cd.. mkdir creates a new directory md rmdir eliminates a directory deltree cp copy of a file copy, xcopy mv moves a file move... en.kioskea.net/linux/lincomm.php3
Command prompts for WindowsCommand prompts for Windows *Control Panel *Windows utility and applications *Disk management *Connection management *Miscellaneous commands Some of these command below can cause harmful an undesirable functions, leading to... en.kioskea.net/faq/sujet-403-command-prompts-for-windows
Basic MS-Dos commandsBasic MS-Dos commands Here is a list of basic commands that you can use in a DOS prompt (e.g. a using a boot disk). To have additional information about these commands, type /? after entering the command in the DOS prompt... en.kioskea.net/faq/sujet-567-basic-ms-dos-commands
BIOS CommandsBIOS Commands How to enter BIOS Alternative to your Mouse To select an option To change values To quit BIOS When using BIOS, the mouse option is disabled and you will only be allowed to use your keyboard keys. This article will... en.kioskea.net/faq/sujet-330-bios-commands
How to change IP address from command promptHello, Is there any way to change IP address of computer from Command prompt? I use WinXP as OS and I would like to know if I can change IP from Command prompt Please help me out. en.kioskea.net/forum/affich-13513-how-to-change-ip-address-from-command-prompt
Launch and run the commands from shell scriptHello, I have a requirement to launch a buzybox (Qemu)shell and needs to pass the commands to get the result. How i can achieve this. for example: I have the running qemu and i am telnetting to get shell. Open the terminal and do a "telnet... en.kioskea.net/forum/affich-24888-launch-and-run-the-commands-from-shell-script
Pc shuts down after running command processorHello, Can someone help me to solve my problem with my pc. My pc shuts down after running command processor. Your response will help. Thanks en.kioskea.net/forum/affich-23158-pc-shuts-down-after-running-command-processor
Download Free commanderFree Commander is an alternative program to replace the file manager or the Windows explorer. The program is easy to use and will help you for your daily tasks. You will find all the necessary functions for the data management. The main... en.kioskea.net/telecharger/telecharger-1748-free-commander
Download Logitech g5 4.60 DriverThe Logitech G5 mouse gives you instant access to three sensitivity levels 400, 800, and 2000 dpi. Excellent for gaming, shift from pixel-precise targeting to lightning-fast maneuvers. en.kioskea.net/telecharger/telecharger-926-logitech-g5-4-60-driver
Download Core FTP LEFeatures like SFTP (SSH), SSL, TLS, IDN, browser integration, site to site transfers, FTP transfer resume, drag and drop support, file viewing & editing, firewall support, custom commands, FTP URL parsing, command line transfers, filters, and much,... en.kioskea.net/telecharger/telecharger-232-core-ftp-le
Microsoft DOS - Commands Command Description dir lists the contents of a folder cd changes folder cd .. parent folder md or mkdir creates a new folder deltree deletes a folder and all sub-folders copy, xcopy copies a file move moves a file del deletes a file type displays... en.kioskea.net/dos/doscomm.php3
Network test Before doing anything else, you are advised to check the computer's IP configuration. Windows systems offer a command-line tool, called ipconfig, that lets you find out your computer's IP configuration. The output of this command gives the IP... en.kioskea.net/configuration-reseau/tests-diagnostics-reseau.php3
Linux - The shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines that are entered by the latter.... en.kioskea.net/linux/linshell.php3