LINUX-11 Basic command-The working period directory Toggle Command-PWD,CD,

Source: Internet
Author: User
Tags parent directory

The PWD command is used to display the current working directory in the format: pwd[options]

@1, view the current work path:

[Email protected]/]# pwd

The CD command is used to switch the work path format to: "CD directory Name"

cd command parameters
Parameters Role
- Switch to the previous directory. For example: "cd-"
~ Switch to "home directory". For example: "cd~".
~username Switch to another user's home directory for example: "CD ~root"
.. Switch to the parent directory. For example: "CD.".

The LS command is used to view those files in the directory in the format: "ls[options [File]"

Ls-la

LS parameter
Parameters Role
-A View all files (including hidden files)
-D Just look at the directory itself
-H Easy-to-read file size
-L Show file Details

@1, see those files in the/etc directory

[Email protected]/]# ls/etc

@1, view/etc directory permissions

ls -ld /etc

Append-H display capacity in k/m/g units

ls -ldh/etc

LINUX-11 Basic command-The working period directory Toggle Command-PWD,CD,

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.