linux - vi 一个目录,怎么退到控制台
PHP中文网
PHP中文网 2017-04-17 15:36:47
0
12
1060

X是一个文件夹名,怎么退回到控制台,我每次都是关闭终端,重新打开,囧

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(12)
大家讲道理

:q Exit
:q! Force exit without saving

左手右手慢动作

It’s the same as editing a file :q

左手右手慢动作

:wq
Keep exiting

巴扎黑

The questioner presses the esc key to see if there is a cursor at the bottom left of the file. This indicates that you can use the keyboard to enter things. Don’t forget the colon.

PHPzhong

:q! Force quit (without saving)
:wq (save and launch)
:q (exit without performing changes, read permission)

黄舟

Actually, you don’t need to exit vi

Ctrl + zcan suspend vi

$> jobs You can check what processes are there

$> fg You can put vi back into running state

Of course, you can also use fg %[number] to switch to other processes. For specific numbers, refer to the return result of jobs

As a lazy person, I think it is faster to use :x to exit, which is equivalent to :wq(save+exit)

It’s better to use Emacs ^ ^

小葫芦

:! You can directly follow the console command

Or you can open two tabs

巴扎黑

Isn’t it easy to open another terminal

阿神

Ctrl+z

左手右手慢动作

: wq, save and exit

: q! Force quit

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!