rm -rf dir1
rm -d dir
rmdir directoryname // This is will delete an empty directory.
rmdir -r directoryname // This is will delete everything in the directory
// including all files and subdirectories.
rm -r filename
rm -rf filename
this command remove the directory and subdirectory forecefully
rmdir dir1
#In linux Terminal:
#To make a directory:
mkdir directory_name
#To delete a directory:
rmdir directory_name
To remove an empty directory, use either rmdir or rm -d followed by the directory name:
rm -d dirname rmdir dirname.
To remove non-empty directories and all the files within them, use the rm command with the -r (recursive) option:
rm -r dirname.
rm -r -f folderName
rm -rf /path/to/directory/*
rm -r dirnameCopy
# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A
#remove a dir in linux command
rm
#after rm type the file or dir name it will remove it
# find . -type d -name '*_cache' -exec rm -r {} +
# REMOVE ALL FILES IN LINUX ON CURRENT PATH
find . -type f -delete
# REMOVE DIRECTORY IN LINUX ON CURRENT PATH
find . -type d -delete
# REMOVE EVERTHING IN EXISTING PATH
find . -delete
command to delete non empty dir
CONFLICT (content): Merge conflict in bash/alx