1.文件和目录类命令
①在“/home”目录下创建“tools”文件夹
mkdir home
mkdir /home/tools
②用cd命令进入“/home/tools”
cd /home/tools
③在“/home/tools”文件夹下创建“first”文件,并用vi编辑器打开"first",在里面写入"Hello [你的名字拼音]"
touch first
vi first
④将文件"first"设置为隐藏文件,并用"ls -a"命令显示隐藏文件
rename first .first first
ls -a
⑤在"/home/tools"文件夹下创建"file1"文件夹,并用cp命令将"/home/tools"文件夹下"file1"文件复制到"/home/tools/first"文件夹中
touch file1 //file1相当于一个文件
mkdir first //first相当于一个目录
cp file1 first/file1
⑥在"/home/tools"中创建"newfile1"文件夹并复制到"/home/tools/first"目录中,删除"/home/tools"目录下"newfile1"文件夹
touch newfile1 //file1相当于一个文件
cp newfile1 first/newfile1
rm -f newfile1
2.find命令
利用find命令查看"first"文件的路径,并将find命令写入"/home/tools/first"中
find -name first
vi first //
3.yum命令
运行yum install tmux安装tmux终端复用器
yum install tmux
以上是我的日常分享,欢迎大家一起交流学习,如果写的不错,可以三连+关注哦。持续学习中…,也要每天开心哦。