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/*

Comments

  1. It was really a nice article and i was really impressed by reading this Ruby on Rails Online Training

    ReplyDelete

Post a Comment

Popular posts from this blog

Debug Nodejs inside docker container

Swap primary keys between two records in the same table in Postgres

How to add a bootstrap table with fixed header and scrollable body