HOWTO Remove a File or Directory Recursively

On November 19, 2008, in delete home directory, File, Howto, remove, by Dipin Krishna

# rm filename (removes a single file)# rm filename? (matches single character. e.g. filename1, filename2,filename3)# rm filename[1-5] (matches filename1 thru filename5)# rm filename* (removes everything that matches filename. e.g.filename122, filename222, filename.backup) # rm -rf /home/esofthub/directoryname (the -r deletes directorynamerecursively and all its contents without prompting (-f) read only files/directories)# rm -Rf /home/esofthub/directoryname (the -R deletesdirectoryname recursively and all its contents without prompting (-f) read only files/directories) # pwdNote: Make darn […]

 

Search