<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xor News &#187; Mac</title>
	<atom:link href="http://www.flester.com/blog/category/computers/mac/feed" rel="self" type="application/rss+xml" />
	<link>http://www.flester.com/blog</link>
	<description>You can't have it both ways</description>
	<lastBuildDate>Wed, 18 Aug 2010 03:51:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mac OS X Leopard ls(1) output</title>
		<link>http://www.flester.com/blog/2008/01/03/mac-os-x-leopard-ls1-output</link>
		<comments>http://www.flester.com/blog/2008/01/03/mac-os-x-leopard-ls1-output#comments</comments>
		<pubDate>Thu, 03 Jan 2008 18:15:28 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.flester.com/blog/?p=15</guid>
		<description><![CDATA[Mac OS X Leopard (10.5) has some interesting new output from the ls(1) command. Some files include a &#8220;@&#8221; or a &#8220;+&#8221; at the end of the permission string. Like this:
-rw-rw-r&#8211;@ 1 12345 Jan 2 file.txt
This is different from the &#8220;@&#8221; used after the filename to note a symbolic link when using the -F flag. [...]]]></description>
			<content:encoded><![CDATA[<p>Mac OS X Leopard (10.5) has some interesting new output from the ls(1) command. Some files include a &#8220;@&#8221; or a &#8220;+&#8221; at the end of the permission string. Like this:<br />
<i>-rw-rw-r&#8211;<b>@</b> 1 12345 Jan 2 file.txt</i><br />
This is different from the &#8220;@&#8221; used after the filename to note a symbolic link when using the -F flag. This new marker indicates:</p>
<ul>
<li><strong>@</strong> &#8211; the presence of extended metadata, see it with &#8220;ls -@&#8221;</li>
<li><strong>+</strong> &#8211; the presence of security ACL info, see it with &#8220;ls -e&#8221;</li>
</ul>
<p>The new mdls(1) command might also be if interest for another view of the metadata. The metadata is stored in a file that begins with <strong>._</strong> (dot underscore) and then the normal filename. So the metadata for file.txt would be found in <strong>._file.txt</strong>.</p>
<p>The new flags for ls are listed in the Leopard version of the ls man page, but if you&#8217;ve upgraded from Tiger you may not see any new man pages. The new man pages are delivered in gzip compressed format but the old man pages are not deleted &#8212; apparently a bug in the upgrade installer.</p>
<p>If you want to remove just those man pages that also have a (most likely newer) gzip version, then you can run this as root:</p>
<blockquote><pre>
   cd /usr/share/man
   for f in `find . -name "*.gz" -print ; do
       o=`echo $f | sed 's/\.gz//'`
       if [ -f $o ] ; then
           echo rm $o
       fi
   done
</pre>
</blockquote>
<p>Once you are happy with the output of that, remove the echo statement and the old man pages will be deleted. This isn&#8217;t perfect, it still leaves old man pages laying around for things that were part of Tiger but are not part of Leopard. There will still be a man page for niutil(1) , for example, which is obsoleted from Leopard. But I think I can live with that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flester.com/blog/2008/01/03/mac-os-x-leopard-ls1-output/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
