AIX System file operations and directory Operations basics

Source: Internet
Author: User
Tags mkdir

1. File type

Normal file

Including the user and system of various text files, code files, program files and data files and so on.

Directory

Includes file and subdirectory information, the directory is inverted tree structure.

Special files

Represents physical or logical devices that are stored under the/dev directory.

2, File and directory name

A file or directory name can be up to 255 characters, including uppercase letters, lowercase,

numeric characters, #.@_, and so on.

The file or directory name must not contain spaces, and may not include the following characters:

*?></;&! []$\ '], you cannot use the +,-number as the first character of a file or directory name, and

System commands the same name, AIX strictly distinguishes the case of files or directory names.

3. Directory operation

PWD: Show current directory

$ pwd

/home/xumin

CDS: Changing current directory

$ CD Dir_name

mkdir: Create a new directory

$ mkdir Dir_name

RmDir: Delete Directory

$ rmdir Dir_name

4. File operation

LS: Display directory

$ ls

CP: Copying files

$ CP Source Target

MV: File renamed or moved

$ MV Source Target

ln: Connection File

$ LN Source target

$ ls-l

Total 5

Drwxr-xr-x 4 xumin Staff 15:09 info

-RW-------1 xumin staff 630 Aug modified 10:44

-rw-r--r--1 xumin staff Aug 16:52 Test.file

---x------1 xumin staff 3 16:49 testfile

$ ln-s Test.file Test1.file

$ ls-l

Total 5

Drwxr-xr-x 4 xumin Staff 15:09 info

-RW-------1 xumin staff 630 Aug modified 10:44

-rw-r--r--1 xumin staff Aug 16:52 Test.file

lrwxrwxrwx 1 Xumin Staff 9 Aug one 13:31 test1.file-> test.file

---x------1 xumin staff 3 16:49 testfile

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.