date命令
查看年月日
# date +%F
2017-02-22
查看时分秒
# date +%T
15:12:50
查看星期
date +%a
Wed
具体时间
# date +%F-%H-%M-%S
2017-02-22-15-15-06
ls命令
ls -R shell/ 递归查找
shell/:
stat命令
# stat 1.txt
File: `1.txt'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: fc01h/64513d Inode: 1971999 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-02-24 15:14:35.265042187 +0800
Modify: 2017-02-24 15:14:35.265042187 +0800
Change: 2017-02-24 15:14:35.265042187 +0800
cat查看文件内容
# cat 1.txt
test
file查看文件类型
# file 1.txt
1.txt: ASCII text
echo回显命令
# echo 1.txt
1.txt
-e转义
# echo -e "h\t1"
h 1
# echo -e "h\n1"
h
1