getconf command "One day, one command"

Source: Internet
Author: User
Tags processing text

We often need to query system-related information, such as page size, integer size, and so on, if the program to calculate will be more cumbersome, there is a very useful command, can be used to obtain information about the system. It is getconf.

$ getconf page_size4096$ getconf Int_max2147483647view Ubuntu operating system number of digits

From http://wiki.ubuntu.org.cn/UbuntuSkills#. e6.9f.a5.e7.9c.8b.e7.b3.bb.e7.bb.9f.e6.98.af32.e4.bd.8d.e8.bf.98.e6.98.af64.e4.bd.8d

See if the system is 32-bit or 64-bit
Method 1:
#查看long的位数, return 32 orgetconf long_bit
Method 2: #查看文件信息, including 32-bit is 32 bits, including 64-bit is 64-bit File/sbin/init
The relevant information can be obtained as follows (refer to the relevant information, in another version will be somewhat different):

_cs_path Value for the PATH environment variable used to find commands.
Arg_max Maximum length, in bytes, the 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 a 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 is 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 is 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 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 has 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 has 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

getconf command "One day, one command"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.