Linux forced delete non-empty directory command

  

VPS-linux system how to quickly delete a non-empty directory (that is, all files and subdirectories under the directory) through SSH management, in fact, you want to force the deletion of non-empty directory commands in the linux terminal As long as you use a recursive and mandatory parameter parameters, the command is as follows: rm -rf xxx -r recursive -f force

The actual usage of the command, for example, the current directory has a non-"zezehost.com" Empty directories, deleted by FTP are often slow. At this time, just type rm -rf zezehost.com

on the command line to delete all the files and subdirectories in this directory, and it is very fast!

Copyright © Windows knowledge All Rights Reserved