Current Path

Current Path


Path

A path may refer to any of the following:

  • Alternatively referred to as the pathname, the current path or path is the complete location or name of where a computer, file, device, or web page is located. Below are some examples of different types of computer-related paths.

    MS-DOS path

  • When working with an MS-DOS, Windows, or Windows command line path, the drives, directories, and files are all separated by a backslash.

    Linux and Apple path

  • In Linux, or an Apple shell using the pwd command, your path may look like the following example. When working with this type of path, the drives, directories, and files are all separated by a forward slash.

    /home/hope/public_html/

    Network path

  • A network path is a path to a share. In the example below, "help" is the share on the "hope" computer.

    \\hope\help

    Internet path

  • The following example shows the Internet path or URL (Uniform Resource Locator) to this web page on the Internet.

    https://www.computerhope.com/jargon/p/path.htm

    How do I display the current path?

    Tip

  • By default, MS-DOS and the Windows command line show the full current path in the prompt. For example, if the prompt is C:\Windows\System32>, then the path is c:\Windows\System32. With Linux, you may only have a partial path. For example, the prompt may have "~/public_html/cgi-bin" in the prompt. The ~ (tilde) is a shortcut used to express your home directory.

  • To display the current path in MS-DOS or the Windows command line, type chdir at the prompt. In Linux, type pwd at the prompt to print the working directory (path).



    What is an Operating System? » Computer Shortcut Keys and their Functions » Keyboard Function Keys » Computer Basics - Hardware - Software - Parts

    Short Stories
    for Kids - Moral Stories – English Short Stories for Children - Moral Stories for Kids - Stories for Kids - Funny Story for Kids - Scary Stories for Kids - Really Funny Short Stories - Bedtime Stories

    Proverb Stories
    Powerful Motivational Quotes for Students » Success Quotes » English Short Stories for Kids

    Cabin Crew Jobs & Career Advice » Secretary Job Description » Receptionist Job Description » Top 100 Interview Questions and Answers » How to Prepare for an Interview » How to Write a CV » How to Choose a Career » Computer Shortcut Keys and their Functions

    Scholarships in Australia » Scholarships in Austria » Scholarships in Belgium » Scholarships in Canada » Scholarships in Germany » Scholarships in Ireland » Scholarships in Italy » Scholarships in Japan » Scholarships in Korea » Scholarships in Netherlands » Scholarships in Switzerland » Scholarships in UK » Scholarships in USA

    Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Scholarships for Study in Africa » Scholarships for African Students » Undergraduate Scholarships » African Women Scholarships & Grants Short Stories for Kids - Moral Stories – English Short Stories for Children - Moral Stories for Kids - Stories for Kids - Funny Story for Kids - Scary Stories for Kids - Really Funny Short Stories - Bedtime Stories
    Proverb Stories
    Powerful Motivational Quotes for Students » Success Quotes »Scholarships in UK » Powerful Motivational Quotes for Students » Success Quotes »Scholarships in UK » Powerful Motivational Quotes for Students » Success Quotes »Scholarships in UK »

  • Click here to post comments

    Join in and write your own page! It's easy to do. How? Simply click here to return to Computer Basics FAQ.