查看文件描述符数量
ulimit控制shell和从shell启动的进程的可用资源。使用如下命令显示全局最大文件描述符:
cat /proc/sys/fs/file-max
查看当前shell下最大软硬文件描述符命令如下
ulimit -Hn ulimit -Sn
ulimit控制shell和从shell启动的进程的可用资源。使用如下命令显示全局最大文件描述符:
cat /proc/sys/fs/file-max
查看当前shell下最大软硬文件描述符命令如下
ulimit -Hn ulimit -Sn
Linux有许多内置命令,内置命令type可以用来判断一个命令是否为内置命令。
type: usage: type [-afptP] name [name ...]
[root@vm-centos tor]# type ulimit ulimit is a shell builtin [root@vm-centos tor]# type tor tor is /usr/local/bin/tor [root@vm-centos tor]# type -t tor file [root@vm-centos tor]# type -t ulimit builtin [root@vm-centos tor]# type -a ls ls is aliased to `ls --color=auto' ls is /bin/ls [root@vm-centos tor]# type ls ls is aliased to `ls --color=auto' [root@vm-centos tor]#