Sometime, you may need to move some large folder from one server to another or you may require to take backup of user’s home directory. On Linux platform, you can use command tar to create an archive of the folder.
For example, if you want to create an archive for /home/user1 folder then use the following command:
tar -pczf user1.tar.gz /home/user1
For more options, you may refer the manual of this command. Use following command to get the details about all options:
Last Updated on