linux[Basic]-07-Common command [01]

Source: Internet
Author: User
Tags parent directory

Displays when and where the work path and toggle

1. Pwd: command to display the current working path

PWD Displays the current working path

Pwd–p Show True Path

2. CD: switch Work path

cd– switch the last working path

CD ~ Switch Home directory

Cd.. Switch to Parent directory

CD ~username switch to another user's home directory

3. ls: See what files are in the current directory

    Format: LS [options] [file]

Parameters

Role

-A

View All Files

-D

Only look at the directory itself

-L

Show detailed information for a file

-H

easy-to-read file size (k,m,g )

[Email protected] ~]# ls-ld/etc

Drwxr-xr-x. 8192 root root 08:20/etc

[Email protected] ~]# ls-dhl/etc

Drwxr-xr-x. Root root 8.0K 08:20/etc

[Email protected] ~]# Ls-al

Total 60

Dr-xr-x---. Root root 4096 15 08:07.

Drwxr-xr-x. Root root 4096 15 2017.

-RW-------. 1 root root 1102 6 21:17 anaconda-ks.cfg

linux[Basic]-07-Common command [01]

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.