Linux Learning-File system architecture

Source: Internet
Author: User

mkdir Creating a Folder

Touch Create File

Files and folders under Windows are case insensitive

Files are strictly case- sensitive under Linux

. Represents the current directory

.. Indicates a parent directory

. The file that starts with indicates that the file is a hidden file

Important Folder Description

For the root user,

When I landed, it was a sign.

  its root directory is /root

For non-root users

when you log in, it shows the $

  its root directory is in /home/user

Directory Operations

Cd.. Parent Directory

PWD Displays the directory where you are currently

CD ~ Return to the current user's more directory (root user returned to/root directory non-root returned to/home/user)

CD-Switch between the last operation and the directory node for this operation

File operations

Copy

CP [Options] File destination Copy file to the specified directory

Nothing in options specifies that the newly created file timestamp is the most recent specified-p then the timestamp of the copied file remains unchanged

Cp-r dir1 dir2 Copy files under File Dir1 folder to file Dir2 directory

Move or rename

MV Cat dog renames cat files or folders to dog

MV Cat dog/move cat files or folders to dog

Delete

RM [Options] File Delete files

Rm-r file/Delete all files need to be confirmed.

RM-RF file/does not need to be confirmed and removed directly.

Confirm File Type

File filenames

Open File

Cat [Options] Filenames

-B can display the travel number when the file is large

Less [options] filenames

Open the file after the PageUp PageDown can also use the G page to the front G to the last

Search for n backward find n forward Lookup

Q exit

  

Linux Learning-File system architecture

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.