Results 1 to 5 of 5

Thread: /usr???

  1. #1
    /usr???
    Thundermoon1994's Avatar
    Member Since
    Dec 26, 2006
    Location
    Kent, OH
    Posts
    495
    Specs:
    15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB
    /usr???
    So..........I've decided to start learning about UNIX. I've some of the basic concepts down, but I'm a little confused about something. If I'm in the home directory and I type "ls -a", it shows everything in that directory, correct? The tutorial I'm learning from is an old online one from back when OS 10.2 was new. It's right here.

    What I'm confused about is that when I type "ls -a" I don't see the directory /usr . However, if I type cd /usr, it takes me to that directory?

    This is probably a really basic, newbie, stupid question. If so, I'm sorry.
    -- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
    -- 8 GB iPhone 3G -- 30 GB iPod Video --

  2. #2
    /usr???
    powermacj7's Avatar
    Member Since
    Mar 22, 2007
    Location
    NY NY
    Posts
    403
    Specs:
    iMac Duo White
    ls is similar to dir in dos. It show you the contents of that folder. cd is change directory, meaning you are going to cd /usr.

    ls will not take you to a directory, only show you the content....

  3. #3
    /usr???

    Member Since
    Dec 24, 2006
    Location
    N. Ireland
    Posts
    901
    Specs:
    Mac Pro 2xQuad core 2.8GHZ
    Quote Originally Posted by powermacj7 View Post
    ls is similar to dir in dos. It show you the contents of that folder. cd is change directory, meaning you are going to cd /usr.

    ls will not take you to a directory, only show you the content....
    Dont think thats the answer to what was asked.

    Basically he wants to know why the /usr folder does not get displayed when he runs the ls command.

    Is /usr a hidden directory?

  4. #4
    /usr???
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,082
    Specs:
    13in macbook - 10.10.4
    /usr is hidden in Finder. The problem is /usr isn't in your home dir, it's in the root dir. Try using ls -a / or cd'ing to the root dir and using it.
    I use ls -lag to show more information.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  5. #5
    /usr???
    Thundermoon1994's Avatar
    Member Since
    Dec 26, 2006
    Location
    Kent, OH
    Posts
    495
    Specs:
    15" MacBook Pro w/ 2.4 GHz C2D, 4 GB RAM, 250 GB
    Thanks cradom. I was confusing /usr with ~/usr. Now I see where it is. Thanks guys!
    -- Unibody 15.4" MacBook Pro (2.4 GHz Core2Duo Penryn, 250 GB HD, 4 GB RAM, nVidia GeForce 9400M & GeForce 9600M GT w/ 256 MB) --
    -- 8 GB iPhone 3G -- 30 GB iPod Video --

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. USR Folder Deleted
    By tarka1980 in forum OS X - Operating System
    Replies: 5
    Last Post: 06-18-2010, 12:26 AM
  2. /usr vs /Developer/usr
    By mbohn in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 02-14-2010, 09:51 PM
  3. /usr directory - can't find
    By romsok in forum OS X - Operating System
    Replies: 1
    Last Post: 10-17-2009, 12:57 PM
  4. /usr/local
    By oxygren in forum OS X - Operating System
    Replies: 4
    Last Post: 07-13-2009, 07:55 PM
  5. usr issues
    By tessg in forum OS X - Operating System
    Replies: 1
    Last Post: 07-30-2008, 02:41 PM

Posting Permissions

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