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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

What commands do you use the most?

3 点作者 leecho0将近 16 年前
I recently discovered the usefulness of find (which makes up its clumsiness, forcing you to type -name to search, with the awesome -exec option). So I'm curious what commands do you find to be the most useful?<p>history | awk '{print $2}' | grep -v cd | grep -v ls | sort | uniq -c | sort -nr | head -10 (to look for your top ten commands)

2 条评论

peterhi将近 16 年前
Here are the commands I use most frequently. However I find lsof and pstree to be the most useful. Even if they are used infrequently.<p><pre><code> 60 hg 37 ./all.sh 30 vi 27 ssh 27 ruby 20 rm 18 mate 15 curl 10 scp 10 grep</code></pre>
评论 #660456 未加载
lucumo将近 16 年前
I love qalc. It's not really a command, but a command line application. It's a calculator with floating point arithmetic, knowledge of units (even exchange rates if downloaded) and some solving ability.<p>My top 10 commands is/are:<p><pre><code> 201 ssh 189 svn 90 sudo 84 rm 73 ps 70 qalc 66 mplayer 60 scp 47 less 46 cp </code></pre> Interestingly, if I remove the ls and cd removal, ls comes in at only the fourth spot. (cd comes at the no. 1 spot, unsurprisingly.)<p>P.S. I had to change the $2 in the awk command to $4, since I store dates with the commands.