<?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>how to &#187; Linux Tips</title>
	<atom:link href="http://www.neteyaz.com/category/linux-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://www.neteyaz.com</link>
	<description>linux and open source tips</description>
	<lastBuildDate>Mon, 23 May 2011 08:47:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mysql update to 5.5 (use mysql 5.5 with php with safe upgrade)</title>
		<link>http://www.neteyaz.com/mysql-update-to-5-5-use-mysql-5-5-with-php-with-safe-upgrade</link>
		<comments>http://www.neteyaz.com/mysql-update-to-5-5-use-mysql-5-5-with-php-with-safe-upgrade#comments</comments>
		<pubDate>Mon, 23 May 2011 08:47:12 +0000</pubDate>
		<dc:creator>banias</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=200</guid>
		<description><![CDATA[Updating to MySQL 5.5.8 
Super easy as I had MySQL 5.0.45 installed previously. Just went to http://www.mysql.com/downloads/ and grabbed the tar.gz file. After mysqldump&#8217;ing my old databases I simply ran these steps:
    sudo mv ~/Downloads/mysql-5.5.8-osx10.6-x86_64.tar.gz /usr/local
    cd /usr/local/
    sudo tar -xvf mysql-5.5.8-osx10.6-x86_64.tar.gz
    sudo [...]]]></description>
			<content:encoded><![CDATA[<h2>Updating to MySQL 5.5.8 </h2>
<p>Super easy as I had MySQL 5.0.45 installed previously. Just went to http://www.mysql.com/downloads/ and grabbed the tar.gz file. After mysqldump&#8217;ing my old databases I simply ran these steps:</p>
<p>    sudo mv ~/Downloads/mysql-5.5.8-osx10.6-x86_64.tar.gz /usr/local<br />
    cd /usr/local/<br />
    sudo tar -xvf mysql-5.5.8-osx10.6-x86_64.tar.gz<br />
    sudo ln -s /usr/local/mysql-5.5.8-osx10.6-x86_64 mysql<br />
    cd mysql<br />
    sudo chown -R _mysql .<br />
    sudo chgrp -R _mysql .<br />
    scripts/mysql_install_db &#8211;user=mysql<br />
    sudo chown -R root .<br />
    sudo chown -R _mysql data<br />
    sudo /usr/local/mysql/bin/mysqld_safe &#8211;user=mysql</p>
<p>I then reimported my data by opening a mysql prompt, creating the database, exiting, and then reimporting my data with mysql -u root -p db name < mysqldump file</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/mysql-update-to-5-5-use-mysql-5-5-with-php-with-safe-upgrade/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>python 2.6 easy install on centOS</title>
		<link>http://www.neteyaz.com/python-2-6-easy-install-on-centos</link>
		<comments>http://www.neteyaz.com/python-2-6-easy-install-on-centos#comments</comments>
		<pubDate>Fri, 21 Jan 2011 09:04:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=191</guid>
		<description><![CDATA[Chris Lea provides a YUM repository for python26 RPMs that can co-exist with the &#8216;native&#8217; 2.4 that is needed for quite a few admin tools on CentOS.
Quick instructions that worked at least for me:

$ sudo rpm -Uvh http://yum.chrislea.com/centos/5/i386/chl-release-5-3.noarch.rpm
$ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CHL
$ sudo yum install python26
$ python26

]]></description>
			<content:encoded><![CDATA[<p>Chris Lea provides a YUM repository for python26 RPMs that can co-exist with the &#8216;native&#8217; 2.4 that is needed for quite a few admin tools on CentOS.</p>
<p>Quick instructions that worked at least for me:</p>
<blockquote>
<pre><code><span>$ sudo rpm </span><span>-</span><span>Uvh</span><span> http</span><span>:</span><span>//yum.chrislea.com/centos/5/i386/chl-release-5-3.noarch.rpm</span><span>
$ sudo rpm </span><span>--</span><span>import</span><span> </span><span>/</span><span>etc</span><span>/</span><span>pki</span><span>/</span><span>rpm</span><span>-</span><span>gpg</span><span>/</span><span>RPM</span><span>-</span><span>GPG</span><span>-</span><span>KEY</span><span>-</span><span>CHL
$ sudo yum install python26
$ python26</span></code></pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/python-2-6-easy-install-on-centos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lock resolv.conf in ubuntu or another linux</title>
		<link>http://www.neteyaz.com/lock-resolv-conf-in-ubuntu-or-another-linux</link>
		<comments>http://www.neteyaz.com/lock-resolv-conf-in-ubuntu-or-another-linux#comments</comments>
		<pubDate>Sun, 16 May 2010 08:46:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[resolv.conf]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=173</guid>
		<description><![CDATA[to lock your resolv.conf

Bug Description
Binary package hint: network-manager
This bug causes name resolution to be painfully slow. If I manually remove the routers ip from resolv.conf it works normally, but next time the machine is booted the address gets added to the list again. I found the only way around this was to lock the file. [...]]]></description>
			<content:encoded><![CDATA[<h2>to lock your resolv.conf</h2>
<p><strong><br />
Bug Description</strong></p>
<p>Binary package hint: network-manager</p>
<p>This bug causes name resolution to be painfully slow. If I manually remove the routers ip from resolv.conf it works normally, but next time the machine is booted the address gets added to the list again.<span id="more-173"></span> I found the only way around this was to lock the file. &#8220;sudo chattr +i /etc/resolv.conf&#8221; so that network manager would not re-edit the file upon boot. I have seen this problem many times on the forums, and believe it should be made a priority to fix this. This &#8220;slow internet&#8221; gives people a horrible first impression of Ubuntu, and seems it would be easy enough to to fix. Thank you for our time.</p>
<p>ProblemType: Bug<br />
DistroRelease: Ubuntu 10.04<br />
Package: network-manager 0.8-0ubuntu2<br />
ProcVersionSignature: hostname 2.6.32-18.27-generic 2.6.32.10+drm33.1<br />
Uname: Linux 2.6.32-18-generic x86_64<br />
NonfreeKernelModules: nvidia<br />
Architecture: amd64<br />
CRDA: Error: [Errno 2] No such file or directory<br />
Date: Tue Apr 6 00:42:02 2010<br />
Gconf:</p>
<p>IfupdownConfig:<br />
 auto lo<br />
 iface lo inet loopback<br />
InstallationMedia: Ubuntu 10.04 &#8220;Lucid Lynx&#8221; &#8211; Beta amd64 (20100318)<br />
IpRoute:<br />
 192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.5 metric 1<br />
 169.254.0.0/16 dev eth0 scope link metric 1000<br />
 default via 192.168.2.1 dev eth0 proto static<br />
Keyfiles: Error: [Errno 2] No such file or directory<br />
ProcEnviron:<br />
 LANG=en_US.utf8<br />
 SHELL=/bin/bash<br />
RfKill:</p>
<p>SourcePackage: network-manager</p>
<blockquote><p>sudo chattr +i /etc/resolv.conf</p></blockquote>
<p>after this command your resolv.conf file will be locked and the file will not change on boot, or after create new connection</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/lock-resolv-conf-in-ubuntu-or-another-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu Apache, PHP, mysql, and phpmyadmin</title>
		<link>http://www.neteyaz.com/ubuntu-apache-php-mysql-and-phpyadmin</link>
		<comments>http://www.neteyaz.com/ubuntu-apache-php-mysql-and-phpyadmin#comments</comments>
		<pubDate>Fri, 07 May 2010 10:52:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=171</guid>
		<description><![CDATA[Note: In this post I&#8217;ll be showing how  to install Apache, php, MySQL and phpMyAdmin (one by one) on Ubuntu 8.10  using Terminal. If you want to install them all at the same time with  minimal fuss, I recommend you to read my post on installing LAMP.]

Installing Apache
1. Open Terminal (Application -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Note: In this post I&#8217;ll be showing how  to install Apache, php, MySQL and phpMyAdmin (one by one) on Ubuntu 8.10  using Terminal. If you want to install them all at the same time with  minimal fuss, I recommend you to read my post on <strong>installing LAMP</strong>.]</p>
<p style="text-align: justify;">
<p style="text-align: justify;"><strong><span style="text-decoration: underline;">Installing Apache</span></strong></p>
<p style="text-align: justify;">1. Open Terminal (Application -&gt;  Accessories -&gt; Terminal) and execute the following command:</p>
<blockquote>
<p style="text-align: left;"><em>sudo apt-get install apache2</em></p>
</blockquote>
<p style="text-align: justify;">2. When the setup is complete you can  check if the Apache is working properly by pointing your browser to http://localhost. If you  see the text “It works!”, it means Apache is working just fine.</p>
<p style="text-align: justify;">3. Towards the end of the installation  if you see a message like this inside Terminal, “<em>Could not reliably  determine the server’s fully qualified domain name, using 127.0.1.1 for  ServerName</em>“, you can fix this by executing the following command.  It will open Gedit (text editor).</p>
<blockquote>
<p style="text-align: left;"><em>gksu gedit /etc/apache2/conf.d/fqdn</em></p>
</blockquote>
<p style="text-align: justify;">4. When Gedit opens, type “ServerName  localhost” inside the file and click Save. Then close the file.</p>
<p style="text-align: justify;"><span id="more-151"> </span></p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Installing php5</strong></span></p>
<p style="text-align: justify;">1. Inside Terminal, execute the  following command:</p>
<blockquote>
<p style="text-align: left;"><em>sudo apt-get install php5  libapache2-mod-php5</em></p>
</blockquote>
<p style="text-align: justify;">2. When setup is complete, you have to  restart Apache so that php5 will work on Apache. Execute the following  command in Terminal:</p>
<blockquote>
<p style="text-align: left;"><em>sudo /etc/init.d/apache2 restart<span id="more-171"></span></em></p>
</blockquote>
<p style="text-align: justify;">3. You can now test to see if php5 works  with Apache. To do this you can create a new php file inside your  /var/www/ folder. (The text in red is the filename. You can put any  name.)</p>
<blockquote>
<p style="text-align: left;"><em>sudo gedit /var/www/<span style="color: #ff0000;">nass</span>.php</em></p>
</blockquote>
<p style="text-align: justify;">4. The command above will open Gedit.  Just type in the following php code, save and close the file:</p>
<blockquote>
<p style="text-align: left;"><em>&lt;? phpInfo(); ?&gt;</em></p>
</blockquote>
<p style="text-align: justify;">5. Now point your browser to  “http://localhost/<span style="color: #ff0000;">nass</span>.php”  and see if you can see the text “yoo hooo!” and a lot of information  about your php5 installation. If you see that, it means your have  successfully installed php5.</p>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Installing MySQL</strong></span></p>
<p style="text-align: justify;">1. Inside Terminal, execute the  following command:</p>
<blockquote>
<p style="text-align: left;"><em>sudo apt-get install mysql-server  libapache2-mod-auth-mysql php5-mysql</em></p>
</blockquote>
<p style="text-align: justify;">2. Towards the end of the installation  you will be prompted to set your root or admin password (see pic below)</p>
<p style="text-align: center;"><img title="set root password" src="http://ubuntuexperiment.files.wordpress.com/2008/11/mysql11.png?w=480&amp;h=335" alt="set root password" width="480" height="335" /></p>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong>Installing phpMyAdmin</strong></span></p>
<p style="text-align: justify;">1. Inside Terminal, execute the  following command:</p>
<blockquote>
<p style="text-align: left;"><em>sudo apt-get install phpmyadmin</em></p>
</blockquote>
<p style="text-align: justify;">2 During the installation you will be  asked to select the webserver that would be used to run phpMyAdmin.  Select Apache2 (see pic below).</p>
<p style="text-align: justify;"><img title="choosing webserver" src="http://ubuntuexperiment.files.wordpress.com/2008/11/phpmyadmin.png?w=480&amp;h=335" alt="choosing webserver" width="480" height="335" /></p>
<p style="text-align: justify;">3. After the installation is over  execute the following command to copy the phpmyadmin folder into the  /var/www/ directory. (By default it is installed in  /usr/share/phpmyadmin/ directory.)</p>
<blockquote>
<p style="text-align: left;"><em>sudo ln -s /usr/share/phpmyadmin/  /var/www/phpmyadmin</em></p>
</blockquote>
<p style="text-align: justify;">4. Now you can go to the phpMyAdmin  login page by pointing your browser to: http://localhost/phpmyadmin/index.php</p>
<p style="text-align: justify;">The username for MySQL and phpMyAdmin is  “root”. The password will be what you set in step 2 (under installing  MySQL).</p>
<p style="text-align: justify;">That’s it! Now you’ve successfully  installed Apache 2 webserver, php5, MySQL and phpMyAdmin on Ubuntu.</p>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong><span style="color: #ff0000;">UPDATE</span> (28-Jan-09)</strong></span></p>
<p style="text-align: justify;"><span style="color: #888888;"><span style="text-decoration: underline;"><br />
</span></span></p>
<p>(how can you install apache and php ubuntu apt-get install apache)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/ubuntu-apache-php-mysql-and-phpyadmin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yakuake Autostart (KDE)</title>
		<link>http://www.neteyaz.com/yakuake-autostart-kde</link>
		<comments>http://www.neteyaz.com/yakuake-autostart-kde#comments</comments>
		<pubDate>Tue, 04 May 2010 18:18:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[autorstart]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[yakuake]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=169</guid>
		<description><![CDATA[Make Yakuake autostart:
Open up your home folder; make sure you can see your hidden files.
Navigate to the .kde/Autostart folder and create a new text file:  yakuake.
Paste this in the file:
#!/bin/bash
/usr/bin/yakuake
Start up your new Yakuake  Terminal and press F12.
~/.kde/Autostart/
chmod +x yakuake
Next time you start Ubuntu Yakuake will be running. You just need to  [...]]]></description>
			<content:encoded><![CDATA[<h2>Make Yakuake autostart:</h2>
<p>Open up your home folder; make sure you can see your hidden files.<br />
Navigate to the .kde/Autostart folder and create a new text file:  yakuake.<br />
Paste this in the file:</p>
<blockquote style="margin-bottom: 0pt; margin-top: 0pt;"><p>#!/bin/bash<br />
/usr/bin/yakuake</p></blockquote>
<p>Start up your new Yakuake  Terminal and press F12.</p>
<blockquote style="margin-bottom: 0pt; margin-top: 0pt;"><p>~/.kde/Autostart/<br />
chmod +x yakuake</p></blockquote>
<p>Next time you start Ubuntu Yakuake will be running. You just need to  press F12 to access it.<br />
To configure it you can right click on the  Yakuake screen and use the menu.<br />
The size of the window and other  settings can be accessed by clicking the small down arrow at the bottom  right of the screen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/yakuake-autostart-kde/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do not start MySQL on startup</title>
		<link>http://www.neteyaz.com/do-not-start-mysql-on-startup</link>
		<comments>http://www.neteyaz.com/do-not-start-mysql-on-startup#comments</comments>
		<pubDate>Sun, 20 Dec 2009 13:34:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[init.d]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqld]]></category>
		<category><![CDATA[stop]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=162</guid>
		<description><![CDATA[Stopping to autostart mysql service
(firstly u must be sure to there is a&#60;strong&#62; /etc/init.d/mysql or mysqld&#60;/strong&#62; )

# chkconfig --list &#124; grep mysqld
mysqld          0:off   1:off   2:off   3:on   4:on   5:on   6:off
# chkconfig --level 345 mysql off
error reading information on service mysql: No such file or directory
# chkconfig --level 345 mysqld off
# reboot

]]></description>
			<content:encoded><![CDATA[<p>Stopping to autostart mysql service</p>
<p>(firstly u must be sure to there is a&lt;strong&gt; /etc/init.d/mysql or mysqld&lt;/strong&gt; )</p>
<pre class="pretyprint">
# chkconfig --list | grep mysqld
mysqld          0:off   1:off   2:off   3:on   4:on   5:on   6:off
# chkconfig --level 345 mysql off
error reading information on service mysql: No such file or directory
# chkconfig --level 345 mysqld off
# reboot
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/do-not-start-mysql-on-startup/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to autostart MYSQL (init.d and chkconfig)</title>
		<link>http://www.neteyaz.com/how-to-autostart-mysql-init-d-and-chkconfig</link>
		<comments>http://www.neteyaz.com/how-to-autostart-mysql-init-d-and-chkconfig#comments</comments>
		<pubDate>Sun, 20 Dec 2009 13:30:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[autostart]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[init.d]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=158</guid>
		<description><![CDATA[chkconfig
The chkconfig command can also be used to activate and deactivate services. If you use the chkconfig &#8211;list command, you will see a list of system services and whether they are started (on) or stopped (off) in runlevels 0-6 (at the end of the list, you will see a section for the services managed by [...]]]></description>
			<content:encoded><![CDATA[<p><strong>chkconfig</strong></p>
<p>The chkconfig command can also be used to activate and deactivate services. If you use the chkconfig &#8211;list command, you will see a list of system services and whether they are started (on) or stopped (off) in runlevels 0-6 (at the end of the list, you will see a section for the services managed by xinetd.<br />
<span id="more-158"></span><br />
If you use chkconfig &#8211;list to query a service managed by xinetd, you will see whether the xinetd service is enabled (on) or disabled (off). For example, the following command shows that finger is enabled as an xinetd service: </p>
<p><strong>$ chkconfig &#8211;list finger<br />
finger          on</strong></p>
<p>As shown above, if xinetd is running, finger is enabled.</p>
<p>If you use chkconfig &#8211;list to query a service in /etc/rc.d, you will see the service&#8217;s settings for each runlevel, like the following:</p>
<p><strong>$ chkconfig &#8211;list anacron<br />
anacron         0:off   1:off   2:on    3:on    4:on    5:on    6:off</strong></p>
<p>More importantly, chkconfig can be used to set a service to be started (or not) in a specific runlevel. For example, to turn nscd off in runlevels 3, 4, and 5, use the command:</p>
<p><strong>chkconfig &#8211;level 345 nscd off</strong></p>
<p>See the chkconfig man page for more information on how to use it.<br />
<strong><br />
Warning</strong></p>
<p>Services managed by xinetd are immediately affected by chkconfig. For example, if xinetd is running, finger is disabled, and the command chkconfig finger on is executed, finger is immediately enabled without having to restart xinetd manually. Changes for other services do not take effect immediately after using chkconfig. You must stop or start the individual service with the command service daemon stop. In the previous example, replace daemon with the name of the service you want to stop; for example, httpd. Replace stop with start or restart to start or restart the service. </p>
<p>To autostart you mysql service : (firstly u must be sure to there is a<strong> /etc/init.d/mysql or mysqld</strong> )</p>
<pre class="pretyprint">
# chkconfig --list | grep mysqld
mysqld          0:off   1:off   2:off   3:off   4:off   5:off   6:off
# chkconfig --level 345 mysql on
error reading information on service mysql: No such file or directory
# chkconfig --level 345 mysqld on
# reboot
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/how-to-autostart-mysql-init-d-and-chkconfig/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove directory not empty linux console</title>
		<link>http://www.neteyaz.com/how-to-remove-a-directory-in-linux-console</link>
		<comments>http://www.neteyaz.com/how-to-remove-a-directory-in-linux-console#comments</comments>
		<pubDate>Tue, 17 Nov 2009 14:05:37 +0000</pubDate>
		<dc:creator>banias</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[empty]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[rm]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=91</guid>
		<description><![CDATA[How to remove a directory in linux console
first look at rm command .

rmdir command only removes an empty directory.
root@client-2-5-102-94 [/home/neteyaz/public_html/*****.com]# rmdir directory/
rmdir: /*****./access-logs: Directory not empty
rmdir: /*****./cpbackup-exclude.conf: Not a directory
rmdir: /*****.//*****..php: Not a directory
rmdir: /*****.//*****..sql: Not a directory
rmdir: /*****.//*****..tar.gz: Not a directory
rmdir: /*****.//*****.: Directory not empty
if you want to remove a &#8220;non empty directory&#8221; u [...]]]></description>
			<content:encoded><![CDATA[<h2>How to remove a directory in linux console</h2>
<p>first look at <a href="http://www.neteyaz.com/2009/11/17/linux-rm-command.php">rm command</a> .<br />
<span id="more-91"></span></p>
<blockquote><p><strong>rmdir</strong> command only removes an empty directory.<br />
root@client-2-5-102-94 [/home/neteyaz/public_html/*****.com]# rmdir directory/<br />
rmdir: /*****./access-logs: Directory not empty<br />
rmdir: /*****./cpbackup-exclude.conf: Not a directory<br />
rmdir: /*****.//*****..php: Not a directory<br />
rmdir: /*****.//*****..sql: Not a directory<br />
rmdir: /*****.//*****..tar.gz: Not a directory<br />
rmdir: /*****.//*****.: Directory not empty</p></blockquote>
<p>if you want to <strong>remove</strong> a &#8220;<strong>non empty directory</strong>&#8221; u can use &#8220;<strong>rm -r</strong>&#8221; command for deleting a directory.</p>
<p>if you want to ignored removing full directory :</p>
<pre>rm -r -f directory/</pre>
<p><strong>-f</strong> means force ( remove all, ignore everything )</p>
<p><strong>tags:</strong> remove directory ubuntu terminal, remove full not empty directory, remove directory ubuntu terminal</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/how-to-remove-a-directory-in-linux-console/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux rm command</title>
		<link>http://www.neteyaz.com/linux-rm-command</link>
		<comments>http://www.neteyaz.com/linux-rm-command#comments</comments>
		<pubDate>Tue, 17 Nov 2009 13:57:39 +0000</pubDate>
		<dc:creator>banias</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[rm]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=88</guid>
		<description><![CDATA[
Linux console remove command (rm)
NAME
rm &#8211; remove files or directories
SYNOPSIS
rm [OPTION]&#8230; FILE&#8230;
DESCRIPTION
This  manual  page  documents  the  GNU version of rm.  rm removes each
specified file.  By default, it does not remove directories.
If a file is unwritable, the standard input is a tty,  and  the  -f  [...]]]></description>
			<content:encoded><![CDATA[<p><span id="more-88"></span><br />
<h2>Linux console remove command (rm)</h2>
<blockquote><p><strong>NAME</strong><br />
rm &#8211; remove files or directories</p>
<p><strong>SYNOPSIS</strong><br />
<strong>rm [OPTION]&#8230; FILE&#8230;</strong></p>
<p><strong>DESCRIPTION</strong><br />
This  manual  page  documents  the  GNU version of rm.  rm removes each<br />
specified file.  By default, it does not remove directories.</p>
<p>If a file is unwritable, the standard input is a tty,  and  the  -f  or<br />
&#8211;force  option is not given, rm prompts the user for whether to remove<br />
the file.  If the response is not affirmative, the file is skipped.</p>
<p><strong>OPTIONS</strong><br />
Remove (unlink) the FILE(s).</p>
<p><strong>-f, &#8211;force</strong><br />
ignore nonexistent files, never prompt</p>
<p><strong>-i, &#8211;interactive</strong></p></blockquote>
<p>alsa you can look at: <a href="http://www.neteyaz.com/2009/11/17/how-to-remove-a-directory-in-linux-console.php">remove a directory</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/linux-rm-command/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>php_network_getaddresses: getaddrinfo failed</title>
		<link>http://www.neteyaz.com/php_network_getaddresses-getaddrinfo-failed</link>
		<comments>http://www.neteyaz.com/php_network_getaddresses-getaddrinfo-failed#comments</comments>
		<pubDate>Thu, 12 Nov 2009 12:23:51 +0000</pubDate>
		<dc:creator>banias</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[getaddrinfo]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[php_network_getaddresses]]></category>
		<category><![CDATA[what]]></category>

		<guid isPermaLink="false">http://www.neteyaz.com/?p=28</guid>
		<description><![CDATA[if you get an error like this:

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/neteyaz/public_html/mevcut/mevcudiyet.php on line 152
Warning: file_get_contents(http://images.google.com.tr/images?as_q=neteyaz&#038;hl=tr&#038;um=1&#038;btnG=Google%27da+Ara&#038;as_epq=&#038;as_oq=&#038;as_eq=&#038;imgtype=&#038;imgsz=&#038;imgw=&#038;imgh=&#038;imgar=&#038;as_filetype=jpg&#038;imgc=&#038;as_sitesearch=&#038;as_rights=&#038;safe=images&#038;as_st=y) [function.file-get-contents]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/neteyaz/public_html/mevcut/mevcudiyet.php on line 152
SOLUTION: check your /etc/hosts file. most likely there are two lines to describe your server.
ping [...]]]></description>
			<content:encoded><![CDATA[<p>if you get an error like this:<br />
<span id="more-28"></span></p>
<blockquote><p>Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/neteyaz/public_html/mevcut/mevcudiyet.php on line 152</p>
<p>Warning: file_get_contents(http://images.google.com.tr/images?as_q=neteyaz&#038;hl=tr&#038;um=1&#038;btnG=Google%27da+Ara&#038;as_epq=&#038;as_oq=&#038;as_eq=&#038;imgtype=&#038;imgsz=&#038;imgw=&#038;imgh=&#038;imgar=&#038;as_filetype=jpg&#038;imgc=&#038;as_sitesearch=&#038;as_rights=&#038;safe=images&#038;as_st=y) [function.file-get-contents]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/neteyaz/public_html/mevcut/mevcudiyet.php on line 152</p></blockquote>
<p><strong>SOLUTION:</strong> check your /etc/hosts file. most likely there are two lines to describe your server.<br />
ping your domain and get your ip. then remove other ip addresses. restart server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neteyaz.com/php_network_getaddresses-getaddrinfo-failed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

