Completely agree, the spam is a turn off for the site. I assume if someone is smart enough to build a site like this, they know how to eliminate the spam but are just lazy.
I can't stop laughing at the name of the website: I personally would have ended it with "foo" rather that something that can be pronounced "f you" but I'm bookmarking this one for regular reference!
The word "Fu" (pronounced "foo") is a reference to "Kung Fu," a Chinese martial art. It is used colloquially in combination with other words to mean "something someone has to practice to become a skilled expert in." You might see "Google-fu," as in, "skill using search engines to find what you're looking for," or "Spreadsheet-fu," as in, "skill using Microsoft Excel or other spreadsheet programs," or similar things.
In this case, "Command Line Fu" is meant to suggest that the command line is something you can practice to improve your skills with, analogous to a martial art. It's not meant to be pronounced "F you"—though I'm sure you're allowed to continue doing that if you find it amusing!
For the simple tar command, I've read somewhere that it's best to not encode the output using the tar command itself (i.e. tar -cvf blah; zip blah instead of tar -cvzf blah), but I'm not sure what the reasoning is. Has anyone else heard this? Something to do with passing files between systems that may not the right encoding software maybe?
I think it would only makes sense if the target system on which the script may run has `zip` but not a version of `tar` supporting the `-z` option. That's certainly unlikely to ever happen.
There's also `tar -cvf - | zip blah.zip -` with the idea that it's a poor man's way to parallelize the `tar` and `zip` processes but I don't think it makes a real difference in recent implementations of `tar`. At least in a couple of tests I've just run, it's just as fast.
Nice work, but I wonder if websites like this will not become obsolete soon. In most cases I can get the same result with ChatGPT, where I can also ask followup questions.
Where do you think ChatGPT gets the data to try on to produce results from a query? I suspect websites like this are part and parcel of the training data it scours the open web for.
[+] [-] asicsp|3 years ago|reply
Filter option is nice too, here's top `awk` commands: https://www.commandlinefu.com/commands/matching/awk/YXdr/sor... (expected removing duplicates to be #1 instead of #3)
There are comments too, but some are filled with spam.
See also:
* http://www.compciv.org/unix-tools/
* https://github.com/jlevy/the-art-of-command-line
* https://github.com/learnbyexample/scripting_course#ebooks (my books on grep/sed/awk/perl/ruby/coreutils/etc - free to read online)
[+] [-] iudqnolq|3 years ago|reply
[+] [-] pfoof|3 years ago|reply
[+] [-] technick|3 years ago|reply
[+] [-] BtM909|3 years ago|reply
2. They should mitigate these bots, because ultimately it will make the website annoying to visit.
[+] [-] mikece|3 years ago|reply
[+] [-] cfiggers|3 years ago|reply
In this case, "Command Line Fu" is meant to suggest that the command line is something you can practice to improve your skills with, analogous to a martial art. It's not meant to be pronounced "F you"—though I'm sure you're allowed to continue doing that if you find it amusing!
[+] [-] unknown|3 years ago|reply
[deleted]
[+] [-] politelemon|3 years ago|reply
For example the second most popular one is to serve a directory and the alternatives show the Python3 way of doing it.
https://www.commandlinefu.com/commands/view/71/serve-current...
[+] [-] godshatter|3 years ago|reply
[+] [-] lgeorget|3 years ago|reply
There's also `tar -cvf - | zip blah.zip -` with the idea that it's a poor man's way to parallelize the `tar` and `zip` processes but I don't think it makes a real difference in recent implementations of `tar`. At least in a couple of tests I've just run, it's just as fast.
[+] [-] aka878|3 years ago|reply
[+] [-] shortrounddev|3 years ago|reply
[+] [-] recursive|3 years ago|reply
[+] [-] scbrg|3 years ago|reply
[+] [-] greyman|3 years ago|reply
[+] [-] s_dev|3 years ago|reply