Ubuntu graphical command is implemented in three rows and cross-cutting command line interface

Linux graphical interface and command line interface switching method with each other:

  • If the default is the graphical interface:

    The Root mode: vi / etc / default / grub

    Non-Root mode: sudo vi / etc / default / grub

    Here you can see default = "quiet splash", it is the way to start the graphical interface ubuntu

  • Comment out this line, using the "text" line, if this line does not add a line to the specific shortcut keys, please refer to the article below, save and exit (press Esc +:! Wq + Enter)

  • The Root Mode: update-grub

       Non-Root mode: sudo update-grub

  • Under Root mode: reboot

      Non-Root mode: sudo reboot

      After the reboot into the command line to start ubuntu

 

  • Conversely converted to graphical interface from the command line, same step, the text commented, enabled default = "quiet splash" line.

Reference documents:

https://blog.csdn.net/guanggegg/article/details/50389358

 

After the Linux vi file, use a variety of keyboard shortcuts

For example, I want to copy the contents of a line and follow the insertion of characters:

/ Xx: Type what you want after a carriage return after the slash

n: cursor to the next qualifying query content

N: position the cursor to a query on the contents of qualified

Enter: Move the cursor down one line

yy: Copy the contents of the line where the cursor row

P: Paste copied out of line

Space space or End->: Move the cursor right one character

Backspace: the cursor one position to the left

x: Move the cursor to delete the selected character

u: Undo the last step of the operation

Ctrl + r: recovery, that is a command before the rollback

U: OK, cancel all operations on a previous line edit

i: content before inserting the input i, then enter Inserts

Then press Esc to exit the insert mode

Arrow PgUp: Move the cursor to the line

dd: delete the row cursor

10dd: delete including 10 lines under the cursor line content

: Q !: exit without saving

 

 

Guess you like

Origin blog.csdn.net/chang_jinling/article/details/82843140