![]() He wrote more than 7k posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source. See Linux rm(1) command man page or rm command example page for more information: ![]() Remove a dir/file whoes name start with a ‘ -‘Įnclose your troublesome filename/folder in quotes Remove directories and their contents recursively ![]() ![]() Ignore nonexistent files and arguments, never prompt Sometimes, we need insert a backslash ( \ ) before the meta-character in your filename or folder name:ĭeleting folder recursively command summary rm command options for removing dirs/folders recursively Command and optionsįorceful option. We try to enclose our troublesome filename or folder name in quotes. So how do we delete those directories with special names containing strange characters? The answer is simple. Let us say we have a folder named “ Our Sales Data” and “ baddir#” or “ dir2 #“. Your folders and files may have while spaces, semicolons, backslashes and other chracters in Linux. Rm -r -f -v /home/vivek/oldpartpics Removing folders with names containing strange characters In other words, the rm command will explain what is being done to our files and folders on Linux. We can add the -v option to see verbose outputs.
0 Comments
Leave a Reply. |