Hi saweens,
As I understand you need to tar a set of files into a tar file on your Hard-Disk. If you have 2 files. lets say /home/saweens/.profile and /home/saweens/.sh_history then
1) Using Absolute Paths
$ tar -cvf tar_file_name.tar /home/saweens/.profile /home/saweens/.sh_history
2) Using Relative Paths
$ cd /home/saweens
$ tar_file_name.tar .profile .sh_history
The distinction between the Absolute and Relative Paths is that when you untar a file created with Absolute Paths, it will untar files to their absolute path no matter where you run the untar command from whereas you untar a file created with Relative Path, it will untar taking the present working directory as the base path.
Saweens, tar doesn't compress files, so if you need to compress the files because of their size to get them to your desktop tar won't help you.
The later versions of WinZip can uncompress files that were compressed on a Unix system. Just be sure to use the binary mode when ftp'ing from your unix system to your desktop.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.