免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1901 | 回复: 4
打印 上一主题 下一主题

[学习共享] Linux command line 学习笔记01 (Hello 李娜克思)——2014_3_23 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-03-23 09:38 |只看该作者 |倒序浏览
**************************

Hello 李娜 克思

**************************




先把话说在前面,都说天下没有免费的午餐,凭什么 李娜 克思 就免费 还 开源?

李娜 克思 看起来 有点凶 非常不友好,所以一直没学,但有一款自己 想学的开源软件 是基于 李娜克思 的,而且和 李娜克思 couple 得 非常厉害,
所以, Hello 李娜 克思。

选择了 The linux command line 这本书,因为 亚马逊评论较好,而且作者也说了,This book is for new Linux users who have migrated from other platforms.

********************************
题外话,
我感觉作者 是个 liberal,vote Obama twice
因为他说,

Many people speak of “freedom” with regard to Linux, but I don't think most people know what this freedom really means.
Freedom is the power to decide what your computer does, and the only way to have this freedom is to know what your computer is doing.
Freedom is a computer that is without secrets, one where everything can be known if you care enough to find out.


*******************************

为什么使用命令行,作者举了个 搞笑的例子,
Why Use The Command Line?

Have you ever noticed in the movies when the “super hacker,” — you know, the guy who can break into the ultra-secure military computer in under thirty seconds — sits down at the computer, he never touches a mouse?

在这方面,我能找到更实际的例子,

《斩服少女》对命令行的重要性 做了更好的示例,



背景介绍:犬牟田全身都是键盘,在作战中不断的敲打键盘根据情况输入情报改变应对方式。

看到了吗?敲键盘 能敲出 杂技 一般的感觉。

这就是为什么要 使用 键盘 而不是 鼠标。


言归正传

这本书 分四部分:

● Part 1 – Learning The Shell starts our exploration of the basic language of the
command line including such things as the structure of commands, file system
navigation, command line editing, and finding help and documentation for commands.

● Part 2 – Configuration And The Environment covers editing configuration
files that control the computer's operation from the command line.

● Part 3 – Common Tasks And Essential Tools explores many of the ordinary
tasks that are commonly performed from the command line. Unix-like operating
systems, such as Linux, contain many “classic” command line programs that are
used to perform powerful operations on data.

● Part 4 – Writing Shell Scripts introduces shell programming, an admittedly
rudimentary, but easy to learn, technique for automating many common computing
tasks. By learning shell programming, you will become familiar with concepts
that can be applied to many other programming languages.

论坛徽章:
0
2 [报告]
发表于 2014-03-23 10:36 |只看该作者
***************************
Part 1 – Learning The Shell

1 – What Is The Shell?
***************************

When we speak of the command line, we are really referring to the shell.
The shell is a program that takes keyboard commands and passes them to the operating system to carry out.

  
Almost all Linux distributions supply a shell program from the GNU Project called bash.

The name “bash” is an acronym for “Bourne Again SHell”, a reference to the fact bash is an enhanced replacement for sh, the original Unix shell program written by Steve Bourne.

是他写的。

When using a graphical user interface, we need another program called a terminal emulator to interact with the shell.

按照书上的例子,做一下



最后,作者说,

That wasn't so scary was it?

我回答,no


论坛徽章:
3
酉鸡
日期:2014-04-23 17:17:56丑牛
日期:2014-05-08 11:41:302015亚冠之德黑兰石油
日期:2015-08-03 11:14:27
3 [报告]
发表于 2014-03-24 09:09 |只看该作者
楼主把这本书发出来看看噻,
我这算是沙发吗?

论坛徽章:
0
4 [报告]
发表于 2014-03-24 14:21 |只看该作者
本帖最后由 oldbeginner 于 2014-03-24 16:21 编辑

*************************
2 – Navigation

*************************


The first thing we need to learn (besides just typing) is how to navigate the file system on our Linux system.
In this chapter we will introduce the following commands:

● pwd - Print name of current working directory

● cd - Change directory

● ls - List directory contents


The directory we are standing in is called the current working directory.
To display the current working directory, we use the pwd (print working directory) command.

To list the files and directories in the current working directory, we use the ls command.




To change your working directory (where we are standing in our tree-shaped maze) we use the cd command.

The "." symbol refers to the working directory and the ".." symbol refers to the working directory's parent directory.




   

论坛徽章:
0
5 [报告]
发表于 2014-03-24 14:25 |只看该作者
***************************
2 – Navigation

*****************************


The first thing we need to learn (besides just typing) is how to navigate the file system on our Linux system.
In this chapter we will introduce the following commands:

● pwd - Print name of current working directory

● cd - Change directory

● ls - List directory contents


The directory we are standing in is called the current working directory.
To display the current working directory, we use the pwd (print working directory) command.  

To list the files and directories in the current working directory, we use the ls command.



To change your working directory (where we are standing in our tree-shaped maze) we use the cd command.

The "." symbol refers to the working directory and the ".." symbol refers to the working directory's parent directory.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP