Linux基础02

本文介绍了Linux基础操作,包括使用vim编辑器创建和编辑文件,详细解析了vim的三种模式及操作技巧。还讲述了如何安装VMware Tools,以实现宿主机与虚拟机的文件共享,并简述了远程连接Xmanager进行服务器管理的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前情回顾

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保存退出

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Meng XY

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值