Linux Basic Command-echo

Source: Internet
Author: User

echo command
Function: Display text
Syntax: Echo [-nee][string]
Description: Echo will send the input string to standard output. The output strings are separated by white space characters, and a newline number is added at the end.
Double quotes can only recognize variables (weak references), single quotes do not recognize anything (strong references), and inverted single quotes recognize commands and variables
-N Do not wrap in the last line
-E If the following characters appear in the string, they are handled in particular, rather than as general text output:
\a issued a warning sound
\b Backspace key
\c Finally, no newline symbol is added.
\ n Wraps and the cursor moves to the beginning of the line
\ r The cursor moves to the beginning of the line, but does not wrap
\ t Insert tab
\ \ insert \ Character
\onn insert ASCII character represented by NNN (octal)
\XHH Insert the ASCII character represented by the HH (hexadecimal)
Example: Echo-e "*\c" equivalent to Echo-n "*"


ls command
Description: Hidden files are not displayed by default
-A: Show All files (including hidden files)
-L: Show additional information
-r: Directory recursion through
-1: Display in one column
-ld: Directory and Symbolic link information
-S: Sort by column by file size from left to right
-SL: Row by size from top to bottom
-H: Sort LIKE-SLH in an easy-to-read manner
-U: Sort the last time the file was accessed
-U: Sort by disk order
Example: [[email protected] ~]# LS-U1
-X: Sort by extension
-I: Index information for the I node of the output file

This article is from the "Hehelinux" blog, make sure to keep this source http://hehelinux.blog.51cto.com/11704329/1787935

Linux Basic Command-echo

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.