yaos
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
  • -c: Create an archive.
  • -z: Compress the archive with gzip.
  • -v: Display progress in the terminal while creating the archive, also known as “verbose” mode. The v is always optional in these commands, but it’s helpful.
  • -f: Allows you to specify the filename of the archive.

两个例子,

tar -czvf archive.tar.gz stuff
tar -czvf archive.tar.gz /usr/local/something

分类:

技术点:

相关文章:

  • 2021-11-16
  • 2021-11-17
  • 2021-07-17
  • 2021-11-16
  • 2021-11-06
  • 2021-06-16
  • 2022-02-09
  • 2021-09-28
猜你喜欢
  • 2021-07-18
  • 2021-11-16
  • 2021-11-17
  • 2021-11-06
  • 2021-11-06
  • 2021-12-02
  • 2021-07-01
相关资源
相似解决方案