Linux Learning Notes

Source: Internet
Author: User

1. Common Command Record

ls: Lists the files and directories in the current directory
   -al: Lists all file directories, including hidden files (. Start)
Date: Displays the current date and time
   +%y/%m/%d: Displays the current date in 2011/01/01 format
   +%h:%m: Displays the current time in 12:00 format
Echo $LANG: Explicit current system supported languages
Lang=en_us: Modify the language supported by the system (ZH_CN: Chinese, en_US: English)
Cal: Show Calendar
No parameter: Show Calendar of the month
(year): Displays all calendars for one
(Month year): Displays the calendar for a month in a
BC: Calculator, enter calculator environment
   scale=3: Indicates that 3 is displayed as a decimal
   quit: Used to exit the calculator environment
[TAB]
Press two times after the command: Show all commands that begin with a * command completion
File is pressed two times: show all files that begin with * "File completion" (Error)
File is pressed once: auto-complete file name
[Ctrl]-c: Interrupt Command execution
[ctrl]-d: Indicates end of keyboard input, or exit text interface (equivalent to exit)
Mans: Online query command function, enter the man environment
   Q: Exiting the man environment
Nano: Nano text Editor
File name (with suffix): New or open the specified file
W.H.O.: View Online users
Netstart: Network Commands
   -AView Network Online Status
PS
   -aux: View programs executed in the background
shutdown: Shutdown command
   - T sec: Power off after a number of seconds
   - k: Send warning message, not true shutdown
   - R: Restart the system after the service is stopped (common)
   - H: Shut down the system after the service is stopped (common)
   - N: Shuts down directly with shutdown function without the INIT program
   - F: A disk check that forces a bypass of fsck after shutting down and powering on
   - F: Force a disk check for fsck after a system reboot
   - C: Cancels the contents of the shutdown command already in progress
   Time: Specify shutdown time (required)
     Now: Represents a time of 0, indicating the current
     20:23: Indicates the specific time
     +10: Say 10 minutes in a second.
Sync: Write data to disk synchronously, shutdown command shutdown call this command, but to be safe, you can call sync multiple times before executing the shutdown command to write in-memory data to disk save
reboot: Restart command
Halt: Shutdown command
Poweroff: Shutdown command
   - F: Force shutdown, do not invoke shutdown command, hardware shutdown
Init: Toggle System Operating mode
   [0-6]: A total of seven operating modes are available for switching

(not to be continued)

Linux Learning Notes

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.