Bird's-brother Linux private Cuisine basics

Source: Internet
Author: User

1) Logout: Exit
2) The instruction is too long: when the command is too long, you can use the backslash (\) to jump off the [Enter] symbol so that the LED order continues to the next line
3) System language display and settings
Command: Echo $LANG, display the current system language: Simplified Chinese zh_cn. UTF-8
Command: Lang=en_us set the language to English, LANG=ZH_CN. UTF-8 set Language to Chinese
4) Command: Date display time
Display by format: Date +%y/%m/%d 2016/09/05
Date +%h:%m 17:32
5) Display the calendar:
Show Current Month: Cal
Show full year calendar: Cal 2016
Show the month of the year: Cal 05 2016
6) Command: Enter bc,10+3 separately
Leave calculator: Quit
7) Hotkey: Tab,ctrl+c,ctrl+d
Tab: Command completion, file full function
Ctrl+d: Can take the place of exit, also the meaning of EOF (keyboard input end)
8) Linux System online Help man page and info page
Press 2 tab to see how many instructions are available for the current account
Man date online to see how date is used
9) Use of the man page
Mans tar
-bash:man:command not found
[Email protected] ~]# Whereis man
Man:/usr/share/man
[[email protected] ~]# Yum install man
Man xxx After the space can be page, q can leave the man environment
Man code content
Mans tar
1. Commands that users can manipulate in the shell environment
3. Some common functions and function libraries, most of which are C (libc)
8. Administrative instructions available to system administrators
This table can be described in more detail using Man 7 mans.
Shortcut keys:
Use/search content to search down the man page content
Use the search contents to search for the man page content
SPACEBAR or PAGE down to page down
Page UP, paging up
Home, go to the first page
End, go to the last page
N,n when using/or?, you can use N or N to continue searching
Command: Man-f man can view more information related to man (format: man-f directive)
Man (1)-format and display the on-line manual pages
Man.config [Man] (5)-Configuration data for Mans
Man [Manpath] (1)-format and display the on-line manual pages
Can be based on this table, using the man 5 man and man 1 man command
If you enter man man, it will be displayed according to the order of the records in/etc/man.conf.

Find out the system's documentation, as long as there is a man this keyword to list the description
Command: Man-k man
Command: Whatis [instruction or data] equivalent to man-f "instruction or data"
Command: Apropos [instruction or data] equivalent to man-k "instruction or data"
Note that these 2 special instructions can be adapted to the need to have a Whatis database set up, how to build:
As Root:
Command: Makewhatis

The use of Info page (another method of online help)
N,p,u can go to the next, previous, and previous nodes (node)
Space, PAGE Down
PageDown, PAGE Down
PageUp, PAGE Up
tab, move between node, where node is displayed with a *
Enter, when the cursor is over node, press ENTER to enter the node
b, move the cursor to the first node in the info screen
E, move the cursor to the last node in the info screen
S (/), search in info page
H, Show Help menu
?, instruction List
Q, the end of this info page

11) Other Documents
/usr/share/doc

12) Text Editor: Nano
Command: Nano text.txt
If not installed: Yum install Nano
Installed: nano.x86_64 0:2.0.9-7.el6
A few key key combinations are more important:
[Ctrl]-g: Get online Help, Path useful!
[Ctrl]-x: Leave the Nano software, if you have changed the file will be prompted to store Oh!
[Ctrl]-o: Save the file, if you have permission, you can save the file;
[Ctrl]-r: Reading from other files, you can attach the contents of a file to this file;
[ctrl]-w: Search string, this is also the path of a poor led order Oh!
[Ctrl]-c: Description of the current cursor where the number of rows and other information;
[Ctrl]-_: The line number can be entered directly, so that the cursor corporate to the line;
[Alt]-y: Correction astonished function open ring off (click on, then click Off)
[ALT]-M: The ability to support the mouse to move the cursor

The correct shutdown method for Linux systems
1. View system usage status, command: WHO
2. View Network online Status, command: Netstat-a
3. Look under the background program, command: Ps-aux
4. The use of shutdown instructions can give the online user time to end their work (idiomatic)
5. Restart, shutdown: Reboot,halt,poweroff
6. Write the data to the instructions in disk: Sync (This command is best performed several times before shutting down or restarting, always)
Although the current Shutdown/reboot/halt and so on led order are already in the shutdown before Import line sync This tool call, but do more than a few times more comfortable

Shutdown)
To learn how to use the method, man shutdown
Command:/sbin/shutdown-h ' I'll shutdown after ten mins '
Time is the parameter that must be added, otherwise shutdown will automatically jump to run-level 1 as a maintenance log-in situation
Example: Shutdown-h now shuts down
Shutdown-h 20:25 shut down at a certain time, if the time is past, it will be shut down at this time tomorrow.
Shutdown-h +10 shuts down in 10 minutes.
Shutdown-r now system restarts immediately
Shutdown-r +30 ' The system will reboot ' restarts in 30 minutes and prompts everyone to shut down
Shutdown-k now ' This system will reboot ' only warns, not really shutting down
Use: Sync;sync;sync;reboot
Halt can shut down the hardware without regard to the current system condition.
Poweroff-f
Shutdown-h now

Bird's-brother Linux private Cuisine basics

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.