<?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>PHP Log &#187; shell</title>
	<atom:link href="http://www.php-log.de/tags/shell/feed" rel="self" type="application/rss+xml" />
	<link>http://www.php-log.de</link>
	<description>Eine feine Sammlung nützlicher PHP Notizen</description>
	<lastBuildDate>Mon, 20 Sep 2010 00:22:05 +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>Nützliche Linux Shell Kommandos</title>
		<link>http://www.php-log.de/242/php/nutzliche-linux-shell-kommandos</link>
		<comments>http://www.php-log.de/242/php/nutzliche-linux-shell-kommandos#comments</comments>
		<pubDate>Thu, 09 Apr 2009 11:11:02 +0000</pubDate>
		<dc:creator>ralle</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.php-log.de/?p=242</guid>
		<description><![CDATA[Hier werde ich mit der Zeit die Shell Kommandos auflisten die ich im Laufe der Zeit so benötige. # Anzahl der Dateien in einem Ordner ermitteln ls -l ordnername &#124; wc -l &#160; # Anzahl der Dateien in einem Ordner und Unterordnern ermitteln ls -lR ordnername &#124; wc -l # Wieviel Platz ist noch auf [...]]]></description>
			<content:encoded><![CDATA[<p>Hier werde ich mit der Zeit die Shell Kommandos auflisten die ich im Laufe der Zeit so benötige.<span id="more-242"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Anzahl der Dateien in einem Ordner ermitteln</span>
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> ordnername <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> <span style="color: #660033;">-l</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Anzahl der Dateien in einem Ordner und Unterordnern ermitteln</span>
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lR</span> ordnername <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">wc</span> <span style="color: #660033;">-l</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Wieviel Platz ist noch auf der Festplatte?</span>
<span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-h</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Wie groß ist ein bestimmtes Verzeichnis?</span>
<span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #660033;">-c</span> <span style="color: #660033;">-h</span> ordnername<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-1</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># In welchen Dateien steht Suchphrase? (Achtung rekursiv ab dem aktuellen Verzeichnis)</span>
<span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-R</span> <span style="color: #660033;">-H</span> <span style="color: #ff0000;">&quot;Suche Phrase&quot;</span> .</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Wieivel Zeilen hat eine Datei</span>
<span style="color: #c20cb9; font-weight: bold;">wc</span> <span style="color: #660033;">-l</span> datei.txt</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Alle .svn Verzeichnisse löschen</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;.svn&quot;</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> \;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Zeilen in einer Datei löschen</span>
<span style="color: #666666; font-style: italic;"># Hilfreich wenn man z.B. Create Database Statements aus einem MySQL dump löschen möchte</span>
<span style="color: #666666; font-style: italic;"># Hier werden die Zeilen 20 - 25 gelöscht</span>
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'20,25d'</span> current.sql <span style="color: #000000; font-weight: bold;">&amp;</span>gt; cleaned.sql</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.php-log.de/242/php/nutzliche-linux-shell-kommandos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

