"CentOS" commands (LS,CD) and shortcut keys, and a very important directory structure

Source: Internet
Author: User

First, the command shortcut keys

1. Command ls

-l List Details

-A lists all files (including hidden files)

-D View Directory permissions

-T in chronological order (this is usually used in operations, can be based on the most recently modified directory to troubleshoot errors)

2. Command Cd--change Directory

CD-Returns the last directory

CD ~ Return to home directory-/root for root user,/home/user name for normal users

Cd.. Go back to the top level directory

Cd. Returns to the current directory (that is, no move = =)

Use PWD to view the current directory (which you will continue to say later)

3.PATH

To add a command to the path method:

Path= $PATH:/tmp (note that the PATH here is actually a variable)

To make this change permanent, you need to change the configuration file->>>/etc/profile

To make this change effective immediately, tap the keyboard source/etc/profile

4. Shortcut keys

CTRL + C cancels cancel

CTRL + Z pause, use FG to recover

CTRL + A cursor flies to the left of the line

Ctrl+e cursor flies to the right of the line

Ctrl+s Lock the terminal, he will not react to what you do (this must be distinguished from using Windows!!!!!) )

Ctrl+q Exit Lock

Ctrl+l equivalent to clear

Ctrl+k the input after the cursor is discarded.

Ctrl+u what you entered before the cursor is discarded

Ctrl+d equivalent to exit

II. directory Structure

Speaking of the directory structure, I do not caught dead, there is a very full directory structure on the Internet.

http://yangrong.blog.51cto.com/6945369/1288072

The fun is, today in class know some of the meaning of the abbreviation of the filename

For example: The abbreviation of/bin/is binary, binary

/sbin/'s abbreviation is super binary, the difference is that the/bin/is the ordinary user, and/sbin/is our root (do not know this sentence summary there is no omission, if there is a mistake)

Both of them are the same. Both folders are used to place commands

/etc/is the other meaning, also wants some new translation

About this file structure, to be familiar with him, we also used the tree command (because we are minimal installed, so first Yum install-y tree)

/////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////

Gorgeous Split-line

/////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////

Let's talk about the recent situation. According to the previous experience has been two days, is because we have entered the first Test week, just finished the linear algebra, and then after the test to feel the two days after the recovery

Xi line generation of efforts did not waste, since the first exam has been completed, I also want to speed up the time to learn Linux, I hope I can stick down, I pay a certain return!

"CentOS" commands (LS,CD) and shortcut keys, and a very important directory structure

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.