创建目录
mkdir
bin/mkdir
root
格式:[root@localhost-]#mkdir [选项]目录名
删除目录
rmdir
bin/rmdir
root
格式:[root@localhost]#rmdir[选项]目录名
touch 查看文件的创建时间,文件不存在,会创建该文件
touch
bin/touch
root
格式:[root@localhost-]#touch[选项]文件名或目录名
stat 查看文件的创建时间,访问时间,修改时间
stat
usr/bin/stat
root
格式:[root@localhost~]stat[选项]文件名目录名
cat 查看文件内容
cat
/bin/cat
root
格式:[root@localhost~] cat[选项]文件名
more 分屏显示文件内容
more
/bin/more
root
格式: [root@localhost]#more 文件名
空格 向下
b: 向上
q:退出
head显示文件开头的部分
head
/usr/bin/head
root
格式:[root@localhost~]#head[选项]文件名
-n行数:从文件头开始,显示指定行数;
-v:显示文件名;