To understand more about thevi/vimeditor, you need to create a new file and try learning yourself using the following commonvi/vimkeyboard shortcuts. Vim Cheat Sheet That’s it! In an upcoming article, we’ll show you how to exit the Vim text editor with simple commands. Remember to dro...
vi filename :打开或新建文件,并将光标置于第一行首 vi +n filename :打开文件,并将光标置于第n行首 vi + filename :打开文件,并将光标置于最后一行首 vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处 vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复filename vi filename...
apt install build-essential flex bison libssl-dev libelf-dev libncurses-dev -y # 设置调试的编译菜单。 export ARCH=x86_64 make x86_64_defconfig make menuconfig # 下面选项如果没有选上的,选上(点击空格键),然后 save 保存设置,退出 exit。 ### General setup ---> [*] Initial RAM filesystem ...
退出:Ctrl+d或exit tigervnc:远程桌面工具 pscp:命令行文件传输工具: -p:保留源文件创建时间 -r:拷贝整个目录 -v:显示提示信息 上传:pscp d:/my.file xugd@{ip}:/home/xugd/soft 下载:pscp xugd@{ip}:/home/xugd/soft/my.file d:myDir 2 VIM编辑器 VIM为Linux下的常用编辑器: 普通模式:VI打开时...
The difference between these two commands is that :x writes the buffer to the file only if there are unsaved changes, whereas :wq always writes the buffer to file and updates the file modification time. Quit Vim / Vi without Saving the File To exit the editor, without saving the change...
切换目录。cd实际上是shell内置的命令。 cd [DIR] dir可取: 缺省:当前用户主目录。 .:当前目录。 ..:当前目录的上级目录。 -:前一个工作目录。 ~:当前用户主目录。 ~USER:USER用户的主目录。 PATH:绝对路径或相对路径。 cp 复制文件/目录。 cp [-adfprR] SRC[ ...] DST ...
http://www.xker.com/page/e2012/0114/106423.html 有很多方法:退出Vi当编辑完文件,准备退出Vi返回到shell时,可以使用以下几种方法之一。 在命令模式中,连按两次大写字母Z,若当前编辑的文件曾被修改过,则Vi保存该文件后退出,返回到shell;若当前编辑的文件没被修改过,则Vi直接退出, 返回到shell。& ...
ip address show/ip a 检查网卡地址配置 ping 测试网络连通性 nmtui 图形界面修改网卡地址信息 exit 注销 shutdown 关机命令 shutdown -h 5 指定关机时间 (推荐) shutdown -r 5 重启主机时间 (推荐) shutdown -c 取消关机或重启计划 shutdown -h now/0 立即关机 shutdown -r now/0 立即重启 halt 直接关...
Location: -> Settings -> vi-style line editing commands如下图所示:继续配置如下路径配置项:Location: -> Linux Module Utilities -> Simplified modutils默认会选中“Simplified modutils”,这里我们要取消勾选!!如下图所示:继续配置如下路径配置项:Location: -> Linux System Utilities -> mdev (17 kb) //...
[ -e /etc/keepalived/down ]] && exit 1 || exit 0" interval 1 weight -2 } vrrp_instance VI_1 { state MASTER interface eth0 virtual_router_id 51 priority 100 advert_int 1 authentication { auth_type PASS auth_pass soysauce } virtual_ipaddress { 172.16.1.110/16 dev eth0 label eth0...