命令格式
-
command [option] parameler1 paramaler2…
命令 [选项] 参数1 参数2…
-
命令严格区分大小写
ls 查看文件夹下有哪些内容
- ls -l:看到详细信息,以列表形式查看
- -a:查看有哪些隐藏文件
[root@localhost ~]# ls
anaconda-ks.cfg
[root@localhost ~]# ls -l
总用量 4
-rw-------. 1 root root 1451 1月 22 2020 anaconda-ks.cfg
[root@localhost ~]# ls -a
. .. anaconda-ks.cfg .bash_history .bash_logout .bash_profile .bashrc .cshrc .tcshrc
clear:清屏命令
mkdir:创建新文件夹
[root@localhost ~]# mkdir -p b/c/d
[root@localhost ~]# ls
a anaconda-ks.cfg b
[root@localhost ~]# cd a
[root@localhost a]# cd
[root@localhost ~]# ls
a anaconda-ks.cfg b
[root@localhost ~]# cd b
[root@localhost b]# ls
c
[root@localhost b]# cd c
[root@localhost c]# ls
d