<?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>Glotzfisch.de &#187; Unix</title>
	<atom:link href="http://www.glotzfisch.de/category/os-and-apps/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.glotzfisch.de</link>
	<description>If something does not work out the way you want it to - try something different</description>
	<lastBuildDate>Wed, 26 May 2010 08:43:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Unix &gt; run command in the background</title>
		<link>http://www.glotzfisch.de/unix-run-command-in-the-background/</link>
		<comments>http://www.glotzfisch.de/unix-run-command-in-the-background/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 07:53:52 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[background]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/unix-run-command-in-the-background/</guid>
		<description><![CDATA[nohup is a Unix command that is used to run another command while suppressing the action of the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out. It is most often used to run commands in the background as daemons. Output that would normally go [...]]]></description>
			<content:encoded><![CDATA[<p>nohup is a Unix command that is used to run another command while suppressing the action of the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out. It is most often used to run commands in the background as daemons. Output that would normally go to the terminal goes to a file called nohup.out if it has not already been redirected. This command is very helpful when we have to run a huge list of batch jobs which are inter-dependent. (from http://en.wikipedia.org/wiki/Nohup)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/unix-run-command-in-the-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find Files</title>
		<link>http://www.glotzfisch.de/find-files/</link>
		<comments>http://www.glotzfisch.de/find-files/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 14:04:27 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/2008.02.22/find-files/</guid>
		<description><![CDATA[Find files that contain a text string:
grep -lir "some text" *
The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r descends into subdirectories. (found here)
Find files from a list of files, like: find all .htaccess [...]]]></description>
			<content:encoded><![CDATA[<p>Find files that contain a text string:</p>
<p><code>grep -lir "some text" *</code></p>
<p>The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r descends into subdirectories. (found <a href="http://snippets.dzone.com/posts/show/505">here</a>)</p>
<p>Find files from a list of files, like: find all .htaccess files that contain the string &#8216;RemoveType&#8217;:</p>
<p><code>find -name '.htaccess' | xargs grep -li "RemoveType"</code></p>
<p>Find all files that don&#8217;t contain a certain string:</p>
<p><code>grep -Lir "some text" *</code></p>
<p>An uppercase &#8220;L&#8221; replaces the lowercase one from the example above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/find-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix Basics</title>
		<link>http://www.glotzfisch.de/unix-basics/</link>
		<comments>http://www.glotzfisch.de/unix-basics/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 18:14:16 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/2008.02.25/unix-basics/</guid>
		<description><![CDATA[Au weia, Jahre kein Unix gesehen und dann das&#8230;
Mache eine Sicherheitskopie von allen html files in einem Verzeichnis, natürlich mit Unterverzeichnissen, aber nimm nicht den ganzen anderen Müll mit&#8230; vielleicht geht es ja auch schneller, aber das funzt:
  find . -name '*.html' &#124; pax -wdx ustar &#124; gzip &#62; Htmlfiles.tgz
Finde HTML und PHP:
find . [...]]]></description>
			<content:encoded><![CDATA[<p>Au weia, Jahre kein Unix gesehen und dann das&#8230;</p>
<p>Mache eine Sicherheitskopie von allen html files in einem Verzeichnis, natürlich mit Unterverzeichnissen, aber nimm nicht den ganzen anderen Müll mit&#8230; vielleicht geht es ja auch schneller, aber das funzt:</p>
<p><code>  find . -name '*.html' | pax -wdx ustar | gzip &gt; Htmlfiles.tgz</code></p>
<p>Finde HTML und PHP:</p>
<p><code>find . -name '*.html' -o -name '*.php'</code></p>
<p>Count files</p>
<p><code>  find . -name '*.html' -o -name '*.php' | wc -l</code></p>
<p><code>  find . -type f | wc -l</code></p>
<p>Only list the directories in the current directory.</p>
<p><code>  ls -d */</code></p>
<p>Find Members of a group??  in php it&#8217;s quite simple&#8230;</p>
<p><code>  $file["group"]["members"]</code></p>
<p>in unix?? maybe something like</p>
<p><code>  more /etc/group | grep groupname</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/unix-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RCS</title>
		<link>http://www.glotzfisch.de/rcs/</link>
		<comments>http://www.glotzfisch.de/rcs/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 20:48:14 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/rcs/</guid>
		<description><![CDATA[use RCS to version your edits: winscp:
 checkout: co -l !&#38;
 checkin: ci -u !&#38;
init:
 rcs -i ! (not working in winscp)
]]></description>
			<content:encoded><![CDATA[<p>use RCS to version your edits: winscp:</p>
<pre> checkout: co -l !&amp;
 checkin: ci -u !&amp;</pre>
<p>init:</p>
<pre> rcs -i ! (not working in winscp)</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/rcs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Aliases</title>
		<link>http://www.glotzfisch.de/useful-aliases/</link>
		<comments>http://www.glotzfisch.de/useful-aliases/#comments</comments>
		<pubDate>Fri, 14 Sep 2007 20:39:48 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/useful-aliases/</guid>
		<description><![CDATA[
 alias a alias
 alias la 'ls -a'
 alias ll 'ls -l'
 alias dir 'ls -l'
 alias cd 'set old=`pwd`; chdir \!*;pwd'
 alias back 'set new=`pwd`; chdir $old; set old=$new; pwd'
 alias wint 'echo -n "\033]0;${USER}@${HOST}\007"'
oder auch
 alias cd      'set old=$cwd; chdir \!*'
 alias back    'set back=$old; [...]]]></description>
			<content:encoded><![CDATA[<p id="wikitext">
<pre> alias a alias
 alias la 'ls -a'
 alias ll 'ls -l'
 alias dir 'ls -l'
 alias cd 'set old=`pwd`; chdir \!*;pwd'
 alias back 'set new=`pwd`; chdir $old; set old=$new; pwd'
 alias wint 'echo -n "\033]0;${USER}@${HOST}\007"'</pre>
<p>oder auch</p>
<pre> alias cd      'set old=$cwd; chdir \!*'
 alias back    'set back=$old; set old=$cwd; cd $back; unset back; dirs'</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/useful-aliases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix Prompt</title>
		<link>http://www.glotzfisch.de/unix-prompt/</link>
		<comments>http://www.glotzfisch.de/unix-prompt/#comments</comments>
		<pubDate>Mon, 07 May 2007 20:31:44 +0000</pubDate>
		<dc:creator>Gabi</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.glotzfisch.de/unix-prompt/</guid>
		<description><![CDATA[here is my current Unix prompt (I would appreciate if someone could tell me how I put in the name of the current user (&#8220;whoami&#8221;). %n only gives me the name of the user that started the shell, but if I do a &#8220;su someone&#8221;, I&#8217;d like to see his name here). A nice page [...]]]></description>
			<content:encoded><![CDATA[<p>here is my current Unix prompt (I would appreciate if someone could tell me how I put in the name of the current user (&#8220;whoami&#8221;). %n only gives me the name of the user that started the shell, but if I do a &#8220;su someone&#8221;, I&#8217;d like to see his name here). A nice page for this stuff is <a href="http://www.nparikh.org/unix/prompt.php" class="urllink">here</a>.</p>
<p><code>set prompt="%B[%/]%b\n%m (%T) &gt; "</code><br />
one can also change the title of an Xterm Window (see also <a href="http://tldp.org/HOWTO/Xterm-Title-3.html" class="urllink">here</a>)</p>
<p><code>echo -n "\033]0;${USER}@${HOST}\007"</code><br />
Das ganze kann man jetzt auch noch kombinieren&#8230; wow&#8230; (hmmm&#8230; interessanterweise zeigt das Wiki den Befehl nicht korrekt an&#8230; (also aus der unteren Zeile die Leerzeichen wegdenken&#8230;</p>
<p><code>set prompt="%{\033]0;%n@~\007%}%{\033[1;34m%}[%/]%{\033[0m%}\nT &gt; "</code><br />
<code>set prompt="%{\033]0;%n@% m:%~\007%}%{\033[1;34m%}[%/]%{\033[0m%}\n% m %T &gt; "</code></p>
<p>setzt sowohl den Fenstertitel als auch das prompt. sehr praktisch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.glotzfisch.de/unix-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
