Article three: basic Linux operations and file management (Pure command line mode) (top)

Source: Internet
Author: User

Compare with Windows to introduce Basic Linux operation methods and file management! (in pure command-line mode, why do you want to emphasize the command line?) Because at the end of the second I explained that almost all operations are done on the command line .

    Why do you want to compare it with Windows? because I was learning Linux when the whole brain completely without its concept, has been thinking of Linux "C disk, D disk" where? How to install and uninstall some programs? How do I create a folder and create a document? (In fact, the Linux and Windows comparison learning method is very unscientific, but I stupid people have a stupid way to Bai, so learn the method I feel very fast, once you get started with Linux slowly you understand, Linux and Windows is not a path at all. )

It is a good thing to have the above questions, so the rest is simple, just to find out what's going on!

    first understand the Linux "C Disk" where, open My computer in Windows can see a few disk characters (c disk D, etc.), and then each partition can be put a lot of files. and open the file after the window address bar will write the path of the file, such as: D:\AV\XXX1.RMVB. Again on Linux, because of its "origin" and other reasons. So Linux has its own file directory standard (FHS), and in Linux, these partitions are managed in the form of files. Under Windows we can easily partition, but Linux has a clear specification, the following is the introduction of Linux file system are those specifications.

      FHS as a file directory standard for Linux, it regulates the directories under the root directory should be put what kind of files, such as: specified in/etc directory should be put configuration files,/bin used to put executable files. Then you can think of the root directory (the "/" symbol) as C-Disk . If you really do not understand it is OK, I will write a special introduction to this thing, now as long as understand a little situation on the line. Send a Linux file structure to see (Figure 1).

(third, figure-1)

(third, figure-2)

The mount point is actually the entry directory for the disk file system in Linux, similar to the C:, D:, E:, and so on, that are used to access different partitions in Windows. Linux partition, the reason why everyone headaches, because it is not to each partition, assign a "C D E This type of drive letter", but through the specific folder name, to "Mount", the function of the distinction. In fact, everyone in the subconscious, understand the meaning of these mount points, on the line. Instead of thinking about Windows, the partition has to have a C D E drive letter.

Then we'll solve the problem of how to manage software in Linux system .

First open the SSH client . Then we connect the Linux in the virtual machine, then we use RPM to manage the software in the system, what is RPM? This article does not elaborate, I just briefly introduce the use of RPM, we can use the rpm command to install, delete, query and other related operations.

For example, the above command: Rpm-qa means to list all installed packages, but I added a filtered "action" later.

So it lists all the packages with the name Li.

But this paragraph does not mainly introduce the use of the RPM command, because I think it is very difficult to use! At least it's a bad time to install the software.

We use Yum (← Click to see what Yum is) to manage the software (query, delete, install).

The above Yum command means to list the RPM packages that have the MySQL start name installed

Now we delete this package: Yum Remove mysql-libs.i686

The above command is to delete the mysql-libs.i686 software package.

We'll install it back: Yum install mysql-libs.i686

To summarize, I believe that you will now have to query, delete, install the software through Yum? It's like you usually use Windows to see what software is on your computer, remove the software, and install the software. That's basically the way it is. Of course there is the configuration of MySQL operation, I will write a special later.

========== wrote here today to the end, this is "basic operations and file management of Linux (Part One)" ===========

Simple basic operational knowledge of Linux I will introduce you in the (next) chapter.

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.