Linux Basic Command Introduction-1

Source: Internet
Author: User

due to work needs , recently reviewed the basics of Linux, read the Marco video, listen to listen, or do a note, deepen the impression it. Share the knowledge points of learning.


About choosing a release, personal preference for CentOS, fully compatible with Redhat, in fact, the only difference between the two is a free, a collection of service fees, the others are the same, the name is different.


Magosan said that the philosophy of Linux is: all documents. Remember in the heart is good! Ha ha!


Linux File system:

1. File name names are strictly character-sensitive: File1,file1,file1 represents 3 different files.

2. Filenames can use any character except/, but special characters ( including spaces ) are not recommended

3. The file name cannot exceed 255 characters.

4. The file starting with. is a hidden file, but there are two special:

.: Represents the current directory.

.. : The top level directory of the current directory.

Example:/etc/sysconfig/

.: Indicates Sysconfig

.. : Indicates/etc


Before you talk about Linux basic commands, let's look at the two types of directories that are commonly spoken in Linux:

1. Working directory: Working directory

2. Home directory: Home


With this understanding, the first command came:


Pwd


To be honest, the first time you approached this command, personally guess this should be a shorthand for password? In fact, the command name rule of Linux is actually the abbreviation of the word. For example, this PWD command, in fact, is the abbreviation of print working directory, from the literal meaning we can also understand that the function of this command is to print or display the current working directory, to see the real effect.

/home/mylab This is my current working directory.

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/8E/53/wKioL1i9fG2zV_PsAAAIV6sINJw968.png-wh_500x0-wm_ 3-wmp_4-s_2959737446.png "title=" 2017-03-06_231222.png "alt=" Wkiol1i9fg2zv_psaaaiv6sinjw968.png-wh_50 "/>


Next, here's a simple command:


Cd


cd = Change directory, which is literally understood, is changing the table of contents. Since the directory is changed, then it must be followed by parameters, that is, which directory do you want to change to? That is, the destination directory is where to see how the effect.

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/8E/55/wKiom1i9fzbxnp9BAAAOtqMtY3A111.png-wh_500x0-wm_ 3-wmp_4-s_322552262.png "title=" 2017-03-06_232411.png "alt=" Wkiom1i9fzbxnp9baaaotqmty3a111.png-wh_50 "/>

Explain:

    1. PWD Review the previous command, print out the current working directory, Mylab is my username. So I am currently in my home directory.

    2. cd/etc/sysconfig/This command is to switch from the current directory (/home/mylab) to the/etc/sysconfig directory.

    3. PWD Prints the current working directory and has successfully switched.

    4. There is no parameter after the CD, will there be an error? The answer is no error, actually look at the $ sign to the left [] inside know, has switched directories, then switch to where?

    5. PWD to see, is my home directory, that is, CD this command, can not take any parameters, this time is directly from the current working directory switch to my home directory.


Well, write it down today! Continue to update tomorrow.






This article is from the "bitter Siege Master's Notes" blog, please be sure to keep this source http://jiaszwx.blog.51cto.com/10565760/1903789

Introduction to Linux basic commands-1

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.