阶段知识梳理

2019-07-17  本文已影响0人  张新雨有点胖噢

扩展小知识

man新使用方式
man命令(查看命令的详细介绍)
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conventions), e.g. man(7),
groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]

不同分类可以查看不同命令具体介绍

[root@zin ~]# echo {1..10}
1 2 3 4 5 6 7 8 9 10
(生成横向数字列)

[root@zin ~]# echo {1..10..2}
1 3 5 7 9
(生成奇数)..2代表显示时 隔一个值进行显示
[root@zin ~]# echo {0..10..2}
0 2 4 6 8 10
(生成偶数)
[root@zin ~]# echo {a..f}
a b c d e f
(字母序列)
cat(编写多行)
cat >>文件<<标记(标记可随意,起到开始与结束的作用)
解释:用cat 打开文件 >>号输出重定向 <<号输入重定向  
      标记后回车输入追加内容 书写完成以标记结束
ls扩展 
参数:-l文件的详细信息 
     -t 按时间查看
     -r反序显示文件
     -S(大写)显示文件大小
     -h 以人类可读形式显示大小
     -F 查看文件时 目录的后面添加 “/”区别开来
上一篇 下一篇

猜你喜欢

热点阅读