<?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>BASH Cures Cancer &#187; RHEL</title>
	<atom:link href="http://bashcurescancer.com/category/rhel/feed" rel="self" type="application/rss+xml" />
	<link>http://bashcurescancer.com</link>
	<description>Learn the UNIX/Linux command line</description>
	<lastBuildDate>Tue, 25 Oct 2011 18:09:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Two tips &#8211; missing files and uuencode/uudecode on RHEL (CentOS)</title>
		<link>http://bashcurescancer.com/two-tips-missing-files-and-uuencodeuudecode-on-rhel-centos.html</link>
		<comments>http://bashcurescancer.com/two-tips-missing-files-and-uuencodeuudecode-on-rhel-centos.html#comments</comments>
		<pubDate>Fri, 21 Mar 2008 22:18:45 +0000</pubDate>
		<dc:creator>Brock Noland</dc:creator>
				<category><![CDATA[Beginners]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://bashcurescancer.com/two-tips-missing-files-and-uuencodeuudecode-on-rhel-centos.html</guid>
		<description><![CDATA[Missing space &#8211; deleting open files I ran into this one again today. If a file is open when deleted, it will not appear in a directory listing, but will take up space. # df -h . Filesystem            Size  Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 72G   58G   11G  86% / # cat - &#62;&#62;large-file &#38; [...]]]></description>
			<content:encoded><![CDATA[<p><u><strong>Missing space &#8211; deleting open files</strong></u></p>
<p>I ran into this one again today. If a file is open when deleted, it will not appear in a directory listing, but will take up space.</p>
<pre># df -h .
Filesystem            Size  Used <strong>Avail Use%</strong> Mounted on
/dev/mapper/VolGroup00-LogVol00
                      72G   58G   <strong>11G  86%</strong> /
# cat - &gt;&gt;large-file &amp;
[1] 8958
# lsof large-file
COMMAND  PID USER   FD   TYPE DEVICE       <strong>SIZE</strong>    NODE NAME
cat     8958 root    1w   REG  253,0 <strong>5120000000 </strong>4300883 large-file
# rm -f large-file
# lsof | grep large-file
cat       8958      root    1w      REG      253,0 5120000000    4300883 <strong>/root/large-file</strong> <strong>(deleted)</strong>
# df -h .
Filesystem            Size  Used <strong>Avail Use%</strong> Mounted on
/dev/mapper/VolGroup00-LogVol00
                      72G   58G   <strong>11G  86</strong>% /
# kill -9 8958
# df -h .
Filesystem            Size  Used <strong>Avail Use%</strong> Mounted on
/dev/mapper/VolGroup00-LogVol00
                      72G   53G   <strong>15G  79%</strong> /
[1]+  Killed                  cat - &gt;&gt;large-file</pre>
<p><u><strong>uuencode/uudecode on RHEL (CentOS)</strong></u></p>
<p>Earlier today I was looking to use uuencode on my RHEL host. Unfortunately, yum did not help:</p>
<pre># yum search uuencode
Loading "installonlyn" plugin
Setting up repositories
base                      100% |=========================| 1.1 kB    00:00
updates                   100% |=========================|  951 B    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
No Matches found</pre>
<p>Furthermore, I struggled to find the correct search terms for Google to provide me with an answer. The correct package is &#8220;sharutils.&#8221; Anyways, for good measure, here is a quick demo of uuencode/uudecode:</p>
<pre>$ echo "BASH Cures Cancer" &gt; test.txt
$ zip test.zip test.txt
  adding: test.txt (stored 0%)
$ uuencode &lt; test.zip -
begin 664 -
M4$L#!`H``````-%9=3@7HDD\$@```!(````(`!4`=&amp;5S="YT&gt;'155`D``^G&gt;
MXT?IWN-'57@$`/0!]`%"05-(($-U&lt;F5S($-A;F-E&lt;@I02P$"%P,*``````#1
M674X%Z))/!(````2````"``-```````!````M($`````=&amp;5S="YT&gt;'155`4`
?`^G&gt;XT=5&gt;```4$L%!@`````!``$`0P```$T`````````
`
end
$ uuencode &lt; test.zip - | uudecode &gt; test2.zip
$ unzip test2.zip
Archive:  test2.zip
replace test.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
 extracting: test.txt
$ cat test.txt
BASH Cures Cancer</pre>
<p>From the manual: &#8220;Uuencode reads file (or by default the standard input) and writes an encoded version to the standard output.  The encoding uses only printing ASCII characters and includes the mode of the file and the operand name for use by uudecode.<em> </em>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://bashcurescancer.com/two-tips-missing-files-and-uuencodeuudecode-on-rhel-centos.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.218 seconds -->

