Restoring Files Using Tar
Extracting files under home directory,
move to the directory, which restores the files.
#cd /home
Practice
The given example describes about restoring the file.
# tar xvf /dev/fd0 ./test*
./test
./test1
./test2
./test3
In the given example, x represents the named files are extracted from the archive. That directory is (recursively) extracted if a named file matches a directory whose contents had been written onto the archive. The owner, mode and modification time, are restored (if it is possible). The whole contents of the archive are extracted if no files argument is given. If various files with the similar name are on the archive, the last one overwrites all previous ones. Generally, tar does its work silently. The v (verbose) function modifier causes tar to show the name of each file it treats, preceded through the function letter. Within the t function, v provides more information about the archive entries than only the name. f means causes tar to use the following argument as the name of the archive alter of the default device listed in /etc/default/tar directories. tar writes to the standard output or reads from the standard input, whichever is appropriate if the name of the file is a dash (-). Therefore, tar can be used as the head or tail of a pipeline.