Merge pull request #1112 from GOLinux/master

Translated:20140529 Command Line Tuesday--The Introductory.md
This commit is contained in:
Xingyu.Wang 2014-06-03 08:26:30 +08:00
commit 158a527afc
3 changed files with 65 additions and 55 deletions

View File

@ -1,55 +0,0 @@
Hey,guys, this is mine. GOLinux ...
Command Line Tuesdays The Introductory
================================================================================
**Hi Geekos!**
Today were introducing a new series, called Command Line Tuesdays. Why command line Tuesdays? Because in this series, everyday computer enthusiasts like yours truly, will try to step a little out of bounds of the Graphical User Interface (GUI) Culture, which is today synonymous to making stuff easier for the masses.
Of course, if you visited any of the GNU/Linux related community forums, youve probably read, and this is an assumption, a very fiery debate over which is actually easier. Using GUI for everything, or simply learning and enjoying the Command-line Interface (CLI).
![Terminal](http://sholva.org/assets/images/blog/2009/review-opensuse-11.2/opensuse-terminal.png)
Terminal
There are many arguments for or against the use of GUI tools. One of the most commonly referred pros is that weve been brought up in the point-and-click computing paradigm, so its basically a form of a language, or culture if you may, in which we interact with our machine. The patterns are mostly recurring, with big button clicking doing everything we need it to do.
On the other side, one of the most interesting comments Ive read about the pros of command-line was: you can simply do more via the command-line much quicker, easier and faster than when using GUI tools. But theres a catch: you have to learn the commands. Yes, learn them, as if learning a poem.
Now, since to us, the semi-indoctrinated clueless users, it all sounds like some useless geek overreaching and overdoing, let me humanize it with a fable:
### The Fable ###
Ive been using Linux for more then 3 years now. Im a 27 year old literature major, who never held much of an interest in technology of any sort. I didnt even own a computer until I was in high-school, so lets say somewhere around 17. Thats barely ten years of computer usage. The only three programs I ever ran were BS Player, Winamp and Football Manager, with occasional usage of MS Word. Three and bit years ago, a colleague at a precarious job I was performing at the time was talking to another coworker, saying theres a new edition of something which immediately occupied my attention, as it looked different. It was Ubuntus Natty Narwhal, I think. After discussing it with him, he pointed out the usual pros we gospel to the newcomers, no antivirus necessary, faster boot, better security, software center blah blah blah, and the peak of it: Free and Open Source (FOSS) philosophy behind it. And he did it in a very non-invasive, non fanboyish manner.
I decided to give it a go, and I never turned back since then. How I got into openSUSE around the 11.4 release, shortly after trying out Ubuntu for the first time is going to have to fit in another time, and how I find it to be the perfect sweet spot is a whole different story. The point is, I finally entered the Linux realm. It was fun, it was different, it made my computer run better, it was more stable. I barely had issues with it (seems I not-knowingly purchased fairly orthodox hardware). It seems that Linux came really far regarding the desktop, so I barely had to use the terminal. But lets just say it was one of the most dreadful, terrifying and horrific tools to use in Linux. If there wasnt a GUI for a specific operation, I immediately became nervous as I didnt know what I was getting into when copy/pasting commands from the forums.
After time, things changed. As opposed to other consumer-oriented systems, what happened to me was maybe somewhat of a human reverse-engineering. Instead of me consuming the system, I feel that in three years, the system consumed me. I learned how to search for basic issues, file bug reports, properly ask questions on forums. With every issue I had, I learned how to be better at providing the information needed for someone more competent to help me with my problem.
A short while ago, my girlfriend commented how she cant believe Im using my computer mostly for the sake of using the computer, rather than doing anything else. You use it only for your music collection and Linux thingies, Nenad. Gaawd. It made me think, and think hard. Linux, specifically the openSUSE distro has become a hobby of mine. Not at an expert level, by any means, which is reasonable since it isnt my area of expertise. But I know enough to get around, fix minor issues, play around with some configuration files etc. But what I came to know, is that with my increasing playing and tinkering around the system, I really need to get familiar with CLI. I learned that Im playing around without knowing of the basics under the hood. What for crying out loud is ETC?!?!? Whats BIN? Why is there .sh at the end? Why is this file here, and this file there? Why do I have to click through gazillion of folders to find the right file to modify? Then I read you can easily list all the files somewhere with a single command. It became interesting. I suddenly felt an urge to try it out.
### So Lets Do It! ###
…and here we are. As a new openSUSE news contributor, Ill try to contribute in a way I see productive for what I suppose is a large portion of the community. Its time to plant the banner and start learning the command-line together. If philosophy is what attracted you to Linux and openSUSE, like me, it got you this far. Now its time to take a step further.
![](http://beerepiphany.files.wordpress.com/2010/04/pinky_brain.jpg)
Look, I know theres a bunch of you like me out there. I know you maybe dont see the point in all that 90s geeky black-screen-green-letters-quick-typing-make-everything-go-boom thing. But its useful in many aspects. Well learn in a fun and communal way which directories are for what, what files are located where, most commonly used terminal commands. It will make our lives easier when we learn to perform tasks through the console, make it even more rewarding when we run into issues. It will also make the lives of bug-squashers easier when they receive proper information from our end, and it will make our hobby infinitely more fun.
I mean, for crying out loud, youve already made a transition to a phase where Dilbert and xkcd are actually funny. Its time for the terminal!
P.S.:
Reference material that will be used: William Shotts The Linux Command Line and a short tutorial on most commonly used commands by a Croatian hacker Velimir Baksa aka Lutherus. Requirements on your part:
- An hour or two of spare time weekly
A pint of cold beer or any other beverage
Someone already pointed out that using [Gedit][1], or a manual notepad (you know, pen and paper hehe) would be good for easier learning.
The book by Mr Shotts is exquisite. But theres probably an issue of time/will-power etc. This way, Ill try to humanize the lessons a bit more, take some time off your hands, and whats most important I count on us learning together, helping each other together (Comments and Forums, people!!) and tying a close-knit openSUSE community! This time next week (it will be June already!), well learn our first commands. And remember…
**…have a lot of fun!**
--------------------------------------------------------------------------------
via: https://news.opensuse.org/2014/05/27/command-line-tuesdays-the-introductory/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://software.opensuse.org/package/gedit

View File

@ -0,0 +1,57 @@
命令行星期二 —— 序
================================================================================
**嗨,极客们!**
今天我们介绍给大家一个新的系列节目它叫命令行星期二。为什么叫命令行星期二因为在该系列节目中就像你们这样的忠实的计算机迷们每天将会试着走出图形用户界面GUI文化的藩篱GUI文化就是让事情变得简单而大众化。
当然如果你访问过任何与GNU/Linux相关的社区论坛的话你可能耳闻目睹了一次火热的辩论当然这是个假设话题是哪个实际上更易用。是让GUI掌控一切还是只是学习并享受命令行界CLI面带来的乐趣。
![Terminal](http://sholva.org/assets/images/blog/2009/review-opensuse-11.2/opensuse-terminal.png)
终端
对于使用或抛弃GUI工具的争论有很多。正方最常提到的优点之一就是我们是在点击的计算模式下长大的所以它基本上就是我们和机器进行交互的一种语言或文化形式。我们日复一日重复着这样的模式点击那个大按钮来让它干我们需要它干的事。
而对于反方我读到的关于命令行的优点的最有趣的评论之一就是你可以通过命令行来更快更简单地做更多事情比GUI工具来得快。但你需要明白的是你需要学习命令。是的学习它们就像学一首诗一样。
现在,因为对于我们,半知半解毫无头绪的用户们,它让人听起来就像是某个没用的杂记小丑表演得表演过头,太过火了。让我来用个寓言讲得通俗一点吧:
### 寓言 ###
我已经用了Linux超过3年了。27岁是个文学专业学生我对任何形式的技术都没有太大的兴趣。我直到中学才有了一台属于自己的计算机我想大概是17岁那年吧。对于我而言只用了10年的计算机。我只用过三个程序BS播放器Winamp和足球经理偶尔也用用MS Word。大约三年多以前我做临时工时的一位同事在我正和另外一位同僚谈话时告诉我说有个新版的东西它一下子就抓住了我的心它看起来确实与众不同。我现在想想它就是Ubuntu的敏捷的独角鲸。在和这位同事讨论这个新版本后他指出了一些常见的优点这些优点也是我们经常向新手宣传的不需要杀毒软件启动快捷安全性更高附带有软件中心等等之类。最突出的一点它背后的自由和开源FOSS哲学。他用他不带侵害性和没一点孩子气的方式把我带了进去。
我决定来一次尝试而从那以后便一发不可收拾。而至于我是怎么又从第一次对Ubuntu的浅尝辄止转而投向openSUSE 11.4的咋们下回再讲吧。而我发现它只是一个完美而甜蜜的小插曲那就完完全全另外一回事了。问题在于我最终进入了Linux领域。这很有趣感觉很不一样它让我的计算机跑得更好它也更稳定我也和它相处得很好似乎我是在不经意间买到了相当正统的硬件。Linux似乎也远不止是桌面所以我只是在不得不使用终端的时候也使用终端。但是这么说吧它是Linux中一个最为讨厌的最为可怕最令人不爽的工具之一。如果没有GUI来进行特别的操作我马上会诚惶诚恐十分不安了。因为当我从论坛复制/粘贴命令的时候,我都不知道我究竟在干些什么。
随着时间流逝情况发生了变化。相对于其他以消费者为导向的系统发生在我身上的事可能有点与一般人相反。在那三年中我感觉不是我在玩系统而是系统在玩我。我学会了怎样寻找基本问题提交bug报告怎样正确地在论坛上提问。对于碰到的每个问题我学会了为那些更有能力帮我解决问题的人提供更有用的信息。
不久以前我女朋友发泄道她简直不敢相信我主要为了用计算机而用计算机而不是用它来做一些别的事情。”你只用它来进行音乐收藏和做些Linux的乱七八糟的事情Nenad. Gaawd“它让我想啊使劲想。Linux特别是openSUSE发行版它成了我的爱好之一。我不是一个专家不管怎么说都说得通Linux不在我的专业知识范畴内。但我有足够的知识来搞定它搞定一些小问题修改一些配置文件等等。但是我终于认识到随着玩Linux日久对系统的调整日多我真的需要熟悉一下命令行CLI了。我也了解到我在对底层的东西一无所知的情况下对系统胡作非为。我要对着ETC大喊大叫了它究竟是个什么东西BIN又是个什么东西为什么会有个.sh在后面问什么这个文件在这里那个文件又在那里为什么我得点击那一大堆的文件夹来找到正确的文件进行修改然后我读到你可以用一个命令来简单地列出某个地方的所有文件它又变得很有趣了我突然感到迫不及待要想试试了。
### 好吧,让我们干吧! ###
我们来了……。作为一位新的openSUSE的新闻发布者我会试着以我所见最有成效的方式来发表我的看法这样的方式我想对社区中绝大多数人会奏效。该高举旗帜一起开始学习命令行了。如果是是什么吸引你到Linux和openSUSE中来这么个态度就想我引领你走了这么远那么是时候走得更远一点了。
![](http://beerepiphany.files.wordpress.com/2010/04/pinky_brain.jpg)
我就知道在那外头有一大堆像我这样的人。我知道你也许没有抓住90后极客们的要点黑屏-绿字-手指在键盘上乱飞-让一切都激情澎湃。但这在很多地方都很有用。我们将以一种有趣的而又共有的方式来学习目录是用来干什么什么文件放在什么地方以及一些最常用的终端命令。在我们在控制台处理一些任务时这将让我们更轻松一些在碰到一些问题时获得更大的回报。它也会让bug处理者更轻松些如果他们从我们这头收到正确的信息的话。它也让我们的爱好变得乐趣无穷。
我是说我的天啊你已经过渡到连Dilber和xkcd都感到有趣的阶段了。是时候到终端下去了。
附录:
要用到的一些参考资料:威廉 · 肖茨—— 《Linux命令行》,以及克罗地亚黑客韦利米尔 ·巴克沙,别名鲁塞拉斯,《关于最常用命令的简短教程》。对于你们的要求:
- 每周1到2小时的空闲时间
- 一品脱冰冻啤酒或者其它饮料
- 有人已经指出,使用[Gedit][1],或者手工记录本(你懂的,笔和纸,呵呵)可以让学习更简单一些。
肖茨写的书可是精品但读它可要花点时间和毅力。这里我尽力让课程变得更通俗易懂一点花点时间来帮助你们而最重要的是——我希望我们能一起学习一起互相帮助评论还有论坛并且加入一个组织严密的openSUSE社区下周的这个时间已经会是六月了吧我们讲学习我们的第一部分命令。切记……
**尽情享受吧!**
--------------------------------------------------------------------------------
via: https://news.opensuse.org/2014/05/27/command-line-tuesdays-the-introductory/
译者:[GOLinux](https://github.com/GOLinux) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://software.opensuse.org/package/gedit

View File

@ -2,14 +2,22 @@ Linux大神们的顶级命令行秘诀
================================================================================
![](http://www.linuxinsider.com/images/rw509807/command-line.jpg)
<<<<<<< HEAD
> “命令行秘诀根本就没这玩样。”博主罗伯特·柏格森说。“新手们你们失望了那就猛敲help吧。还想要点提示随便man个什么吧。想更多来点不同ls /bin /sbin /usr/bin /usr/sbin | less随便捡几个宝贝命令出来整晚地man去吧。我已经干那活超过十年了到现在还玩得不亦乐乎。”当然“某人可要对破坏之类的事情上瘾了。”
=======
> “命令行秘诀根本就没这玩样。”博主罗伯特·柏格森说。“失望了吧新手那就猛敲help吧。还想要点提示随便man个什么吧。想更多来点不同ls /bin /sbin /usr/bin /usr/sbin | less随便捡几个宝贝命令出来整晚地man去吧。我已经干那活超过十年了到现在还玩得不亦乐乎。”当然“某人可要对破坏之类的事情上瘾了。”
>>>>>>> 51f3aeffb27a659d5154c500cf16bafe572a4007
**好**吧Linux博客圈这里这周相对比较平静给网民们一个拖了很久的机会集体喘口气吧去享受一下龙舌兰、燕尾服、鸡尾酒带来的欢快吧然后评估一下过去几周来发生的和自由开放软件相关的事件吧。
有些人错过了这些重大新闻:[IEEE][2]的[颁奖礼][1]计算机世界的2014计算机先驱奖正是颁发给了李纳斯·托沃兹Tails OS 1.0的[到来][3];以及,也许是最令人激动的事情,位于西雅图的乐队[网猫][5][发布了][4]作为Linux内核模块的首张唱片。
“你是否曾经在听一张专辑的时候想过伙计这听起来不错但是我希望它能经常从用户空间过渡到内核空间去”网猫在Facebook上写道“我们会全力支持你的。我们的专辑现在完全可以作为一个可加载的Linux内核模块来播放。”
<<<<<<< HEAD
Linux Girl thought she had seen it all here in the Linux world, but now she realizes she was wrong. Thank you, netcat, for keeping life interesting!
=======
Linux女孩曾经认为她自己已经完全进入Linux世界了但是她现在却意识到她的想法是错误的。谢谢你们网猫是你们让生活一直这么有趣
>>>>>>> 51f3aeffb27a659d5154c500cf16bafe572a4007
### ‘命令行秘诀’ ###