84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
X是一个文件夹名,怎么退回到控制台,我每次都是关闭终端,重新打开,囧
认证高级PHP讲师
:q Exit:q! Force exit without saving
It’s the same as editing a file :q
:q
:wqKeep 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.
: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
Ctrl + z
$> jobs You can check what processes are there
jobs
$> fg You can put vi back into running state
fg
Of course, you can also use fg %[number] to switch to other processes. For specific numbers, refer to the return result of jobs
fg %[number]
As a lazy person, I think it is faster to use :x to exit, which is equivalent to :wq(save+exit)
:x
:wq
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
: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.
: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 + z
can suspend vi$>
jobs
You can check what processes are there$>
fg
You can put vi back into running stateOf course, you can also use
fg %[number]
to switch to other processes. For specific numbers, refer to the return result ofjobs
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