Skip to content

Instantly share code, notes, and snippets.

@clayrisser
Last active November 26, 2019 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayrisser/10eeb1f46b3d362dffc178747ee00488 to your computer and use it in GitHub Desktop.
Save clayrisser/10eeb1f46b3d362dffc178747ee00488 to your computer and use it in GitHub Desktop.
Increase Inotify
#!/bin/sh
test -f /etc/sysctl.conf && \
(sudo sed -i 's/fs.inotify.max_user_watches=[[:digit:]]*//g' /etc/sysctl.conf && \
sudo sed -i '/^$/d' /etc/sysctl.conf && \
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p) || true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment