Common commands for getting started with Linux

Source: Internet
Author: User

    1. echo Usage Notes

Echo is used to display a line of a document.

Echo-n the last line of characters not being wrapped


650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/84/96/wKiom1eVrGziEfYgAAAFkFC2raM458.png-wh_500x0-wm_3 -wmp_4-s_2489140328.png "title=" Qq20160725140548.png "alt=" Wkiom1evrgziefygaaafkfc2ram458.png-wh_50 "/>

ECHO-E when the following characters appear in a string, do not treat him as a general character, but rather as a special processing

\a Alarm Sound

\b Backspace key

\c End With line break

\ nthe line break

\ \ Insert \

\0*** Insert Octal number * * = ASCII character

\x** Insert 16 Binary * * represents ASCII characters


Job one using echo to implement anti-pyramid models with underlined and flashing

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/84/97/wKiom1eVsQCxXwwxAAAFnukZm5w967.png-wh_500x0-wm_3 -wmp_4-s_695871260.png "title=" 1.png "alt=" Wkiom1evsqcxxwwxaaafnukzm5w967.png-wh_50 "/>

Related Uses of 2.screen

When a job is running, can the user wait? Users can use Nohup to put the current job in the background, this function screen can also be implemented, and screen can also achieve remote control

Screen-s Sidaession Creating a screen session

Screen-x session joins to screen sessions

Ctrl+a+d temporarily stripping the current screen session

Screen-r Resume Screen Session

Exit and close the screen session

Screen-ls viewing a session that is currently open


3.date and Hwclock related usage

Date used to modify or display the system time

(1) date-d "string" to display time according to string setting

Date + format displays time by format setting

Common format has the following

%d shows month number of month

%d Month Day year

%H 24-hour binary

%m Month

%M Number of minutes

%u weeks

&y year

Job two shows 10 days ago and 20 days after the month day

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/84/97/wKioL1eVtp7iyk2VAAAGqT3n7cQ216.png-wh_500x0-wm_3 -wmp_4-s_2311315520.png "title=" 2.png "alt=" Wkiol1evtp7iyk2vaaagqt3n7cq216.png-wh_50 "/>

Date +%y/%m/%d display time by year/month/day

Date-d " -10 days" showing 10 day ago time

Date-d "+10 days" show 10 day Time

Date-d "Last Friday" shows the previous Friday

(2) Hwclock Display hardware time

Hwclock--hctosys Adjust the system time to the hardware time

Hwlock--SYSTOHC The hardware time, whichever is the system time


4.enable can be used to disable internal commands

Hash is used to cache external commands into KV storage

Type to see whether it is an external command or an internal command

(1) enable-n * * Disable internal commands

Enable * * Enabling internal commands

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/84/98/wKiom1eVvMDj9qWyAAAIqeTT1D0254.png-wh_500x0-wm_3 -wmp_4-s_589477705.png "title=" 1.png "alt=" Wkiom1evvmdj9qwyaaaiqett1d0254.png-wh_50 "/>

(2) Hash-r Delete all KV cache

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/84/98/wKiom1eVwBuyi56rAAAH19lTaTY639.png-wh_500x0-wm_3 -wmp_4-s_2523507565.png "title=" 5.png "alt=" Wkiom1evwbuyi56raaah19ltaty639.png-wh_50 "/>

HASH-D Delete the specified cache

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/84/98/wKioL1eVv-3RNY64AAAKR4-axKk855.png-wh_500x0-wm_3 -wmp_4-s_2083228067.png "title=" 4.png "alt=" Wkiol1evv-3rny64aaakr4-axkk855.png-wh_50 "/>


5.Ascii Character Tabulation

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/84/98/wKiom1eVvjXBQ-PXAAlX3Kc92R8701.png-wh_500x0-wm_3 -wmp_4-s_4114757182.png "title=" 3.png "alt=" Wkiom1evvjxbq-pxaalx3kc92r8701.png-wh_50 "/>

6. Double quotation marks are weak references, with variables, they are to be replaced

Single quotes are strong references, with variables, not replacements

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/84/99/wKioL1eVwqvj_yH9AAAH5XuU220795.png-wh_500x0-wm_3 -wmp_4-s_1735318025.png "title=" 7.png "alt=" Wkiol1evwqvj_yh9aaah5xuu220795.png-wh_50 "/>

Summary: Encountered do not know the command, first to see the man Help file, followed by Baidu Search, the final group with others

This article is from the "Hello" blog, so be sure to keep this source http://tianzhi.blog.51cto.com/11880607/1829684

Common commands for getting started with Linux

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.