<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Ubuntu Linux: Delete directory command in Terminal</title> <atom:link href="http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: D0tty</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-66572</link> <dc:creator>D0tty</dc:creator> <pubDate>Tue, 10 Jan 2012 01:56:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-66572</guid> <description>You are a god. Simple and clear instructions that worked when apparently I was doing something wrong with the instructions given above.
&lt;3</description> <content:encoded><![CDATA[<p>You are a god. Simple and clear instructions that worked when apparently I was doing something wrong with the instructions given above.</p><p>&lt;3</p> ]]></content:encoded> </item> <item><title>By: Kenneth Wahl Jr.</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-57466</link> <dc:creator>Kenneth Wahl Jr.</dc:creator> <pubDate>Fri, 22 Apr 2011 00:53:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-57466</guid> <description>using &quot;sudo&quot; will confirm all files of specified directory will be removed but there&#039;s no need unless the permissions are set against your needs. Try sudo chmod 770 &quot;file name&quot;(or 777, shouldn&#039;t matter really. There is a small formula to determine the permissions with chmod, look it up) Make sure you&#039;re in the directory with the file or type in the full path i.e. sudo chmod 770 BunkGames if you&#039;re in the directory and sudo chmod 770 /home/user/Games/BunkGames if your anywhere else. Hope this helped. Also make sure you use the &quot;man pages&quot;. man=manual and if you type &quot;man&quot; before nearly any command you will get to see nearly all of that commands capabilities and how to use them.</description> <content:encoded><![CDATA[<p>using &#8220;sudo&#8221; will confirm all files of specified directory will be removed but there&#8217;s no need unless the permissions are set against your needs. Try sudo chmod 770 &#8220;file name&#8221;(or 777, shouldn&#8217;t matter really. There is a small formula to determine the permissions with chmod, look it up) Make sure you&#8217;re in the directory with the file or type in the full path i.e. sudo chmod 770 BunkGames if you&#8217;re in the directory and sudo chmod 770 /home/user/Games/BunkGames if your anywhere else. Hope this helped. Also make sure you use the &#8220;man pages&#8221;. man=manual and if you type &#8220;man&#8221; before nearly any command you will get to see nearly all of that commands capabilities and how to use them.</p> ]]></content:encoded> </item> <item><title>By: Techie</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-56155</link> <dc:creator>Techie</dc:creator> <pubDate>Sun, 06 Mar 2011 14:05:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-56155</guid> <description>This is a secured login. Of course it will not show what you type in. It is invisible. When it prompts you for your password, you type your password in but you do not see ******* as you type in your password in other terminals. This is a security measure. Just type your password (yes, it is there even if you cannot see it. It&#039;s invisible) then hit enter. This will log you into the system. Then you can just do your thing. Unless you are in the sudoers file. In order to be able to access a particular machine, first of all, you should have an account set up in the box in order for you to log in. Second, if you do not have straight root access (usually done for first level support as having root access might be too dangerous for inexperienced admins), you will be added to a sudoers file. If you are on the sudoers file then depending on what type of group access you have, your sudo config file only limits you to what you are allowed to do. Ask you Systems Admin (Unix / Limux) to see what the real issue is. Usually, they are just trying to give someone a hard time or you might need a manager&#039;s approval before you are given access by the Unix Systems Admin.</description> <content:encoded><![CDATA[<p>This is a secured login. Of course it will not show what you type in. It is invisible. When it prompts you for your password, you type your password in but you do not see ******* as you type in your password in other terminals. This is a security measure. Just type your password (yes, it is there even if you cannot see it. It&#8217;s invisible) then hit enter. This will log you into the system. Then you can just do your thing. Unless you are in the sudoers file. In order to be able to access a particular machine, first of all, you should have an account set up in the box in order for you to log in. Second, if you do not have straight root access (usually done for first level support as having root access might be too dangerous for inexperienced admins), you will be added to a sudoers file. If you are on the sudoers file then depending on what type of group access you have, your sudo config file only limits you to what you are allowed to do. Ask you Systems Admin (Unix / Limux) to see what the real issue is. Usually, they are just trying to give someone a hard time or you might need a manager&#8217;s approval before you are given access by the Unix Systems Admin.</p> ]]></content:encoded> </item> <item><title>By: Amjad</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-56152</link> <dc:creator>Amjad</dc:creator> <pubDate>Sun, 06 Mar 2011 09:26:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-56152</guid> <description>@matthew: This might tell you.
http://ubuntu-ky.ubuntuforums.org/showthread.php?t=1126728
In fact so far I don&#039;t know any option to show the password characters.</description> <content:encoded><![CDATA[<p>@matthew: This might tell you.</p><p><a
href="http://ubuntu-ky.ubuntuforums.org/showthread.php?t=1126728" rel="nofollow">http://ubuntu-ky.ubuntuforums.org/showthread.php?t=1126728</a><br
/> In fact so far I don&#8217;t know any option to show the password characters.</p> ]]></content:encoded> </item> <item><title>By: matthew sellers</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-56150</link> <dc:creator>matthew sellers</dc:creator> <pubDate>Sun, 06 Mar 2011 02:18:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-56150</guid> <description>i know this doesnt necessarily go with the topic but i am really getting frusterated.. ok so i cant seem to get the terminal to let me type in my sudo password.. i put in the coding for the compiz fusion but when it brings up the statement to type my sudo password i try and nothing is coming up no letters what so ever... it works all the way up until that point.. so i hit enter to try it again and it keeps doin the same thing but only with my pass word can some one please help me figure this out cuz it is really hindering the work i am trying to do..</description> <content:encoded><![CDATA[<p>i know this doesnt necessarily go with the topic but i am really getting frusterated.. ok so i cant seem to get the terminal to let me type in my sudo password.. i put in the coding for the compiz fusion but when it brings up the statement to type my sudo password i try and nothing is coming up no letters what so ever&#8230; it works all the way up until that point.. so i hit enter to try it again and it keeps doin the same thing but only with my pass word can some one please help me figure this out cuz it is really hindering the work i am trying to do..</p> ]]></content:encoded> </item> <item><title>By: Techie</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-55808</link> <dc:creator>Techie</dc:creator> <pubDate>Sun, 20 Feb 2011 17:09:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-55808</guid> <description>Use sudo rmdir -rf /dir/dir/*file* &lt;--(the complete directory path) then try rmdir /dir/dir/*</description> <content:encoded><![CDATA[<p>Use sudo rmdir -rf /dir/dir/*file* &lt;&#8211;(the complete directory path) then try rmdir /dir/dir/*</p> ]]></content:encoded> </item> <item><title>By: wildcat</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-55795</link> <dc:creator>wildcat</dc:creator> <pubDate>Sun, 20 Feb 2011 04:32:38 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-55795</guid> <description>I am having real trouble with Linux, i need some help.. I can&#039;t figure out how to remove a directory i made, i was trying to install openoffice 3.3, then following the steps posted in some website, something like ( sudo -vxzf filename) done that and other stuff, the outcome was a file directory, that i couldn&#039;t remove anymore &quot;and no openoffice at all&quot;. I have tried ( $rmdir dirpath), when i exe. that command all that says is ( dirpath is a directory).. that&#039;s all i checked the dirpath, it&#039;s still there. I am new to Linux..appreciate any help.
I am  running Ubuntu 10.10.</description> <content:encoded><![CDATA[<p>I am having real trouble with Linux, i need some help.. I can&#8217;t figure out how to remove a directory i made, i was trying to install openoffice 3.3, then following the steps posted in some website, something like ( sudo -vxzf filename) done that and other stuff, the outcome was a file directory, that i couldn&#8217;t remove anymore &#8220;and no openoffice at all&#8221;. I have tried ( $rmdir dirpath), when i exe. that command all that says is ( dirpath is a directory).. that&#8217;s all i checked the dirpath, it&#8217;s still there. I am new to Linux..appreciate any help.<br
/> I am  running Ubuntu 10.10.</p> ]]></content:encoded> </item> <item><title>By: black skull</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-55660</link> <dc:creator>black skull</dc:creator> <pubDate>Tue, 15 Feb 2011 19:06:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-55660</guid> <description>thx for help :)</description> <content:encoded><![CDATA[<p>thx for help :)</p> ]]></content:encoded> </item> <item><title>By: goosy</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-55226</link> <dc:creator>goosy</dc:creator> <pubDate>Fri, 28 Jan 2011 15:13:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-55226</guid> <description>thx for this handy help</description> <content:encoded><![CDATA[<p>thx for this handy help</p> ]]></content:encoded> </item> <item><title>By: stullko</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-52912</link> <dc:creator>stullko</dc:creator> <pubDate>Sun, 19 Dec 2010 11:08:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-52912</guid> <description>Thanks for this! it really helped me!</description> <content:encoded><![CDATA[<p>Thanks for this! it really helped me!</p> ]]></content:encoded> </item> <item><title>By: Techie</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-50987</link> <dc:creator>Techie</dc:creator> <pubDate>Fri, 19 Nov 2010 16:04:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-50987</guid> <description>Actually I did those already. I tried :
$ sudo rm -rf /home/jzhou01/*  and $sudo rmdir /home/jzhou01 but it did not work.
With the -rf the reply was :
rmdir: invalid option — r
Try `rmdir –help’ for more information
Without the -rf and just $sudo rmdir /home/jzhou01, the reply was :
Directory is not empty.
I found out later that the only files left in the directory were started with a . , sorta like .profile or some other invisible files that will not show with: ls /home/namedir or ls -la /home/namedir
When I tried this syntax :
$sudo rm /home/jzhou01   it worked. I checked the /home directory and the username of jzhou01 and it&#039;s subdirectories and files were deleted or removed.
We use sudo because our management is very strict and only three senior systems admins in Unix are the ones with root access besides the manager of that dept. Otherwise all others in the Intermediate Systems Admin category will be in the sudoer&#039;s file and will just have to use &quot;sudo&quot; for any administrative command. Very strict training so that when we reach the Senior level, we are able to fine tune and troubleshoot problems easily.
thanks.</description> <content:encoded><![CDATA[<p>Actually I did those already. I tried :<br
/> $ sudo rm -rf /home/jzhou01/*  and $sudo rmdir /home/jzhou01 but it did not work.</p><p>With the -rf the reply was :<br
/> rmdir: invalid option — r<br
/> Try `rmdir –help’ for more information</p><p>Without the -rf and just $sudo rmdir /home/jzhou01, the reply was :</p><p>Directory is not empty.</p><p>I found out later that the only files left in the directory were started with a . , sorta like .profile or some other invisible files that will not show with: ls /home/namedir or ls -la /home/namedir</p><p>When I tried this syntax :<br
/> $sudo rm /home/jzhou01   it worked. I checked the /home directory and the username of jzhou01 and it&#8217;s subdirectories and files were deleted or removed.</p><p>We use sudo because our management is very strict and only three senior systems admins in Unix are the ones with root access besides the manager of that dept. Otherwise all others in the Intermediate Systems Admin category will be in the sudoer&#8217;s file and will just have to use &#8220;sudo&#8221; for any administrative command. Very strict training so that when we reach the Senior level, we are able to fine tune and troubleshoot problems easily.</p><p>thanks.</p> ]]></content:encoded> </item> <item><title>By: Amjad</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-50984</link> <dc:creator>Amjad</dc:creator> <pubDate>Fri, 19 Nov 2010 13:13:04 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-50984</guid> <description>rmdir -r is nothing.
rm -rf will remove the files in a certain driectory.
when the directory is empty, do rmdir .
like
$&gt;rm -rf /home/jzhou01/*
then
$&gt; rmdir /home/jzhou01/
Hope it works.
and by the way I dont get why u want it with sudo.</description> <content:encoded><![CDATA[<p>rmdir -r is nothing.<br
/> rm -rf will remove the files in a certain driectory.<br
/> when the directory is empty, do rmdir .<br
/> like<br
/> $&gt;rm -rf /home/jzhou01/*<br
/> then<br
/> $&gt; rmdir /home/jzhou01/<br
/> Hope it works.<br
/> and by the way I dont get why u want it with sudo.</p> ]]></content:encoded> </item> <item><title>By: Techie</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-50976</link> <dc:creator>Techie</dc:creator> <pubDate>Fri, 19 Nov 2010 09:27:43 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-50976</guid> <description>I tried everything but still no luck. See what happened :
[rockie01@mxrplnux01 home]$ sudo rmdir -rf /home/jzhou01
rmdir: invalid option -- r
Try `rmdir --help&#039; for more information.
[rockie01@mxrplnuxt01 home]$ sudo rmdir -rf /home/jzhou01/*
rmdir: invalid option -- r
Try `rmdir --help&#039; for more information.
I also tried to delete the user with userdel -r but it says, the user does not exist then when I check the home directory, the user name and subdirectories are still there. Someone who deleted the user account before me did not do it correctly because the user name and it&#039;s sub-directories are still in the home directory. How do I remove this user name directory?</description> <content:encoded><![CDATA[<p>I tried everything but still no luck. See what happened :</p><p>[rockie01@mxrplnux01 home]$ sudo rmdir -rf /home/jzhou01<br
/> rmdir: invalid option &#8212; r<br
/> Try `rmdir &#8211;help&#8217; for more information.<br
/> [rockie01@mxrplnuxt01 home]$ sudo rmdir -rf /home/jzhou01/*<br
/> rmdir: invalid option &#8212; r<br
/> Try `rmdir &#8211;help&#8217; for more information.</p><p>I also tried to delete the user with userdel -r but it says, the user does not exist then when I check the home directory, the user name and subdirectories are still there. Someone who deleted the user account before me did not do it correctly because the user name and it&#8217;s sub-directories are still in the home directory. How do I remove this user name directory?</p> ]]></content:encoded> </item> <item><title>By: Ahsan</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-50644</link> <dc:creator>Ahsan</dc:creator> <pubDate>Wed, 10 Nov 2010 10:05:06 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-50644</guid> <description>thanx it really helped me</description> <content:encoded><![CDATA[<p>thanx it really helped me</p> ]]></content:encoded> </item> <item><title>By: nikhil</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-48050</link> <dc:creator>nikhil</dc:creator> <pubDate>Fri, 25 Jun 2010 04:59:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-48050</guid> <description>thanx 4 dis help...</description> <content:encoded><![CDATA[<p>thanx 4 dis help&#8230;</p> ]]></content:encoded> </item> <item><title>By: Amjad</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-46683</link> <dc:creator>Amjad</dc:creator> <pubDate>Thu, 01 Apr 2010 11:50:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-46683</guid> <description>@ LCC:
Go where you have your directory. But dont enter into Directory.Use
$&gt; rm -rf Directory/*
This shall remove all the files contained in &quot;Directory&quot;.
Then do
$&gt; rmdir Directory
This shall remove the Directory.
Hope it works</description> <content:encoded><![CDATA[<p>@ LCC:<br
/> Go where you have your directory. But dont enter into Directory.Use<br
/> $&gt; rm -rf Directory/*<br
/> This shall remove all the files contained in &#8220;Directory&#8221;.<br
/> Then do<br
/> $&gt; rmdir Directory<br
/> This shall remove the Directory.<br
/> Hope it works</p> ]]></content:encoded> </item> <item><title>By: LCC</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-45851</link> <dc:creator>LCC</dc:creator> <pubDate>Fri, 05 Feb 2010 19:10:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-45851</guid> <description>I really doesn&#039;t work.  I get the error message saying rmdir:  invalid option -- &#039;r&#039; when i put in the following:
rmdir -r /sametime-connect-8.0.2/opt/ibm/lotus/sametime/eclipse/plugins/org.apache.lecene_1.4.103.v20060601/META-INF</description> <content:encoded><![CDATA[<p>I really doesn&#8217;t work.  I get the error message saying rmdir:  invalid option &#8212; &#8216;r&#8217; when i put in the following:<br
/> rmdir -r /sametime-connect-8.0.2/opt/ibm/lotus/sametime/eclipse/plugins/org.apache.lecene_1.4.103.v20060601/META-INF</p> ]]></content:encoded> </item> <item><title>By: Raffy \n Apurillo</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-43058</link> <dc:creator>Raffy \n Apurillo</dc:creator> <pubDate>Thu, 13 Aug 2009 05:49:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-43058</guid> <description>It really works thanks</description> <content:encoded><![CDATA[<p>It really works thanks</p> ]]></content:encoded> </item> <item><title>By: PCMaind</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-42477</link> <dc:creator>PCMaind</dc:creator> <pubDate>Sat, 11 Jul 2009 08:16:21 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-42477</guid> <description>tnx for this</description> <content:encoded><![CDATA[<p>tnx for this</p> ]]></content:encoded> </item> <item><title>By: David</title><link>http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-39991</link> <dc:creator>David</dc:creator> <pubDate>Sun, 25 Jan 2009 00:01:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/delete-directory-command-in-terminal/#comment-39991</guid> <description>Thanks for this. However, it doesn&#039;t always work. I found that Thunderbird stores a hidden file in a /home directory and I kept getting a message saying that the folder was not empty. In the end, I used &quot;gksudo nautilus&quot;, renamed the hidden file and then deleted it.</description> <content:encoded><![CDATA[<p>Thanks for this. However, it doesn&#8217;t always work. I found that Thunderbird stores a hidden file in a /home directory and I kept getting a message saying that the folder was not empty. In the end, I used &#8220;gksudo nautilus&#8221;, renamed the hidden file and then deleted it.</p> ]]></content:encoded> </item> </channel> </rss>
