Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Understanding Drwxr-xr-x, Lrwxr-xr-x, and drwxrwxr-T

Understanding Drwxr-xr-x, Lrwxr-xr-x, and drwxrwxr-T
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2007
Status: Offline
Reply With Quote
Apr 26, 2007, 05:40 PM
 
I did the command ls -la / which gave me some permissions I don't understand. I know R is read W is write X is execute but what does D, L and T mean, and what is sticky bit, and why does "T" take the place of x?
     
Mac Elite
Join Date: Sep 2005
Location: Vancouver, BC
Status: Offline
Reply With Quote
Apr 26, 2007, 07:00 PM
 
D = directory
L = symbolic link
Sticky bit = "Usage" section here: Sticky bit - Wikipedia, the free encyclopedia

By the way ... if you add the "-G" option to ls commands, you get colorized output, which makes things considerably easier to visualize. Here's my Terminal:

     
Fresh-Faced Recruit
Join Date: Mar 2007
Status: Offline
Reply With Quote
Apr 26, 2007, 07:56 PM
 
Dangit I should of known that, I should of used the information on the far right of terminal to understand what d and l is. LOL

Thanks
Dan
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Apr 26, 2007, 07:58 PM
 
Erm…what? That information isn't actually in the Terminal. His Terminal window is semi-transparent and his post is showing through.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Fresh-Faced Recruit
Join Date: Mar 2007
Status: Offline
Reply With Quote
Apr 26, 2007, 08:05 PM
 
Originally Posted by Chuckit View Post
Erm…what? That information isn't actually in the Terminal. His Terminal window is semi-transparent and his post is showing through.
I'm not talking about the information under the terminal Im talking about the information thats IN the terminal on the far right side where is says the file names and extensions and directories.

Name is dan btw
     
Grizzled Veteran
Join Date: Mar 2004
Status: Offline
Reply With Quote
Apr 26, 2007, 10:00 PM
 
Originally Posted by mr.dan.watson View Post
what is sticky bit, and why does "T" take the place of x?

It "takes the place of [the last] x" because the 10-character display convention
got overloaded... as more "states" were invented. Rather than add more chars,
they decided to get tricky.

The sticky bit was originally created for files. Look at: ls -l /var/vm/swapfile0
It means (meant?): once loaded, keep this puppy handy (somewhere in memory).

Later (and more popularly) it got applied to directories as well... but, there it says:
only owners can delete their own stuff inside this folder.

[too bad we can't post real (multi-spaced) ascii with code tags... I gotta neat chart]
-HI-
     
Fresh-Faced Recruit
Join Date: Mar 2007
Status: Offline
Reply With Quote
Apr 26, 2007, 11:14 PM
 
If "T" replaces the last "X" then using ls -l on given files whos octal is 1777 or 1776 is useless because "T" replaces/overlaps "X". How do you get the permissions octal, if thats what their called, of a file? Remove the sticky-bit then ls -l or..?
     
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status: Offline
Reply With Quote
Apr 27, 2007, 12:28 AM
 
Uses a capital "T" if it executable ("x") and a lower case "T" if not executable ("-").

Try this on the CLI:

touch blah
chmod 666 blah
ls -l blah
chmod 1666 blah
ls -l blah
chmod 777 blah
ls -l blah
chmod 1777 blah
ls -l blah
rm blah

All will be revealed.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2