After entering the terminal, it is already in your home directory, enter the PWD command, you can see what directory you are in now.
Frequently used terminal shortcut keys:
Create a new tag for the terminal: ALT + SHIFT + t
Switching between tabs: Alt + PG up (or PG DN)
Delete a tag: shift+ctrl+w
Move cursor to start position: Ctrl + A
Cursor moves to the very end: Ctrl+e
Delete all content from here to the end: Ctrl+k
Delete all content from here to start: Ctrl+u
The terminal scrolls up and down: SHIFT+PGUP/PGDN
Switch to the corresponding tab: ALT + number
Hold down the ALT key and the corresponding letter appears at the top left of the computer screen, and the alt is the equivalent of clicking the button. such as ALT + F, the file button is opened.
Terminal command:
Go to the previous level directory of the current directory :CD. (CD and.. There are spaces between them)
Go to the previous Action directory: CD-
change file name: MV Oldfilename NewFileName
Create a file: Touch filename
Delete a file: RM MySQL
This article is from the "program Ape's Cultivation" blog, please be sure to keep this source http://zhoum1118.blog.51cto.com/10054110/1651260
Summary of the daily operation of Ubuntu using terminal