How to Learn Linux commands and tools

Source: Internet
Author: User

How to Learn Linux commands and tools? I believe this is a headache for many Linux beginners and enthusiasts. It is also a problem I have been thinking about. Because I also hope to learn Linux commands and tools more easily. The following are some of my thoughts.

0. Install a Linux version

Although tools like cygwin are provided in Windows to simulate UNIX environments and utilities, isn't it better to taste the original flavor? The most important thing is to have a real atmosphere.


1. Discard the mystery and fear.

A. Linux commands are just a reliable small program for specific purposes;

B. Linux commands provide a variety of options to control their behavior to produce a variety of effects and flexibility. However, there are not many common options to be mastered.

In short, you need to know two things: what it is used for, and what common options are available and applicable. In the initial stage, you do not have to be greedy for perfection.

 

2. Pass the three items

A. English barrier. Good documentation and help information are written in English. Therefore, to pass the English language, at least to the level of proficiency in reading; as long as there is a high school English level and a Chinese-English dictionary is enough;

B. Obstacles to understanding. To learn Linux commands, you must understand their usage and usage. Sometimes, basic computer professional knowledge is required to understand and use the meaning and purpose of the tool;

C. Mental Disorder. Most Linux commands provide N multiple options, which is often confusing. Therefore, be patient, careful, and calm. Explore with a spirit of exploration.

If we can overcome the above obstacles and difficulties, we believe it will benefit a lot. Think of it as a challenge and an opportunity for progress.

3. Several criteria

A. First, master the most common commands and frequently used options, and do not greedy for perfection; Master regular expressions;

B. Learn from simple commands with fewer options and gradually complicate them. Of course, you can also conquer the most difficult ones first;

C. One command every day;

D. Related command association learning, such as which, whereis, type, locate, find.

4. Several tips

A. Man, info, -- help,-H, see help information;

B. Man-K keyword; apropos Keyword: view related commands Based on keywords;

C. Use a text file;

D. Good at decomposing tasks into several simple subtasks;

E. Master pipelines and IO redirection;

5. Command learning steps

S1: Man cmd or cmd -- Help first understand its basic usage;

S2: Read the options, practice them, and understand the meaning of the options. I want to figure out why the author wants to design these options;

S3: Think about what needs and application scenarios are most commonly used for its purpose;

S4: Use this command (or combine other commands) to solve the problem;

6. Find a good reference book

We recommend the shell script Learning Guide. This book is very practical. It is not based on the syntax, from the very beginning focused on common Linux standard tools and script writing skills. It is recommended that you first find a simple getting started book and read this book. It is suitable for users who have a thorough understanding of Shell and hope to systematically learn and use shell. I think it is really cost-effective to buy this book.

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.