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

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

$ 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.
@Johann150 @twann


@murtezayesil @Johann150 oh thanks for that link ! I also learned something new

Β· Β· Tusky Β· 0 Β· 0 Β· 1
Sign in to participate in the conversation

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