Linux dir command

Source: Internet
Author: User

The Linux dir command is similar to the ls command to view details such as directories and file permissions. The following describes how to use the Linux dir command.

I. Linux dir command permission

Any user can use the "dir" command on the terminal.

Ii. Linux dir Command Format

The format of using the dir command on the terminal is: dir [Option] [directory name] (no square brackets are used)

Iii. Linux dir command functions

The dir command is similar to the ls command, but has few command parameters. You can use "dir-help" to view the relevant parameters of the dir command.

Iv. Examples

For example, list the details of all content in "/home/cc/Ruijie. The following command is available.

[Cc @ cc ~] $ Dir-l/home/cc/Ruijie

The following content is displayed:

[Cc @ cc ~] $ Dir-l/home/cc/Ruijie

Total 2168

-Rwxr-xr-x 1 cc 112876 2008-06-26 libpcap. so.0.6.2-rwxr-xr-x 1 cc 737192 2008-06-26 libstdc ++. so.5-rwxr-xr-x 1 cc cc1938 2004-04-23 readme.txt

-Rwxr-xr-x 1 cc 1350772 xrgsu

[Cc @ cc ~] $

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.