tail: cannot watch `messages’: No space left on device

**Issue**

You are trying to tail -f on a file (/var/log/messages , secure or any text file), the command is throwing the below message and command is also not working

tail: cannot watch `messages': No space left on device

**Solution**

Just edit the sysctl.conf file with vi /etc/sysctl.conf and add/change the below line.

fs.inotify.max_user_watches=16384

Then run,
sysctl -p

The issue is fixed 🙂

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Scroll to Top