TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Command Line One-Liners

194 pointsby aphraxabout 2 years ago

8 comments

asicspabout 2 years ago
Sorted by votes: <a href="https:&#x2F;&#x2F;www.commandlinefu.com&#x2F;commands&#x2F;browse&#x2F;sort-by-votes" rel="nofollow">https:&#x2F;&#x2F;www.commandlinefu.com&#x2F;commands&#x2F;browse&#x2F;sort-by-votes</a><p>Filter option is nice too, here&#x27;s top `awk` commands: <a href="https:&#x2F;&#x2F;www.commandlinefu.com&#x2F;commands&#x2F;matching&#x2F;awk&#x2F;YXdr&#x2F;sort-by-votes" rel="nofollow">https:&#x2F;&#x2F;www.commandlinefu.com&#x2F;commands&#x2F;matching&#x2F;awk&#x2F;YXdr&#x2F;sor...</a> (expected removing duplicates to be #1 instead of #3)<p>There are comments too, but some are filled with spam.<p>See also:<p>* <a href="http:&#x2F;&#x2F;www.compciv.org&#x2F;unix-tools&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.compciv.org&#x2F;unix-tools&#x2F;</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;jlevy&#x2F;the-art-of-command-line">https:&#x2F;&#x2F;github.com&#x2F;jlevy&#x2F;the-art-of-command-line</a><p>* <a href="https:&#x2F;&#x2F;github.com&#x2F;learnbyexample&#x2F;scripting_course#ebooks">https:&#x2F;&#x2F;github.com&#x2F;learnbyexample&#x2F;scripting_course#ebooks</a> (my books on grep&#x2F;sed&#x2F;awk&#x2F;perl&#x2F;ruby&#x2F;coreutils&#x2F;etc - free to read online)
评论 #35242158 未加载
pfoofabout 2 years ago
Very cool but I have never seen so large spambot density per square 1em as in the comment sections
评论 #35234359 未加载
评论 #35232898 未加载
mikeceabout 2 years ago
I can&#x27;t stop laughing at the name of the website: I personally would have ended it with &quot;foo&quot; rather that something that can be pronounced &quot;f you&quot; but I&#x27;m bookmarking this one for regular reference!
评论 #35231162 未加载
评论 #35237708 未加载
politelemonabout 2 years ago
In case anyone misses it, click the titles and you&#x27;ll see alternatives.<p>For example the second most popular one is to serve a directory and the alternatives show the Python3 way of doing it.<p><a href="https:&#x2F;&#x2F;www.commandlinefu.com&#x2F;commands&#x2F;view&#x2F;71&#x2F;serve-current-directory-tree-at-httphostname8000" rel="nofollow">https:&#x2F;&#x2F;www.commandlinefu.com&#x2F;commands&#x2F;view&#x2F;71&#x2F;serve-current...</a>
godshatterabout 2 years ago
For the simple tar command, I&#x27;ve read somewhere that it&#x27;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&#x27;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?
评论 #35239084 未加载
aka878about 2 years ago
This is amazing, &quot;Watch Star Wars via telnet&quot;: <a href="https:&#x2F;&#x2F;www.commandlinefu.com&#x2F;commands&#x2F;view&#x2F;1713&#x2F;watch-star-wars-via-telnet" rel="nofollow">https:&#x2F;&#x2F;www.commandlinefu.com&#x2F;commands&#x2F;view&#x2F;1713&#x2F;watch-star-...</a>
shortrounddevabout 2 years ago
Only bash?
评论 #35233634 未加载
评论 #35235116 未加载
greymanabout 2 years ago
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.
评论 #35230794 未加载