Friday, October 21, 2011

Set/ List the file descriptor limits


Sets the file descriptor limit (hard and soft) to [number]
ulimit -n [number]

Sets the file descriptor hard limit to [number]
ulimit -H -n [number]

Sets the file descriptor soft limit to [number]
ulimit -S -n [number]

Shows the file descriptor limit (hard and soft)
ulimit -n

Shows the file descriptor hard limit
ulimit -H -n

Shows the file descriptor soft limit
ulimit -S -n

No comments: