861 reputation
45
bio website
location
age
visits member for 2 years, 7 months
seen yesterday

Aug
28
comment how can I recursively delete empty directories in my home directory?
@Santosh: You can use something like this: find "$HOME" -type d \! -path "$HOME/project/*" -empty -delete. The ! operator (or the escaped \!) returns false if the following expression is true. In effect, it excludes the ~/project directory. Note that if ~/project is empty, it will be deleted.
Aug
25
comment how can I recursively delete empty directories in my home directory?
@jordanm: You're quit right, I edited my answer accordingly.
Aug
25
comment how can I recursively delete empty directories in my home directory?
@Santosh: The command as it is, is meant to be run from your home directory (that's why I added ~$ in the beginning). If you want to run it regardless of your working directory, use "$HOME" instead of . as jordanm suggested in his answer.
Oct
12
comment Why can't I change permission on a symlink on Mac?
Permissions on symbolic links have no effect. Check the permissions on the target file/directory.