Centos基本命令
CentOS Windows
$>ls cmd> dir 查看命令帮助
$> ls-help
$> man ls
$> clear cls 清屏
$> cd /home cd d:/ 切换目录
$> cd . cd . 进入当前目录
$>cd … cd … 进入上级目录
$> cd /home/centos cd d:/xx/x/x 进入绝对路径
$> pwd 显示当前目录
$> whoami 显示当前用户名
$>su root 切换用户,输入密码
$>passwd 修改当前用户的密码
$>ifconfig ipconfig 查看ip地址
$>启动桌面版的网卡
on.
$>su centos
$>cd home/centos
$>cd ~ 回到主目录
$> cd - 回到上次的目录
$>ll 别名,ls -l --autocolor
$>alias 查看所有的别名
$>ls -a -l -h 查看当前目录 -h :人性化 -l:列表 -a:显示.开头
$>mkdir ~/Downloads/a 创建目录
$>touch ~/Downloads/a/1.txt 创建文件
$>echon helloworld > 1.txt 重定向输出
$>cat 1.txt 查看文件
$>cp 1.txt 2.txt 复制文件
$>rm 1.txt 删除文件
$>rm -rf tmp 强行递归删除
$>mv a.txt tmp/ 强行递归删除