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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Gruber: Today's command line isn't dangerous, just convenient

10 点作者 ams1大约 16 年前

3 条评论

mustpax大约 16 年前
Don't wanna get all Unix-macho here, but the regular command line is also pretty safe when you're just launching applications and doing things equivalent to the location bar. It gets dangerous for only a specific subset of administrative commands such as rm, mv, apt- which provide different functionality anyway.<p>That said. you can get burnt clobbering important files with output redirection. It's a good idea to enable the "noclobbler" setting in Bash like so:<p><pre><code> set -o noclobber </code></pre> It's saved me plenty of times from deleting important partially process data.
ericwaller大约 16 年前
The new ones aren't dangerous because you can't actually <i>do</i> anything with them. As soon as I can send an email (or affect the outside world in any way) from the location bar, it becomes just as dangerous as the unix command line.
评论 #606318 未加载
benreesman大约 16 年前
you can pry bash from my cold, dead hands.
评论 #606504 未加载