TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Command-line Fu

189 点作者 mariorz大约 16 年前

14 条评论

azanar大约 16 年前
It would be really cool if shell lines included some sort of hyper-linking to man pages based on the grammar of each shell command and its arguments. Have one line that is the hyperlinked command, and another than has the command in a textfield. So rather than just a site of semi-magical incantations, it can be a catalyst for exploratory learning.<p>It is a little-pie-in-the-sky, I admit. The top command when I visited was `sudo`. What argument `sudo` takes depends upon the shell the user is using to execute `sudo`. Perhaps this could be a preference set somewhere, along with the OS being used. And maybe have a sister site where people contribute shell command grammars in some standardized syntax. I wonder how many people would be willing to provide those, though. Hmm.<p>This wasn't mentioned in the prior submission of this site, and it didn't occur to me until seeing it again. Just thinking out loud.
评论 #527797 未加载
brianto2010大约 16 年前
This site was submitted for review here not too long ago.<p><a href="http://news.ycombinator.com/item?id=467692" rel="nofollow">http://news.ycombinator.com/item?id=467692</a>
halo大约 16 年前
There's also the very similar <a href="http://www.shell-fu.org/" rel="nofollow">http://www.shell-fu.org/</a>
mariorz大约 16 年前
for the osx crowd, try:<p><pre><code> man -t UNIX_COMMAND | open -f -a preview</code></pre>
评论 #528385 未加载
mechanical_fish大约 16 年前
Looks a lot like Snipt, which I have been using:<p><a href="http://snipt.net" rel="nofollow">http://snipt.net</a>
评论 #527655 未加载
mdemare大约 16 年前
They went for the terminal look, but some of us have dark on light terminals too! Finally a site where command-control-alt-8 comes in handy.<p>Great tips though, although not all of them work on OSX, and it does't advertise this. Love the !! command (runs previous command as sudo), had completely forgotten about it.
chanux大约 16 年前
Warning: This site may be addictive for some of you.
mpk大约 16 年前
Hm. The site admin uses the name 'root', which is generally frowned upon by the unix community...<p>(I kid! I kid! I'm taking it out of context! Don't flame me, bro!)<p>Cool site, picked up two gems after only about 20 seconds on the main page.
willwagner大约 16 年前
While we're talking about the command line and bash, can someone recommend a decent book on the topic? I've been spending a lot of time these days on the command line grepping and chopping up our log files looking for trends and bugs, and I've suddenly realized how lame I am at the command line compared to many of my colleagues and how much faster I could be if I knew more of the ins and outs of bash.
评论 #528851 未加载
评论 #528700 未加载
评论 #529569 未加载
ptn大约 16 年前
That green they use is kinda hard on the eyes...
jamesbritt大约 16 年前
This is pretty subjective, but the green/white text on black makes it unreadable for me.<p>I have a 'zap colors' bookmarklet that fixes it for me, but you may want to consider whether the color choice (albeit cute) is most effective.
enduser大约 16 年前
curl <a href="http://www.commandlinefu.com/commands/browse" rel="nofollow">http://www.commandlinefu.com/commands/browse</a> 2&#62;/dev/null | grep '="command"' | perl -pe 's#&#60;/?div.*?&#62;##g' | bash
spkthed大约 16 年前
osx/Linux ssh-copy-id replacement:<p>cat ~/.ssh/id_rsa.pub | ssh 'ip/port/options' "cat &#62;&#62; 'home directory'/.ssh/authorized_keys"
评论 #529259 未加载
known大约 16 年前
man -k a e i o u