Posts

Showing posts with the label How to remove all files and sub-directories in a directory WITHOUT deleting the directory in bash?

Interesting ubuntu trick

1) tail cannot watch no space left on device.    Solutions   a)  echo 900000 | sudo tee /proc/sys/fs/inotify/max_user_watches      Or Place   b) "fs.inotify.max_user_watches=16384" in /etc/sysctl.conf 2)  How to remove all files and sub-directories in a directory WITHOUT deleting the directory in bash? Solutions rm -rfv dontDeleteMe/*