Linux命令——getconf
简介
getconf本身是个ELF可执行文件,用于获取系统信息
用法
getconf -a可以获取全部系统信息
对于这个命令,记住几个常用的信息获取方法就行
getconf PAGE_SIZE 查看系统内存分页大小
getconf LONG_BIT 看linux是32位还是64位最简单的方法
_CS_PATH | Value for the PATH environment variable used to find commands. |
ARG_MAX | Maximum length, in bytes, of the arguments for one of the exec subroutines, including environment data. |
BC_BASE_MAX | Maximum value allowed for the obase variable with the bc command. |
BC_DIM_MAX | Maximum number of elements permitted in an array by the bc command. |
BC_SCALE_MAX | Maximum value allowed for the scale variable with the bc command. |
BC_STRING_MAX | Maximum length of a string constant accepted by the bc command. |
CHARCLASS_NAME_MAX | Maximum number of bytes in a character class name. |
CHAR_BIT | Number of bits in a type character. |
CHAR_MAX | Maximum value of a type character. |
CHAR_MIN | Minimum value of a type character. |
CHILD_MAX | Maximum number of simultaneous processes for each real user ID. |
CLK_TCK | Number of clock ticks per second returned by the time subroutine. |
COLL_WEIGHTS_MAX | Maximum number of weights that can be assigned to an entry in the LC_COLLATE locale stanza in a locale-definition file. |
CS_PATH | Value of the PATH environment variable used to find commands. |
EXPR_NEST_MAX | Maximum number of expressions that can be nested within parentheses by the expr command. |
INT_MAX | Maximum value of a type int. |
INT_MIN | Minimum value of a type int. |
LINE_MAX | Maximum length, in bytes, of a command's input line (either standard input or another file) when the utility is described as processing text files. The length includes room for the trailing new-line character. |
LONG_BIT | Number of bits in a type long int. |
LONG_MAX | Maximum value of a type long int. |
LONG_MIN | Minimum value of a type long int. |
MB_LEN_MAX | Maximum number of bytes in a character for any supported locale. |
NGROUPS_MAX | Maximum number of simultaneous supplementary group IDs for each process. |
NL_ARGMAX | Maximum value of digit in calls to the printf and scanf subroutines. |
NL_LANGMAX | Maximum number of bytes in a LANG name. |
NL_MSGMAX | Maximum message number. |
NL_NMAX | Maximum number of bytes in an N-to-1 collation mapping. |
NL_SETMAX | Maximum set number. |
NL_TEXTMAX | Maximum number of bytes in a message string. |
NZERO | Default process priority. |
OPEN_MAX | Maximum number of files that one process can have open at one time. |
PATH | Sequence of colon-separated path prefixes used to find commands. |
RE_DUP_MAX | Maximum number of repeated occurrences of a regular expression permitted when using the interval-notation parameters, such as the m and n parameters with the ed command. |
SCHAR_MAX | Maximum value of a type signed char. |
SCHAR_MIN | Minimum value of a type signed char. |
SHRT_MAX | Maximum value of a type short. |
SHRT_MIN | Minimum value of a type short. |
SSIZE_MAX | Maximum value of an object of type ssize_t. |
STREAM_MAX | Number of streams that one process can have open at one time. |
TMP_MAX | Minimum number of unique path names generated by the tmpnam subroutine. Maximum number of times an application can reliably call the tmpnam subroutine. |
TZNAME_MAX | Maximum number of bytes supported for the name of a time zone (not the length of the TZ environment variable). |
UCHAR_MAX | Maximum value of a type unsigned char. |
UINT_MAX | Maximum value of a type unsigned int. |
ULONG_MAX | Maximum value of a type unsigned long int. |
USHRT_MAX | Maximum value of a type unsigned short int. |
WORD_BIT | Number of bits in a word or type int |
Linux命令——getconf的更多相关文章
- 运维工程师必会的109个Linux命令
运维工程师必会的109个Linux命令 版本1.0 崔存新 更新于2009-12-26 目录 1 文件管理 6 1.1 basename 6 1.2 cat 6 1.3 cd 7 1.4 chgrp ...
- linux 命令查看CPU和内存信息
几个cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l 每个cpu是几核(假设cpu配置相同) more /proc/cpu ...
- 我用的Linux命令
从今天起,会在这里记一些我使用过的linux命令 =======I'm 分割线======= 11.查看某个端口号被哪个应用占用 netstat -apn|grep 端口号,lsof -i:端口号,n ...
- 常用DOS命令和Linux命令
DOS命令 1.查询端口占用情况:netstat -aon |findstr "8080"; 查看端口进程号: 2.查看进程号信息: tasklist |findstr &qu ...
- 性能测试常用的linux命令
性能测试常用的linux命令 linux测试nginx64bitredhatlighttpd 查看日志 awk '$4 ~/^\[27\/Nov\/2008:15:2[0-5]/ {print ...
- linux命令汇总1
允许非root用户使用“sudo” root身份登录系统,执行“visudo”,根据示例添加新的一个规则(记住输入的密码是当前用户密码,而不是root密码)#不需要密码执行sudo命令hadoop ...
- 最实用的 Linux 命令行使用技巧
我们可能每天都会要使用到很多的 Linux 命令行. 我们也会网络上知晓一些使用它们的小技巧,但是如果我们没有时常来进行练习,就有可能会忘掉怎么去使用它们. 所以我就决定把那些你可能会忘记的小提示和小 ...
- 【Linux】linux命令大全
[注意]:命令[compgen -b]可以列出所有当前系统支持的命令. 109个Linux命令 目录 1 文件管理... 5 1.1 basename. 5 1.2 ...
- linux学习(1):linux命令大全
Linux命令 目录 1 文件管理... 5 1.1 basename. 5 1.2 cat 5 1.3 cd. 5 1.4 ...
随机推荐
- 【Java】单点登录(SSO)
单点登录介绍 SSO英文全称Single Sign On,单点登录.SSO是在多个应用系统中,用户只需要登录一次就可以访问所有相互信任的应用系统.它包括可以将这次主要的登录映射到其他应用中用于同一 ...
- cpu多级缓存
CPU cache: CPU的频率太快,主存跟不上,在处理器时钟周期内,CPU需要等待主存,浪费资源.cpu cache的出现,缓解了cpu与主存之间速度不匹配的问题. CPU cache的特性: 1 ...
- alertmanager,grafana,prometheus
https://zhuanlan.zhihu.com/p/43637757 https://www.cnblogs.com/xiangsikai/p/11289966.html dashboard分文 ...
- C++运行出现"what(): std::bad_alloc"的解决办法
注:这里只是我的代码出现这种情况及对应的解决办法,你的代码不一定出现和我一样的情况.左移这篇随笔仅供参考. 运行程序出现如下结果: terminate called after throwing an ...
- 浏览器中开发人员工具快速找到dom元素绑定那些JS事件
在web开发过程中难免会遇到让程序员去修改一些js代码东西,例如js的ajax和php等语言的交互等,在这其中你不得不了解点js的事件触发,且随着js的盛行各种插件的事件让程序员眼花缭乱,所以借助一个 ...
- windows server 守护进程nssm
安装nssm 下载程序 https://nssm.cc/ci/nssm-2.24-101-g897c7ad.zip 安装nssm,以管理员运行cmd.exe,执行如下: C:\Users\prolds ...
- PHP字符串替换
$pid = str_replace(',',',',$pid); $pid = str_replace(' ','',$pid); $pid = str_replace(array(',', ' ' ...
- 查看LINUX进程内存占用情况及启动时间
可以直接使用top命令后,查看%MEM的内容.可以选择按进程查看或者按用户查看,如想查看oracle用户的进程内存使用情况的话可以使用如下的命令: (1) top top命令是Linux下常用的性能分 ...
- 15 Filter过滤器和Listener监听器
1.Filter:过滤器 (1) 概念:生活中的过滤器:净水器,空气净化器,土匪.web中的过滤器:当访问服务器的资源时,过滤器可以将请求拦截下来,完成一些特殊的功能.过滤器的作用:一般用于完成通用的 ...
- C++ 读取 MATLAB 的 .m 文件,并发送到 MATLAB 运行
本代码是由「Microsoft Visual Studio 2015 Enterprise」编写. 想要了解更多 C++ 与 MATLAB 混合编程的知识,可以参考我的另一篇博客:C++ 与 MATL ...