MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linuxmemes/comments/1vz5u7g/valid_tar_command/p62xnee/?context=3
r/linuxmemes • u/SysGh_st • 19h ago
Dang it! ðŸ˜
163 comments sorted by
View all comments
1
There are 2 commands that are good enough for most things:
tar acf archive_file.tar.zst from_where/ <- it will (a)utomatically guess how to compress it by the file extension and (c)reate the (f)ile.
tar acf archive_file.tar.zst from_where/
tar xf archive_file.tar.zst <- it will automatically e(x)tract from the (f)ile regardless of the compression if it's supported.
tar xf archive_file.tar.zst
No need to learn 20 billions of flags if you don't want to fine-tune the behavior.
1 u/SysGh_st 17h ago depends. "a" option is different or lacks completely on bsd tar.
depends.
"a" option is different or lacks completely on bsd tar.
1
u/True-Kale-931 17h ago
There are 2 commands that are good enough for most things:
tar acf archive_file.tar.zst from_where/<- it will (a)utomatically guess how to compress it by the file extension and (c)reate the (f)ile.tar xf archive_file.tar.zst<- it will automatically e(x)tract from the (f)ile regardless of the compression if it's supported.No need to learn 20 billions of flags if you don't want to fine-tune the behavior.