<?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>Hacktopia &#187; Unix</title>
	<atom:link href="http://www.hacktopia.net/wp/category/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hacktopia.net/wp</link>
	<description>The zen of hacking</description>
	<lastBuildDate>Tue, 15 Jun 2010 17:40:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Unix &#8211; Delete special charaters by inode</title>
		<link>http://www.hacktopia.net/wp/unix-delete-special-charaters-by-inode/</link>
		<comments>http://www.hacktopia.net/wp/unix-delete-special-charaters-by-inode/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 13:17:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=134</guid>
		<description><![CDATA[Here we see that we have a back slash created by mistake. user:/var/www/core# ls -l total 56 -rw-r&#8211;r&#8211; 1 root     root      213 2009-06-01 07:14 \ -rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php We try to delete it but it is not possible because the back slash is a special charter. user:/var/www/core# rm \ &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Here we see that we have a back slash created by mistake.</p>
<blockquote><p>user:/var/www/core# ls -l<br />
total 56<br />
-rw-r&#8211;r&#8211; 1 root     root      213 2009-06-01 07:14 \<br />
-rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php</p></blockquote>
<p>We try to delete it but it is not possible because the back slash is a special charter.</p>
<blockquote><p>user:/var/www/core# rm \<br />
&gt;</p></blockquote>
<p>So we have to go and list out the inode numbers.  Those are the inode numbers in the first collum.</p>
<blockquote><p>user:/var/www/core# ls -li<br />
total 56<br />
458132 -rw-r&#8211;r&#8211; 1 root     root      213 2009-06-01 07:14 \<br />
457759 -rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php</p></blockquote>
<p>So now we use find to delete the inode number which in turn deletes the file.</p>
<blockquote><p>user:/var/www/core# find . -inum 458132 -exec rm -i {} \;<br />
rm: remove regular file `./\\&#8217;? y<br />
user:/var/www/core# ls -l<br />
total 52<br />
-rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/unix-delete-special-charaters-by-inode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>back space not working in unix</title>
		<link>http://www.hacktopia.net/wp/back-space-not-working-in-unix/</link>
		<comments>http://www.hacktopia.net/wp/back-space-not-working-in-unix/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 15:12:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=40</guid>
		<description><![CDATA[So you just logged into your unix system and you started typing and then oops you typed a wrong letter I mean charater. root@server# ssfdkjfkjf^?^?^?^? What are those funky charaters at the end, yup they are me trying to use the back space, but I just end up getting further away from the charaters that [...]]]></description>
			<content:encoded><![CDATA[<p>So you just logged into your unix system and you started typing and then oops you typed a wrong letter I mean charater.</p>
<blockquote><p>root@server# ssfdkjfkjf<em>^?^?^?^?</em></p></blockquote>
<p>What are those funky charaters at the end, yup they are me trying to use the back space, but I just end up getting further away from the charaters that I am tryign to delete.</p>
<p>So now for the majick solution.</p>
<blockquote><p>root@server# stty erase ^?</p></blockquote>
<p>so the command stty sets options for the terminal session.  Then you are telling it what key you want to use to erase with.  Which is what the ^? is the erase key being used, so type stty erase space key then back space key then Enter, and you should be back to sanity once again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/back-space-not-working-in-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set terminal to VT100 and Editor to VI</title>
		<link>http://www.hacktopia.net/wp/set-terminal-to-vt100-and-editor-to-vi/</link>
		<comments>http://www.hacktopia.net/wp/set-terminal-to-vt100-and-editor-to-vi/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 14:05:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=38</guid>
		<description><![CDATA[So you go to use crontab -e and you get some strange stuff at the bottom of the line.  Yup you are in ee, which is even older then vi.  This can often happen when you are using a serial connection, and even when using ssh.  This is a simple fix, with examples below. TERM=vt100 [...]]]></description>
			<content:encoded><![CDATA[<p>So you go to use crontab -e and you get some strange stuff at the bottom of the line.  Yup you are in ee, which is even older then vi.  This can often happen when you are using a serial connection, and even when using ssh.  This is a simple fix, with examples below.</p>
<blockquote><p>TERM=vt100 ; export TERM ; EDITOR=vi;export EDITOR</p></blockquote>
<blockquote><p>user@server:~$ echo $TERM<br />
xterm<br />
user@server:~$ TERM=vt100 ; export TERM ; EDITOR=vi;export EDITOR<br />
user@server:~$ echo $TERM<br />
vt100</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/set-terminal-to-vt100-and-editor-to-vi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
