I have what looks to be a directory directory
dir2, I once moved it from another directory
dir1 to back it up and created a new
Now I suddenly saw it again, realized I didn't need it and did
rm -r -f dir2, and found out that my new
dir1 is also empty.
I got my files back (is was a code repository, so just some changes lost - bummer), but I still want to remove this redundant link or whatever
When I tried
rmdir (before I realized I deleted everything) I got an error
Not a directory. What is it and how do I remove it? Using bash on OSX terminal.
Update: Per suggestions below:
ls -ld dir2 outputs
drwxr-xr-x. 19 asaf users 4096 Mar 8 13:09 dir2/
file dir2/ outputs
file dir2 outputs
dir2: symbolic link to ...'