Linux Delete non-empty directory

Source: Internet
Author: User

the question was basic, but it bothered me for a while. (The main discussion here is the command-line mode)
I thought I should use the command rmdir .
However, it found that it could not delete a non-empty directory.
It was discovered that you should use the command RM-RF directory name
where parameter- f indicates force. Using this parameter will not prompt you to delete it.   gnu linux code::blocks Settings Use gnome-terminal to display the output summary of the console program: Settings-environment-terminal to launch Console programs:gnome-terminal-t $TITLE-x Read the full text posted @ 2011-11-20 14:46  Knife Read (187) |  Comments (0)     Edit  ubuntu PDF Chinese does not display the problem Resolution summary: sudo apt-get install poppler-data Read full posted @ 2010-01-10 00:09  knife Reading (117) |  Comments (0)    edit man Color abstract in  ubuntu: Add the following code to the. BASHRC: Export less_termcap_mb=$ ' \e[01;31m ' export less_termcap_md=$ ' \e[01;31m ' export less_termcap_me=$ ' \e[0m ' export less_termcap_se=$ ' \e[0m ' export less_termcap_so= $ ' \e[01;44;33m ' export less_t ... Read the full text posted @ 2009-11-21 22:57  knife Reading ($) |  Comments (0)    edit  ubuntu set personalization command line prompt summary: in ~/. BASHRC last line added to export ps1= "\e[32;40m\[email protected]\w> \e[0m" read the full text posted @ 2009-11-21 22:49  knife Reading |  Comments (0)    edit  [zz]ubuntu How to set VI Summary: The following settings for VIM apply to Ubuntu and Fedora Systems, other systems are not validated The configuration file for vim in Ubuntu is stored in the/etc/vim directory, and the configuration file named VIMRC in Fedora is stored in the/etc directory with the configuration file nameFor VIMRC, enter the following command in the terminal to edit the VIMRC profile: sudo vim/etc/vim/vimrc or sudo gedit/etc/vim/vimrc ... Read the full text posted @ 2009-07-23 22:06  knife Reading (1777) |  Comments (0)    edit   Change the resolution of the input file when using MEncoder summary: MEncoder is a really good tool. If you want to change the resolution of the output file, you can use the-VF scale parameter. The following is a copy from Man mencoder. Specifically, there is no further study, simply: if you want to maintain the aspect ratio, and the output file width is 600, then write-VF scale=600:-3 scale[=w:h[:ilaced[:chr_drop[:p ar[:p ar2[:p resize[: NOUP[:ARND]] [...] Read the full text of posted @ 2008-03-16 18:03  knife Reading ( lftp) |  Comments (0)    Editing the cultural issues Summary: LFTP default support for Chinese is not good, Some simple changes need to be made. After the LFTP is installed, modify the/etc/lftp.conf and insert it at the end: Set Ftp:charset "GBK" set File:charset "Utf-8″ is OK. 3x to http://my.donews.com/weasky/2006/10/03/eyMnAlGsEyulIGCqyoaHxtrcFUDAZHXCnEjG/Read full posted @ 2006-12-26 21:45  knife Reading (PNS) |  Comments (0)    edit   File Share--Connection summary: Hard connect and soft connect hard Connect ln Adds an entry to the directory, and the connection file and source file have the same inode number. The connection count for both is +1. Disadvantage: cannot cross different file system soft connection Ln-s New add a file, content is the path information of the connected file. It has a different inode number and size than the source file. Can span different file systems, but expire when the source file location is moved. Read the full text posted @ 2006-10-04 16:45  knife Reading (a) |  comments (0)    edit   file types and access rights summary: 5 types of files in Linux 1. Normal file 2. Table of Contents 3. Special documents (devices, usually placed in/dev) 4. Symbolic connection 5. Named Pipes (FIFO) Note: The Inter-process communication (IPC) mechanism of Linux, also called the IPC Primitive, 3 common primitives are pipelines (kernel-state cache, which allows two associated and process communication on the same machine) Named Pipes (FIFO, a file, Allow two to communicate on the same machine without the associated process) ... Read the full text posted @ 2006-10-04 12:09  knife Reading (143) |  Comments (0)    edit  ubuntu Use notes (4) Take care of the VOD and sub abstracts: Originally wanted to use MPlayer to see the VOD. But it hasn't been done. Then I accidentally saw that project had a xine plugin in it. It looks very simple, just download it and use it OK. Then I'll take him down and fix it with a patch. As for Sub, I follow the Ubuntu wiki approach, but it's not done. Later on Google to search out an article, according to his method is done. That's it: http://linux.hiweed.com/node/430 can now watch movies ... Read the full text posted @ 2006-09-11 22:51  knife Reading (380) |  Comments (0)    edit  ubuntu Use notes (3) Summary: Recently found a lot of Chinese cultural problems, In many cases, the Chinese language is not displayed properly. Like Emacs. This is disappointing to me. Although "Let the computer display Chinese is a very funny thing", but we also inseparable from their own mother tongue ah. I think the main problem is the character encoding problem, what UTF.GB made me very faint. Be ready to check this information tomorrow. A problem solved by a problem. Read the full text of posted @ 2006-09-08 00:53  Knife Read |  Comments (0)    edit  ubuntu Use Notes (2)-Font beautification summary: Ugly system is no one likes, here is a way to beautify the font. HTTP://WWW.KLAN.CN/READ.PHP?15 wants to make your system more beautiful. Pleasing. My own system uses a simpler approach, as follows: Use the fonts in XP to beautify your language: Copy 3 font files (SimSun. TTC Sursong. TTF Tahoma.ttf) to/usr/share/fonts/zh_cn/truetype/directory update Linux Word ... Read the full text posted @ 2006-09-05 12:19  knife Reading (| ) Comments (0)    edit   Linux Summary: Just a few days ago, Red Hat 9.0 was installed, These two days are busy doing some system initialization work: Modify MAC address to modify MAC address method: Edit the/etc/rc.d/rc.local file, add ifconfig eth0 down ifconfig eth0 hw ether xx:x at the end of the file X:xx:xx:xx ifconfig etho up ifdown eth0 ifup eth0 installed a MP3 plug ... Read the full text posted @ 2006-09-04 19:04  Knife Read (All) |  Comments (0)    edit  ubuntu Use notes (1) Summary: The previous period of time with the radhat. It's an old-fashioned one, indeed. The interface is hard to see. It makes people think it's antiques. Ubuntu is not the same, at least, the Chinese culture and user interface are doing well. Installing and removing software is convenient. However, because I am a Linux absolute rookie, so in the Ubuntu world is still struggling. Summarize today's work: In the morning Fix the software manager (because there was an error before installing a Flash plugin, and then it crashed.) It doesn't work with a few methods, and finally it's all related to him under the new software package Manager ... Read the full text posted @ 2006-09-04 19:02  knife Reading (94) |  Comments (0)    edit  linux How to delete a non-empty directory summary: The question is basic, But it bothered me for some time. (The main discussion here is in command-line mode) I thought I should use the command rmdir but found that it could not delete the non-empty directory. It was discovered that the original should use the command RM-RF directory name where parameter-F represents force. Using this parameter will not prompt you if you want to delete it. Read more posted @ 2006-06-29 22:03  knife Reading (67428) |   Reviews (+)    edit

Linux Deletes a non-empty directory

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.