I want to delete one of two folders which is having exactly same name but containing different files in it. How can i delete specific folder from these two in terminal ?
1 Answer
I have solved this issue by a different way.
Like someone have two folders of same name as sub in a directory dir
First I renamed one of directory ( I don't know which). Then checked the directory got renamed by seeing contents of it.
mv dir/sub dir/sub1
And then deleted the directory which is not required ( live sub1 is not required)
rm -r dir/sub1
rm -rfi /path/to/directory
, careful with the rm command, if you use the wrong location you will loose data.