linux–1– simple command from zero single row
Posted In:linux
Single row linux–1 from zero
A simple Linux command:
1. Forget root password:
Press any key when reading seconds to enter –e–↓ Select the second –e–1
–b– command: passwd carriage return – Enter a new password –reboot
2, modify the user password:
Open Terminal –passwd tanzhou– new password
3. Change the root password:
Open Terminal –passwd– New password
4. Switch User: SU user name
5, switch to the root user: su–
6. Shutdown: shutdown-h now
7. Restart: Shutdown-r now
8. View directory structure: LS
Ls-l Long mode
Ls-1 One line
Ls-a all included hidden files
Size of the Ls-s file
Ls-sh file with People's reading habits
Ls-la Multiple options
9. Display directory: PWD
10, clear screen: Clear
11. Dates: Date
Date +%y Year
Date +%y Year
Date +m minutes
Date +%m Month
12. Calendar: Cal Calendar
Cal 2012
Cal 12 2012 [Month, year]
13. Calculator:
BC Calculator
1/3
Set the precision; scale = 4
Quit quitting
14. Create File: Touch xx
^xx^yy
15. View History of History:
! Historical numbers Quick Call
16. Delete Files: rm-f XX
RM-RF XX Folder
17. Create directory (folder): mkdir directory Name
18, wearing a User: AddUser user name
Second, quick operation
Ctrl + A begins ctrl+e last
Ctrl +-> ctrl+<-Mouse to move a word
Ctrl+u Delete to the beginning of the cursor
Ctrl+k Delete to the end of the cursor,
Quickly call the last parameter by pressing esc+.
Quick Paste (Select all + Intermediate rollers)
CTRL + C End current
Ctrl+d= (exit;)
Ctrl+shift+t Fast Open Terminal
Ctrl+shift+pgup last tab page
CTRL+SHIFT+PGDN next tab page
Ctrl+d Close terminal = Exit
Third, help command
1, Whatis (need to enter Makewhatis to open the Help document before using Whatis)
Example: Whatis pwd
2, Help
Example: Ls–help (LS usage)
Date +%y
3, man
Example: Man passwd
/keyword highlighting query keywords
4. Info
linux–1– simple command from zero single row