Basic Commands

Want to know basic commands? we have a huge selection of basic commands information on alibabacloud.com

Linux file and directory operations basic commands: grep command

The grep command is useful for locating a specified string in a file. For example, if you want to find every place in the Sneakers.txt file that mentions "coffee," You can type: grep coffee sneakers.txt You will see each row with "coffee" in the file.

Linux file and directory Operations basic commands: Head command

You can use the Head command to see the beginning of a file. This command is: Head <filehttp://www.aliyun.com/zixun/aggregation/11696.html ' >name> Head is a useful command, but since it is limited to the first few lines of the file, You can't see how long the file actually is. By default, you can only read the first 10 lines of the file. You can change the number of rows to display by specifying a number option ...

Linux file and directory Operations basic commands: Clear command and Cat command

The clear command clears the terminal window. Cat is a shorthand for concatenate (chain), meaning merging files. This command can display the contents of a file (often used with more), or combine multiple files into one file.

Linux file and directory operations basic commands: CD command

cd command to change the working directory. For example: the command function CD ~ will send you back to your login directory CD/Take you to the root directory of the entire system cd/root take you to the root user's home directory; You must be a root user to access the directory Cd/home take you to the home directory where the user's login directory is usually stored on CD. Move up one level directory Cd/dir1/subdirfoo no matter which directory you are in, this absolute path will take you directly to Subdirfo ...

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.