News for hackers. Stuff that matters.
[deleted]
Re:Show HN: Extract it – Because nobody can remember tar com... by adrusi on Thursday September 10, 2015 @08:58PM (#10201451)
The f isn't for force. It's for "file" and it takes the filename as a parameter — that's why you usually see it at the end of the character sequence, a filename has to immediately follow it. If you don't specify -f tar will read from stdin for extraction or write to stdout for creation.
Re:Show HN: Extract it – Because nobody can remember tar com... by SeldomSoup on Friday September 11, 2015 @12:06AM (#10201960)
Seems like a redundant flag. Many utilities are perfectly fine reading from stdin if no [file] is specified, without any kind of -f flag.
Re:Show HN: Extract it – Because nobody can remember tar com... by adrusi on Friday September 11, 2015 @08:43AM (#10203319)
It's redundant for extraction. For creation (-c) where you can list many files, it's just a choice some unix developer made to allow the destination file to be specified independent of order. I think there'd be some awkward edge cases otherwise.

Anyway, adding verbosity to discourage operating on static files and prefering being on a pipeline could be considered a feature.