首页 > 系统服务 > 详细

2019-2020-1学期 20192428《THE LINUX COMMAND LINE 》读数笔记一

时间:2019-12-26 23:24:08      阅读:100      评论:0      收藏:0      [点我收藏+]

技术分享图片

2019-2020-1学期 20192428《THE LINUX COMMAND LINE 》读数笔记一

首先请看我对第1、2、3小节的脑图

技术分享图片


① WHAT IS THE SHELL?

Bash,Unix shell的一种,在1987年由布莱恩·福克斯为了GNU计划而编写。1989年发布第一个正式版本,原先是计划用在GNU操作系统上,但能运行于大多数类Unix系统的操作系统之上,包括Linux与Mac OS X v10.4都将它作为默认shell。

当我们谈到命令行时,实际上指的是shellshell是一个接收键盘命令并将其传递给操作系统执行的程序。
“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.”

Terminal Emulators ——终端仿真器

“A number of other terminal emulators are available for Linux, but they all do basically the same thing: give us access to the shell.”

Keystrokes ——认识你的输入

通常来讲,Linux的输入处往往是这样的: [me@linuxbox ~]$
这里@为一个分界:之前为用户名(username),之后为机器名(machinename),同时$表示用户权限为普通,有时$会变为#,#代表权限为超级用户特权。当你的shell中出现这个东西,表示系统以及做好准备进行输入了。

Command History 以及 Cursor Movement

从keyboard操作上来看,将这两标题可以合并为一个内容,即为上下左右键(↑、↓、←、→)对应的快捷操作。其中:
上(↑):回溯指令,追查上一条指令并将其打进你的输入框,默认最多可追溯500条记录。
下(↓):跳到目前指令记录的下一条指令。
左(←)右(→):光标移动。

*If we press the up-arrow key, we see that the previous command kaekfjaeifj reappears after the prompt. This is called command history. Most Linux distributions remember the last 500 commands by default. Press the down-arrow key, and the previous command disappears.

*Recall the previous command with the up-arrow key again. Now try the left- and right-arrow keys. See how we can position the cursor anywhere on the command line? This makes editing commands easy.

Try Some Simple Commands

书中举例了一些简单的Linux操作:

指令 功能
[me@linuxbox ~]$ date 显示当前日期
[me@linuxbox ~]$ cal 显示日历(本月)
[me@linuxbox ~]$ df 当前磁盘驱动器上的空闲空间量
[me@linuxbox ~]$ free 显示空闲内存的数量
[me@linuxbox ~]$ exit 结束终端对话

2019-2020-1学期 20192428《THE LINUX COMMAND LINE 》读数笔记一

原文:https://www.cnblogs.com/KamanFuture/p/12104836.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!