Linux basic commands
1.who
Who am I see myself
who xxx yyy
Who sees who landed the system
W See who logs the system who does what
2. Interface Toggle Shortcut keys
Ctrl+alt+f1 graphical interface
ctrl+alt+f2,3,4,5,6 Character Interface
3. Command Switch interface
CHVT # Toggle Interface But previous interface not closed
Init # switch interface closed before interface
4. CD Mount steps
DF View Disk
Cd/media/vmware\ tools/
CP Vmwaretools-9.9.3-2759765.tar.gz/testdir
Cd/testdia
Ls
CD vmware-tools-distrib/
Ls
/testdir/vmware-tools-distrib/vmware-install.pl D
5. Modify the configuration file, boot automatic root account startup
Using the graphical tools gedit Gedit/etc/gdm/custom.con
Add 2 lines of code
Automaticloginenable=true
Automaticlogin=root
6.cat/proc/meminfo memory usage of the machine
7.id
Id-u root View ID of root user
8. Echo $SHELL shows the SHELL currently in use
Cat/etc/shells Show all shells currently in use
9. Built-in command kernel
External command
Echo $PATH can see the path to the external command
Which command to view the commands path
10. The external command is cached in memory after execution
hash-d command to delete a cache of commands in memory
Hash-r Clear All Caches
11.enable
Enable-n CD Disable CD command
Enable CD-enabled CD command
12.cal Viewing calendars
13.date system Time
14.hwclock, Clock
-s with hardware clock as the standard
-W with system clock
15.nano file Text Editing
16.screen Command terminal switch
Help person
Screen-s + Self-edited information
Help person
Screen-ls
Scren-x + information for help-seekers to edit
Example: A,b,c,... With the account, share the steps with the machine:
A input screen-s test
b input Screen-ls view with test column
b input Screen-x test can be shared on screen
c do the same operation, you can share the screen
Screen Run Program
Screen-ls Show all screens that are already open
Screen-r [Session] restores a screen
Ctrl+a,d Stripping Current Screen
Exit screen
Example: A input screen-> run program, network unexpected interrupt->screen-ls query Run program process->SCREEN-R process random number recovery process
18.rmp-i/path/to/installation Software
19.ehco
Echo ' $VAR _name ' variables are not replaced, single quotes indicate strong references
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/84/90/wKioL1eU22TRjDqHAAAHG6XCb0w106.png "style=" float: none; "title=" fpnk9ktsgbcb[[pg{$ ' Dda5.png "alt=" Wkiol1eu22trjdqhaaahg6xcb0w106.png "/>
echo "$VAR _name" variable is replaced with double quotes for weak references
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/84/90/wKioL1eU3meQKi4zAAAHJl8aFd0902.png "title=" qz}v%@ Ut14hkmwrpd0{j7@a.png "alt=" Wkiol1eu3meqki4zaaahjl8afd0902.png "/>
Echo ' $VAR _name ' anti-quotation marks show the results of the execution
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/84/90/wKioL1eU22PjNMAEAAAHCX8JDaE184.png "title=" cxeh~ OAA ' 2_2mpb3y65[g4s.png "alt=" Wkiol1eu22pjnmaeaaahcx8jdae184.png "/>
echo Command options:
-N does not wrap characters at the end of the line
-e parameter to print escape characters
\a issued a warning sound
\b Backspace key
\c End With line break
\ n Wraps and the cursor moves to the beginning of the line
\ r The cursor moves to the beginning of the line, but does not wrap
\0NNN insert ASCII character represented by NNN (octal)
Echo-e "\033[43;31mzhangx\033[om" 650) this.width=650; src= HTTP://S2.51CTO.COM/WYFS02/M00/84/90/WKIOM1EU3I2WSXQC Aaalt1s6nj8847.png "title=" Kg{c4212_rkow_%%ronpztc.png "width=" 490 "height=" "border=" 0 "hspace=" 0 "vspace=" 0 " Style= "WIDTH:490PX;HEIGHT:36PX;" alt= "Wkiom1eu3i2wsxqcaaalt1s6nj8847.png"/>
This article from "10482168" blog, declined reprint!
Basics of getting Started with Linux