Viewing the maximum number of open files allowed

To check the maximum number of files allowed for a user
$ ulimit -n
1024

To change the limit for a user:
$ ulimit -n 2000
$ ulimit -n
2000

To view the maximum number of files allowed on the system as a whole:
$ cat /proc/sys/fs/file-max
602162