A simple way to learn commands in a Linux system

Source: Internet
Author: User

If you say how to quickly learn and understand Linux , my answer is to learn command, back command! Why is it? For a novice, to learn the idea of Linux , understand the architecture of Linux, understand the "All Files" concept in Linux , although there is no mistake. , is right. But personally think that to learn these "tall" things are not 1:30, it takes a certain amount of time and experience to be able to grasp the precipitation. So how do you get to know Linux the most quickly and use it? I still feel that learning to command, command, command is a stupid but relatively fast way.

650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M02/92/24/wKioL1j8cYbhxmNwAAKGlfzt-L4362.png-wh_500x0-wm_ 3-wmp_4-s_4102090814.png "title=" image 1.png "alt=" Wkiol1j8cybhxmnwaakglfzt-l4362.png-wh_50 "/>

I started to learn Linux , asked the elder: I get started Linux need to master what commands? Predecessors said: "You master The five non-repetition of the command is almost a primer." All right! I followed this to the Internet to find the relevant order information. The command is divided into file directory, hardware monitoring, software network, System management four major categories, of course, is not standard, I just simply categorized so as to form a structure, to help memory. This article simply tells the command, the specific parameters can see the following learning methods. You can look at the online "Linux should be so" introduction of the second chapter of commonly used commands, although not many, but can first back also has a great use. Space is limited, this time to explain the directory class commands, and other later write.

commands are basically the same for most formats, and some command parameters are two or more: command Options Parameters

Three x W:

Whereis: The path of the binaries, source code files, and man manual pages used to locate instructions .

Whatis: is used to query what function a command performs and prints the results of the query to the terminal.

Which: used to find and display the absolute path of a given command, the environment variable path holds the directory that needs to be traversed when the find command is saved. the which directive looks for eligible files in the directory where the environment variable $PATH set. These three commands are useful to find command locations, environment variable configurations, or to understand the brief information available.

Directory class:

CD: switch user's current working directory, if the directory name is omitted, then transform to the consumer's home directory ~ home directory

ls: used to display the target list, Linux system is a command with a higher usage rate. The output information of the LS command can be colored and highlighted to partition different types of files.

MV: used to rename a file or directory, or to move a file from one directory to another. The first parameter represents the source file or directory, and the second represents the destination file or directory. If you move a file to a target file that already exists, the contents of the destination file are overwritten, and you can specify that the option is ignored.

CP: used to copy one or more source files or directories to a specified destination file or directory. It can copy a single source file into a specific file with a specified file name or a directory that already exists.

pwd: Displays the user's current working directory as an absolute path. command to write the full path name of the current directory (from the root directory) to standard output.

RM: You can delete one or more files or directories in a directory, or you can delete a directory and all of its subordinate files and subdirectories. For linked files, only the entire linked file is deleted, and the original file remains unchanged. ( use with caution )

mkdir: used to create a directory. If no pathname is added before the directory name, the directory specified by DirName is created under the current directory, and if an existing path is given, a specified directory will be created under that directory.

rmdir: used to delete empty directories. When the directory is no longer in use, or if disk space has reached the usage limit, you need to delete the directory where the value is lost. Use the rmdir command to remove one or more empty subdirectories from a directory.

File class:

Find: used to locate files under the specified directory. Any string that precedes the parameter will be treated as the name of the directory you want to find. If you use this command without setting any parameters, the Find command looks for subdirectories and files under the current directory.

Locate: find-name is actually another way of writing, but much faster than the latter, because it does not search the specific directory, but rather search a database /var/lib/locatedb, This database contains all the local file information.

Mans: followed directly with the command, such as man ls to enter, will display The information about LS, this page is called the Man page help manual.

These commands, basically include the common directory-related commands, let's say how to learn commands, back commands. Generally a command will have many options, each of which has a different meaning, for beginners I think it is necessary to master the 3-5 options commonly used in this command , and many of the options expressed below the command are the same meaning. It's not difficult for you to find out the law first.

In fact, no matter what to learn, perseverance to see the results, these commands may be you down ten minutes to master, but need to constantly practice, use, in the brain to form a permanent memory is the best effect. The students who feel this Linux command is not enough can look at the http://www.linuxprobe.com/chapter-02.html.


This article is from the "blog" blog, please be sure to keep this source http://coderhsf.blog.51cto.com/12629645/1918620

A simple way to learn commands in a Linux system

Related Article

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.