News

ostfriesischer schnippelbohneneintopf &gt landwirtschaft indien referat &gt how to tar a directory in linux with examples

how to tar a directory in linux with examples

2023-10-10

1) Compress one file using the tar command: tar -czvf one-file-compressed.tar.gz hello_world. An example of the operation is: This is similar to .tar.tbz or .tar.tb2. An example of this is as shown below: The tar command can also be used to extract a file. The below command will extract files in the current directory: Example 1: Extracting tar Files to a Specific Directory. In the first example, I will extract the files in articles.tar to a directory /tmp/my_article. Always make sure that the directory into which you want to extract tar file exists. Let me start by creating the /tmp/my_article directory using the command below: tar –cvzf docs.tar.gz ~/Documents. Linux # tar -cvf Videos.tar ./Latest/ The above command does not provide compression, but allows you to merge multiple files into one. Create Backup with tar Command in Linux SCP Command in Linux The second directory must be specified in relation to the first. For example, the following command will list the contents of both the /etc and the /home folders: ls /etc /home. ): ls -a ~ Common Bash/Linux Command Line Symbols You can extract a tarball to a specific directory in the following manner: tar xvf tar_file -C destination_directory.

Aristotelisches Drama Dreieck, Sea Ray Preisliste, Articles H

Contact Us
  • Company Name:ZhongshanTERapidPrototypeManufacturingCo.,Ltd
  • Address:No.47,NanchongRoad,NanlangTown,ZhongshanCity,GuangdongProvince,China
  • Contact Person:LeiTang
  • Phone:+8615876039037(WhatsApp)
  • E-mail:cryptids of west virginia