Linux 基础知识

Linux 基础知识

参考:

https://program-think.blogspot.com/2019/11/POSIX-TUI-from-TTY-to-Shell-Programming.html?q=bash&scope=all

回车/换行

回车(carriage return,CR,简称\r),将“打印头”复位(移到"打印纸"地左边)

换行(line feed,LF,简称\n),将“打印头”往下移一行

Shell

http://c.biancheng.net/view/706.html

Shell 是一个应用程序,它连接了用户和操作系统的内核,让用户高效,安全,低成本地使用操作系统内核

影响力最大的就是bash

[root@chz Desktop]# echo $SHELL
/bin/bash

linux中的一个terminal窗口也可以叫做TTY(teletype printer)

具体查看:linux shell

命令提示符提示符

命令提示符,root用户#,普通用户$

[chz@chz Desktop]$ whoami
chz
[chz@chz Desktop]$ su root
Password: 
[root@chz Desktop]# whoami
root
[root@chz Desktop]# 

文件颜色

灰色:普通文件

蓝色:目录

红色:压缩文件

绿色:可执行文件

posted @ 2020-10-11 23:40  CyberPelican  阅读(153)  评论(0编辑  收藏  举报