Linux Command learning Summary: rmdir, linuxrmdir
Command introduction:
This command is used to delete an empty directory. If the directory is not empty, an error occurs. You can use rm to delete files in the directory and then use rmdir to
Linux rmdir command
Delete files and directories on the Linux Command Line. We have discussed the use of the rm command. However, there is another related command line tool dedicated to directory deletion. This tool is rmdir. In this tutorial, we
deleting files and directories in PHP is actually very simple as long as two functions one is unlink a rmdir function, if you want to implement delete directories and directories under the file we need to use the recursive operation.
Function code:
Yesterday I learned the command to create a directory mkdir, and then learn about the commands for deleting files and directories in Linux: the RM command.RM is a dangerous command, especially when used, especially for novices, or the entire system
Directory Management ls CD pwd mkdir rmdir tree################################################################LS: Display directoryCD: Switch directoriesPWD: Show current directorymkdir: Creating a DirectoryRMDIR: Deleting a directoryTree: Show
RM (1) User Commands RM (1)NAMERm-remove Files or directoriesSynopsisRM [OPTION] ... FILE ...DESCRIPTIONThis manual page documents the GNU version of RM. RM removes eachSpecified file. By default, it does not remove directories.If the-i
Differences between Linux commands rmdir and rm
Rmdir is a command that corresponds to mkdir. Mkdir is used to create a directory, while rmdir is the command to delete a directory.
The rm command can delete files or directories at the same
Function code: Deletes only the files in the specified directory, and does not delete the directory folder.
The code is as follows
Copy Code
Class Shanchu {All files under the looping directoryfunction Delfileunderdir
deleting files and directories in PHP is actually very simple as long as two functions one is unlink a rmdir function, if you want to implement delete directories and directories under the file we need to use the recursive operation. This article
This time for everyone to bring PHP unlink and rmdir Delete directory within the file how to implement, PHP unlink and rmdir Delete directory files in the attention of the matter, the following is the actual case, together to see.
Function code:
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.