I wonder what happens if I run tar -cf idk.tar /dev/null

Follow

@twann the easiest way is probably too try it out 😁

Β· Β· Tusky Β· 1 Β· 0 Β· 0

@twann
$ tar -cf idk.tar /dev/null
tar: Removing leading '/' from member names
$ wc -c idk.tar
10240 idk.tar

when looking inside it with 7zip, it contains a folder "dev" which contains a file "null" of size 0 bytes and permissions "crw-rw-rw-"

I only knew about '-' and 'd' at the beginning of the file permissions. After seeing 'c' here I learned something new today.
linux.com/training-tutorials/f
@Johann150 @twann

@alexbuzzbee @twann @Johann150 since you guys are done with /dev/null, time to try with /dev/urandom πŸ˜‚

@menelkir @alexbuzzbee @Johann150 it does the exact same thing except the file in the archive is called "urandom" and not "null"

Sign in to participate in the conversation
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.