Skip to content

Instantly share code, notes, and snippets.

@mdmarek
Created November 19, 2013 20:46
Show Gist options
  • Save mdmarek/7552262 to your computer and use it in GitHub Desktop.
Save mdmarek/7552262 to your computer and use it in GitHub Desktop.
Find the nofile limit for a user, which may or may not have a valid user shell
#!/bin/bash
USR=$1
su $USR --shell /bin/bash --comman "ulimit -n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment