Linux early recognition

Source: Internet
Author: User

1. Virtual Machine usage
[[email protected] desktop]$ rht-vmctl start Desktop (open Desktop virtual machine)
[[email protected] desktop]$ rht-vmctl view Desktop (Show Desktop)
[[email protected] desktop]$ rht-vmctl poweroff Desktop (Close dekstop)
[[email protected] desktop]$ rht-vmctl reset Desktop (reset virtual machine)
Is sure you want to reset desktop? (y/n) Y (asks if reset y means yes)

2. Login
A normal User Login
Student Ordinary user, password student
B Super User Login
->not listed Click Not listed
Username Prompt for user name
->root root for System super User
passwd prompt to enter a password
->redhat Redhat is a super user password

3. Set Chinese input
Applications System Tools Settings region & Language Language
or enter a command

4. Line prompt
650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/9C/0F/wKioL1lrg6Kx5sDFAAAU4aNu1Xo418.jpg-wh_500x0-wm_ 3-wmp_4-s_3859983686.jpg "title=" 4.jpg "alt=" Wkiol1lrg6kx5sdfaaau4anu1xo418.jpg-wh_50 "/>

[[email protected] desktop]$
Kiosk (user who opened the shell)
@ (delimiter)
Foundation0 (host name)
Desktop (working directory name)
$ (Identity prompt, #表示超级用户, $ represents a normal user)

5. Switch User
[[email protected] desktop]$ su-username
Advanced user Switch to low-level user does not require a password, Low-level user Switching to advanced or peer switching requires a password, no echo

6. Virtual Console
Ctrl+alt+f (1|7) into graphics
Ctrl+alt+f (2~6) into the Virtual Console
 

7. Version
Red hat Enterprise Linux Server 7.0 (Maipo) # #系统版本
Kernel 3.10.0-123.el7.x86_64 on an x86_64   # #内 Kernel version, number of system bits

8. Execution of the command
A command must be entered after the line prompt
B command format
Command parameter target
C. Command parameter
-parameters    Word abbreviation –h
--parameters   Full spelling of the word--help

9. Help for the command
Whatis command (View command's function)
Command--help (View command's Help)
[]  (opt-in to add-on)
... (Any number of content added)
<>  (content must be added during command execution)

10. Start Bash
1.applications>utilities>terminal
2. Right mouse button----->open in terminal
3.gnome-terminal
4.ctrl+shift+n (open shell in new window)
  ctrl+shift+t ( Open a new tab in the same window)
5. Exit: Exit | ctrl+d

11. System shutdown, restart
Restart
Reboot | Init 6 |shutdown-r now
Shutdown
Poweroff | Init 0 | Shutdown-h now

12. Lock screen
Ctrl + Alt +l       # #在rhel7.0
Win key + l  & nbsp;    # #在rhel7.2

13.date
Watch-n 1 Date (Let the date command execute once per second, CTRL + C launches monitoring mode)

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/9C/0F/wKiom1lrg7ThXhXlAABp2tStDU4954.png-wh_500x0-wm_ 3-wmp_4-s_2390946898.png "title=" Shijian.png "alt=" Wkiom1lrg7thxhxlaabp2tstdu4954.png-wh_50 "/>
Date 12180117 (Set the system time to December 18 01:17 format: Every hour of the month)
Date 111811152017.55 (2017 indicates year (can not be added). 55 = seconds (can not be added))

-D +xday-xday (check the time before or after x days)

14.PASSWD Modify User Password
[Email protected] ~]# passwd
New Password: (Enter password)
Retype New password: (Confirm password)
passwd parameter User name
-S student (user password information)
--status student ...
-L Student (lock account)
-U student (Unlocked)
-N 1 student (set password minimum validity period)
-X Student (set password maximum validity period)
-W 3 Student (warning period)
-I 2 student (set user inactive days)
-D student (clear user password)
Monitoring passwd Password Information
Watch-n 1 passwd-s Student
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M01/9C/0F/wKiom1lrg8WwQnXrAAAk-kfXBn0053.jpg-wh_500x0-wm_ 3-wmp_4-s_1703572526.jpg "title=" pass.jpg "alt=" Wkiom1lrg8wwqnxraaak-kfxbn0053.jpg-wh_50 "/>15.file
File name (view file type)

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/9C/0F/wKioL1lrg9PgjgXCAAAk-kfXBn0088.jpg-wh_500x0-wm_ 3-wmp_4-s_1676465320.jpg "title=" file.jpg "alt=" Wkiol1lrg9pgjgxcaaak-kfxbn0088.jpg-wh_50 "/>
16. Viewing of files
Cat filename (Displays the full contents of the file)
Less file (paging browse, press "Q" to exit)
Head filename (shows the first few lines of a file)
Head-n 5 filename (former five elements)
Tail filename (shows the file after a few lines)
Tail-n 5 filename (shows the last 5 lines of a file)

17.WC Statistics File capacity information
Wc-l Number of rows
-W Words
-C byte number
-M character Count

18.tab Key
The table key in the system can automatically complement the existing command, the file name and the parameters of some commands

A+tab x2 Show All commands in a system

19.history history
History (show historical)
Hostory-c (clears historical commands in the current environment)
! Number (execution number of lines command)
! Letter (Executes the most recent command that starts with this letter)
CTRL +R + keyword (executes the most recent command that contains this keyword)
Up and down keys (line-by-row Invoke command

Shortcut keys in 20.linux
Left and right (one character moves one character)
CTRL + Around (a word moves one word)
CTRL + A (cursor moves to the beginning of the line)
+ E (cursor moves to end of line)
+ U (the cursor position is deleted to the beginning of the row)
+ K (the cursor position is deleted to the end of the line)
+ r+ keyword (bring up the most recent command with a keyword)
+ C (undo to enter the command)
+ d (Close current environment)
+ L (empty screen)
+ SHIFT + C (copy)
+ SHIFT + V (paste)
+ SHIFT + t (reopen a table in the existing shell)
+ SHIFT + N (opens a new shell in the shell)
+ SHIFT + pageup|pagedown (toggle table)
+ ALT + L (lock screen)
+ ALT + up | Down (toggle work interface)
+ ALT + F1|F7 (enter the graphical interface)
+ ALT + F2-F6 (enter Virtual Console)



Today is here, write more coarse, I hope I can master, for tomorrow to write more detailed!


Linux early recognition

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.