linux 命令
yum search ifconfig
type ifconig
内置命令 help
外置命令 man
单词参数则是–,简写一个-
1.whereis ping 找命令在哪
2.查看文件
[hzz@localhost ~]$ file /usr/bin/cd
/usr/bin/cd: POSIX shell script, ASCII text executable
3.whoami
4.pwd
5.history
history -cd
ctrl + r :搜索
文件系统
创建、删除文件夹
mkdir -p a/b/c
mkdir -p shiren{libai,baijuyi,liqingzhao}
mkdir -p shiren/{libai,baijuyi,liqingzhao}
rm -rf shiren
复制、剪切、改名
cp src dstDir
cp src dstPath
cp -r srcDir dstDir
stat filePath 查看文件属性
ln -s srcFile slink