Skip to content

Instantly share code, notes, and snippets.

@funkyfisch
Created February 23, 2019 15:32
Show Gist options
  • Save funkyfisch/db3ac2589b897cfab6f3667c19df28d2 to your computer and use it in GitHub Desktop.
Save funkyfisch/db3ac2589b897cfab6f3667c19df28d2 to your computer and use it in GitHub Desktop.
ENOSPC resolution for file watchers
#!/bin/sh
# Change the maximum amount of watchers and persist the setting
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
# Arch Linux alternative command
# echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.d/99-sysctl.conf
# Details: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment