Solaris Basic Commands

Source: Internet
Author: User
Tags create directory mkdir file permissions

(i) Basic orders

Command format: Command parameters

1.LS display filename, equivalent to dos dir command

Command format: LS [option] File

Option

-l Display a detailed list

Domain 1: File types and file permissions

Domain 2: Number of file connections

Domain 3: File owner name

Domain 4: File user Group name

Domain 5: File length

Domain 6-8: Last Modified Date

Domain 9: filename

-a displays all files, including hidden files (in. The beginning of the file name)

-R display files and all subdirectories

-F Display file (followed by *) and directory (followed by/)

-D is shared with the L option to display the directory name instead of its contents

2.CD directory conversion, equivalent to DOS CD command

Note the directory separator is "/", contrary to Dos

Command format: CD dirname

3.PWD Show Current Path

4.cat display file content, equivalent to DOS type command

Command format: Cat filename

5.more View the contents of the file as paging.

Command format: more filename

6.RM Delete File

Command format: RM [-r] filename (filename can be file name, or file name abbreviated symbol.)

Example:

RM file1 Delete document with file name File1.

RM file? There are five characters in the delete file name, and the first four characters are all documents in file.

RM f* All documents with F as the first word in the delete file name.

Rm-r Dir1 Deletes the directory Dir1 and all its documents and subdirectories.

7.mkdir Create Directory

Command format: mkdir [-P] Directory-name

Exmaple:

mkdir Dir1 establishes a new catalogue dir1.

Mkdir-p Dir/subdir directly create multilevel catalogs

8.rmdir Delete Directory

The directory must first be empty

Command format: RmDir directory

9.CP Document copying

Command format: CP [-r] Source destination

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.