Linux calendars, calculators, nano editors, switches, reboots,

Source: Internet
Author: User

1. View all hidden directories under the file:ls-al

2. Displays the date of month: Date +%y/%m/%d or Date +%y/%m/%d

3. Display this month's calendar: Cal

Show Calendar of a year: Cal 2017

4. Calculator: BC

5. Hotkey: Tab CTRL + C CTRL+D
TAB: Command completion
CTRL + C: terminating programs
Ctrl+d: Keyboard input end meaning, can replace the input of exit.

6. Super Simple text editor: Nano
Linux also drink a lot of text editor exists, our most commonly used is the VI, in fact, there are quite a very good text editor exists, here first say nano text editor.
Nano is easy to use you can open an old file or a new file by simply adding the file name.
Nano Test.txt Test.txt There is no relationship, if present, will open the old file, if not present will open the new file
After you enter the Nano, there are a lot of command instructions.
CTRL +g: Get online Help Group
Ctrl +x: Leave the Naon software, if you have modified the file, you will be prompted to save
CTRL +o: Save the file, if you have permission, you can save the file
CTRL +r: Reading from other files
CTRL +W: Query string
CTRL +C: Describes the number of rows and columns information at the cursor location
CTRL +_: You can enter the line number directly, so that the cursor directly to the row
ALT +y: Correction syntax
Alt +m: The ability to support the mouse to move the cursor

7. Correct shutdown method
Ps-aux viewing programs running in the background
Netstat-a viewing the online status of a network
Who view current who online
Customary shutdown command: shutdown
Restart shutdown: Reboot halt Poweroff
Shutdown-h now immediately shuts down the machine
Shutdown-h 20:25 Eight o'clock 25 minutes off
Shutdown-h +10 shutdown in 10 minutes
Shutdown-r now reboot
Shutdown-r +30 ' The system will reboot ' in another 30 minutes, and the following message is displayed to the online user
Shutdown-k now ' This system will reboot ' warns not to shut down

Linux Calendar, calculator, nano Editor, switching machine, restart,

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.