linux的基本原则:

  • 由目的单一的小程序组成
  • 一切皆文件
  • 尽量避免捕获用户接口
  • 配置文件保存为纯文本格式

GUI接口:

  • Gnome:C
  • KDE:C++
  • XFace

CLI接口:
命令提示符:prompt
#:root

$:普通用户


shell:

  • bash
  • csh
  • zsh
  • ksh
  • tcsh

命令格式:
命令 选项 参数
选项:
短选项:-

多个短选项可以组合:-a -b = -ab

[root@yum ~]# ls -al
总用量 64
dr-xr-x---.  2 root root  4096 8月  15 2018 .
dr-xr-xr-x. 23 root root  4096 2月  14 19:10 ..
-rw-------.  1 root root   953 8月   1 2018 anaconda-ks.cfg
-rw-------.  1 root root  2426 2月  14 19:10 .bash_history
-rw-r--r--.  1 root root    18 5月  20 2009 .bash_logout
-rw-r--r--.  1 root root   176 5月  20 2009 .bash_profile
-rw-r--r--.  1 root root   176 9月  23 2004 .bashrc
-rw-r--r--.  1 root root   100 9月  23 2004 .cshrc
-rw-r--r--.  1 root root 13369 8月   1 2018 install.log
-rw-r--r--.  1 root root  3482 8月   1 2018 install.log.syslog
-rw-r--r--.  1 root root   129 12月  4 2004 .tcshrc
-rw-------   1 root root  4344 8月  15 2018 .viminfo

长选项:--

参数:命令的作用对象


使用凭证:


虚拟终端(terminal):Ctrl+Alt+F1-F6


su:switch user
/ # su [-l] 用户名
su root

退出:exit


密码:
1.使用4种类别字符串中至少3种
2.足够长,大于7位
3.使用随机字符串
4.定期更换
5.循环周期足够大