RM command
Creating files in Linux is easy, and files can become obsolete and useless in the system at any time. Users can delete them with the RM command. The function of this command is to delete one or more files or directories in a directory,
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
#include #include#include/** * Recursively delete directories (delete the directory and the files and directories contained in the directory) * @dir: The absolute path of the directory to be deleted*/intRemove_dir (Const Char*dir) { CharCur_dir[]
Linux Delete directory is very simple, many people still accustomed to use rmdir, but once the directory is not empty, it is deeply distressed.Direct RM is available, but add two parameters-rf that is: RM-RF directory name-R is recursive down,
Under Linux When we use the rmdir command to delete a folder, it often appears
"Rmdir:failed to remove ' tmp ': Directory not Empty"
Such a mistake, then, how to delete a Non-empty folder.
Actually very simple, with the following command on it,
Common commands for folders in Linux-delete non-empty-copy-Rename-general Linux technology-Linux technology and application information. For more information, see the following. Generally, the rm file name is used to delete a file.
To delete a
Delete non-empty folders in linux-Linux general technology-Linux technology and application information. For more information, see. When we delete folders that are not needed in linux, sometimes we say that you are not authorized enough. Sometimes
I thought I should use the command rmdirHowever, it was found that it could not delete the Non-empty directory.Later found that the original should use the command RM-RF directory namewhere the parameter-F indicates force. Using this parameter will
LinuxCreate and DELETE commands for directoriesmkdir CommandFunction: Create a directory (similar to the MD command under MSDOS).Syntax: mkdir [Options] Dir-nameDescription: This command creates a directory named by Dir-name. The user who is
On the first, straight hit Linux:12 asked 1. What is Linux? Linux is an exotic operating system that is born on the web, growing up on the web, and ripe for networking. In the 1991, Finnish college student Linus Torvalds The idea of developing a
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.