<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Using the ls command</title>
	<link>http://mac.lowetechlabs.com/2008/10/06/using-the-ls-command/</link>
	<description>Apple and Macintosh from Lowe Tech Labs</description>
	<pubDate>Sun, 20 May 2012 09:42:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Brandon</title>
		<link>http://mac.lowetechlabs.com/2008/10/06/using-the-ls-command/#comment-2218</link>
		<author>Brandon</author>
		<pubDate>Wed, 08 Oct 2008 00:28:42 +0000</pubDate>
		<guid>http://mac.lowetechlabs.com/2008/10/06/using-the-ls-command/#comment-2218</guid>
		<description>One essential option you didn't discuss is -d. In your example, what if you want to look at the owner or permissions for directory1? You would type ls -l and look in the long list. This does not work very well if your directory contains many items. If you had directory1 through directory1000 and wanted to see who owns directory500 you might first type "ls -l directory500" hoping to see that information. But all you will see is a long listing of the contents of directory500, not the owner, permissions, etc of the directory itself. Typing ls -ld directory500 will prevent ls from recursing into the directory and will print information about the directory itself. This also applies to symbolic links. If you want to see information about a link and where it points rather than seeing information about the object the link points to, you can use -d.

This comes up often when inspecting links or on a multiuser system when you want to check the permissions of someone's home directory.</description>
		<content:encoded><![CDATA[<p>One essential option you didn&#8217;t discuss is -d. In your example, what if you want to look at the owner or permissions for directory1? You would type ls -l and look in the long list. This does not work very well if your directory contains many items. If you had directory1 through directory1000 and wanted to see who owns directory500 you might first type &#8220;ls -l directory500&#8243; hoping to see that information. But all you will see is a long listing of the contents of directory500, not the owner, permissions, etc of the directory itself. Typing ls -ld directory500 will prevent ls from recursing into the directory and will print information about the directory itself. This also applies to symbolic links. If you want to see information about a link and where it points rather than seeing information about the object the link points to, you can use -d.</p>
<p>This comes up often when inspecting links or on a multiuser system when you want to check the permissions of someone&#8217;s home directory.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

