<?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>System Adm &#187; command</title>
	<atom:link href="http://www.system.adm.br/tag/command/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.system.adm.br</link>
	<description>Some IT Tips (Linux, Unix, HP-UX, AIX, Solaris, etc).</description>
	<lastBuildDate>Wed, 30 Nov 2011 17:59:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to remove/move/copy/rename file that has a non-printable name</title>
		<link>http://www.system.adm.br/2010/09/how-to-removemovecopyrename-file-that-has-a-non-printable-name/</link>
		<comments>http://www.system.adm.br/2010/09/how-to-removemovecopyrename-file-that-has-a-non-printable-name/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 19:34:08 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[General Unix]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=324</guid>
		<description><![CDATA[How to remove/move/copy/rename file that has a non-printable name, for example: backup@root:/home/userhome/test # ls -la total 2 -rw-rw-rw- 1 root sys 0 Sep 23 15:48 drwxrwxrwx 2 root sys 96 Sep 23 15:50 . drwxr-xr-x 5 userhome adm 1024 Sep 23 16:20 .. -rw-rw-rw- 1 root sys 0 Sep 23 15:47 -test The easiest one [...]]]></description>
			<content:encoded><![CDATA[<p>How to remove/move/copy/rename file that has a non-printable name, for example:<br />
	<span style="font-size: 12px;"><code><br />
	backup@root:/home/userhome/test # ls -la<br />
	total 2<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:48<br />
	drwxrwxrwx 2 root sys 96 Sep 23 15:50 .<br />
	drwxr-xr-x 5 userhome adm 1024 Sep 23 16:20 ..<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:47 -test<br />
	</code></span><br />
	The easiest one is the file named &quot;-test&quot;, you can do a &quot;<span style="font-size: 12px;"><code>mv -- -test xx</code></span>&quot; to rename it to test, getting rid of the &quot;-&quot;.</p>
<p>	The most annoying is the other file, which apparently has the name &quot;blank&quot;, but not quite.</p>
<p>	There are two ways to find the real file name.,&quot;ls -lq&quot; e &quot;ls -lb&quot;:</p>
<p>	<span style="font-size: 12px;"><code> backup@root:/home/userhome/test # ls -lq<br />
	total 0<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:48 ?<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:47 xx<br />
	backup@root:/home/userhome/test # ls -lb<br />
	total 0<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:48 \002<br />
	-rw-rw-rw- 1 root sys 0 Sep 23 15:47 xx<br />
	backup@root:/home/userhome/test # ls -li<br />
	total 0<br />
	17334 -rw-rw-rw- 1 root sys 0 Sep 23 15:48<br />
	17332 -rw-rw-rw- 1 root sys 0 Sep 23 15:47 xx<br />
	</code></span><br />
	The &quot;ls -lb&quot; shows the non-printable characters with &quot;\ XXX&quot; where XXX is the ASCII representation of the non-printable character.<br />
	The &quot;ls -lq&quot; shows the non-printable characters with &quot;???&quot; (quantity of ? is defined by the amount of non-printable caracters).<br />
	The &quot;ls -li&quot; shows the file inode.</p>
<p>	To handle this file, the best option is to use the &quot;find&quot;.</p>
<p>	- Using the find based on the inode:<br />
	<span style="font-size: 12px;"><code>find . -inum 17334 -exec mv {} asd \;</code></span></p>
<p>	- Using find with &quot;wildcards&quot; (based on the ls-lq returned):<br />
	<span style="font-size: 12px;"><code>find . -type f -name &quot;?&quot; -exec mv {} asd \;</code></span></p>
<p>	Be careful when using the find with &quot;meta character&quot;! If a file whose name has only one character, it will enter the result.<br />
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2010/09/how-to-removemovecopyrename-file-that-has-a-non-printable-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check powerpath links in HP-UX</title>
		<link>http://www.system.adm.br/2009/12/check-powerpath-links-in-hp-ux/</link>
		<comments>http://www.system.adm.br/2009/12/check-powerpath-links-in-hp-ux/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 20:22:43 +0000</pubDate>
		<dc:creator>Lincoln Zuljewic Silva</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.system.adm.br/?p=202</guid>
		<description><![CDATA[To check if the powerpath links are up in HP-UX, you can use the following command: # powermt display dev=all &#160;]]></description>
			<content:encoded><![CDATA[<p>To check if the powerpath links are up in HP-UX, you can use the following command:</p>
<p>	<span style="font-size: 12px;"><code># powermt display dev=all</code></span></p>
<p>	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.system.adm.br/2009/12/check-powerpath-links-in-hp-ux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

