Rhce -- PWD command details

Source: Internet
Author: User

PWD(Print working directory)

Function Description:Displays the working directory.

Syntax:PWD [-- help] [-- version]

Note: When executing the PWD command, you can immediately learn the absolute path name of your current working directory.

Parameters:
-Help Online Help.
-Version: displays the version information.

 

 

In Linux (Fedora/Ubuntu/cenos/RedHat), run the PWD command to view the complete path of the "current working directory" (current folder.

This section describes how to use the Linux PWD command, how to use it, how to use it, how to use the Linux PWD command, and how to use the Linux PWD command.

I. Linux PWD permission

Any user can use the PWD command.

Ii. Linux PWD command format

Enter PWD directly on the terminal.

Iii. Linux PWD command function explanation

In Linux, run the PWD command to view the complete path of the "current working directory.

To put it simply, whenever you operate on a terminal, you will have a current working directory. Generally, after the terminal is enabled, the "current working directory" is the user's "Main folder" by default ".

For example, if my user name is "cc", my default current working directory is a folder named "cc.

4. Linux PWD command example

Example 1: run the PWD command to view the full path of the default working directory.

[CC @ CC ~] $ Pwd

The result is as follows:

[CC @ CC ~] $ Pwd

/Home/CC

[CC @ CC ~] $

Example 2: run the PWD command to view the specified folder.

[CC @ CC ~] $ CD it.dengchao.org // enter the it.dengchao.org folder. Of course, you can go to your designated folder [CC @ CC it.dengchao.org] $ pwd

The result is as follows:

[CC @ CC ~] $ CD it.dengchao.org

[CC @ CC it.dengchao.org] $ pwd

/Home/CC/it.dengchao.org

[CC @ CC it.dengchao.org] $

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.