Displaying current soft and hard limits

To display the current soft limit, for C shells, enter:

limit descriptors

For Bourne shells, enter:

ulimit -n

To display the current hard limit for C shells, enter:

limit -h descriptors

For Bourne shells, enter:

ulimit -Hn