Skip to content

Instantly share code, notes, and snippets.

@mnem-gists
Created May 8, 2012 13:44
Show Gist options
  • Save mnem-gists/2635126 to your computer and use it in GitHub Desktop.
Save mnem-gists/2635126 to your computer and use it in GitHub Desktop.
bash: Set large ulimit's
#/bin/bash
#
# Change the limits temporarily for a user account
# Drop into a root shell
sudo su -
# Set the limits
ulimit -n 9999
# Change to the users (mnem in this case) shell
su mnem
# Now typing 'ulimit -n' should print 9999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment