RHCE path-Basic Linux commands

Source: Internet
Author: User
Today is the second day of my Linux training during the summer vacation. This article was written on the first day because I was busy. Let's talk about my experiment environment. I use the XP system, VMware6.0, And I installed RedHatEnterpriseLinux5.0 (RHEL5.0) on the virtual machine. It feels good, and our teachers are very good. Lesson 1: I spoke about the past and present Linux and some basics of Linux. Next, let me briefly introduce what the teacher said today: Linux

Today is the second day of my Linux training during the summer vacation. This article was written on the first day because I was busy.

Let's talk about my experiment environment. I use the XP system, VMware 6.0, and Red Hat Enterprise Linux 5.0 (RHEL5.0) on the virtual machine)

It feels good. Our teachers are very good.

Lesson 1: I talked about Linux's past and present and some basics of Linux.

Let me briefly introduce what the teacher said today.

Linux is an open-source and free operating system. We all know Windows, but we don't know that Linux is a very good operating system. With Windows, we have to pay for it and it is very expensive, but Linux is completely free, and the source code is completely open. We can get such a very good operating system with almost no penny, which is really great for users. Linux is based on Unix, so there are many and powerful Linux commands, but it is precisely because of this that many Linux users are blocked, now few people are willing to operate those black and white screen interfaces.

After all, Linux is a very good operating system and it is worth learning for a while.

Next, I will briefly introduce some simple Linux commands.

# Ls -- this command is most commonly used. Its function is to list all directories and files under the current directory. The common attributes of these directories and files are also listed.

For example, if we want to list all directories and files under the root directory, we can

# Cd/

# Ls

That's all. This command also has many parameters to correct and supplement the command,

For example,

-A: List all files, which are listed together with hidden files (Files starting.

-A: All files are listed together with the hidden files, but excluding the directories "." and.

-D: only list the directory itself, not the files and data in the directory.

-F: directly list the results without sorting them (by default, ls will be the ranking of file names ).

-F: attaches Data Structures Based on files, directories, and other information, for example:

*: Indicates executable files;/: Indicates directories; =: Indicates socket files; |: Indicates FIFO files.

-H: list the file sizes (such as GB and KB ).

-I: List inode locations, not file attributes.

-L: Lists long data strings, including object attributes.

-N: Lists uid and gid, not the names of users and user groups,

-R: returns the reverse sorting result. For example, the original file name is from small to large, and the reverse is from large to small.

-R: It is listed together with the sub-directory content.

-S: sort by file size.

-T: sort by time.

# Cd -- switch Directories

You can directly use this command to go to a directory.

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.