Find the answer to your Linux question:
Results 1 to 2 of 2
quick 1 if i copy cp /etc/passwd . that will copy the passwd file to my current directory is . always the current directory??? .. is the parent right? thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2012
    Posts
    56

    is . always your current working directory


    quick 1

    if i copy

    cp /etc/passwd .

    that will copy the passwd file to my current directory

    is . always the current directory???

    .. is the parent right?

    thanks

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,439
    Yes, . is the current pwd.
    .. is the parent directory, with the exception of the root directory /, where .. resolves to /
    The GNU C Library
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •