前情回顾
cd 改变目录
ls 列出目录结果 -a:包含隐藏文件 -l:文件的隐藏信息
su 切换用户
mkdir 新建目录 -p:创建多级目录
touch 新建文件
vim 文件编辑器
cp -r:递归,同时复制文件夹中所有的内容
mv 剪切、重命名
rm 删除 -r:递归 -f:强制
shutdown -r:重启 -c:取消 -h:关机
halt poweroff reboot
chmod 修改文件的权限
pwd 打印当前文件夹的绝对路径
clear 清屏
vim
在Linux的opt文件夹中创建一个文件,并编辑以下内容:
Many thanks to youall for your help, support and donations.
This month has been very exciting forus because the release cycle was over,
the base jump to the new LTS base wasachieved, we had plenty of ideas to implement,
nothing got in our way and wecould focus on development.
Not only that but the development budget hard toknow also who in this team might
end up being central to our designs and maybenot only to our websites but
also to our software, our user interfaces.
开启虚拟机,在Linux桌面右键点击在终端中打开,切换管理员,进入opt文件夹,touch创建一个文件,用vim命令打开并编辑,按A键,进入插入模式,进行编辑,:wq保存退出