Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Sorry but i really need help with the cd command

  1. #11
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,328

    Re: Sorry but i really need help with the cd command

    Note that a simple little dot “.” also has two (or three) meanings.

    A file name starting with a dot is a hidden file that doesn’t show when you do a normal “ls” command.

    A dot used with ls or cd indicates the current directory and two dots indicate the previous directory.

    UNIX is not unfriendly. It is just very choosy about who exactly its friends are...

  2. #12
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,314
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Sorry but i really need help with the cd command

    Quote Originally Posted by HermanAB View Post
    A file name starting with a dot is a hidden file that doesn’t show when you do a normal “ls” command.
    Fun fact: that was a bug that turned into a feature. Because

    A dot used with ls or cd indicates the current directory and two dots indicate the previous directory.
    they didn't want ls to show . or .. and their first implementation just hid anything that started with a . rather than just those two. That behavior turned out to be useful, so they kept it.

  3. #13
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,220
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Sorry but i really need help with the cd command

    Quote Originally Posted by TheFu View Post
    Good added explanations.

    The "~" causes a getent() call to the OS to look up in the passwd database for either the current or specified userid'd HOME.
    ~tf will look up the tf password entry
    Well, after 25+ years using Linux, I'm obviously still a beginner. I just had to try that to see if it was true. It is.
    <Shuffles away shaking his head and mumbling...>

  4. #14
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Sorry but i really need help with the cd command

    Quote Originally Posted by The Cog View Post
    Well, after 25+ years using Linux, I'm obviously still a beginner. I just had to try that to see if it was true. It is.
    <Shuffles away shaking his head and mumbling...>
    If your experience is on single-user, not on team, systems, this wouldn't be important. Of course, just saw that 21.04 HOME directories will get 750 permissions by default.
    https://discourse.ubuntu.com/t/priva...-onwards/19533

    That will force users to learn about group membership. In the old days, accounts wouldn't get their own group created. This always bothered me. Put users into the 'users' group and every different team would get a different group to control access to group-specific files. Home Linux users miss out on the group stuff.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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