pagesize Command
Purpose
Displays the system page size.
Syntax
Description
The pagesize command prints the size, in bytes, of a page of memory, as returned by the getpagesize subroutine. Provided for system compatibility, this command is useful when constructing portable shell scripts.
If the -a flag is specified, the pagesize command prints all of the page size values (in bytes) supported on the system.
Flags
- -a
- Prints all of the page size values (in bytes) supported on the system.
- -f
- Prints the formatted page sizes with an alphabetical suffix rather than the page size in bytes (for example, 4K)
Example
- To obtain the size system page, enter:
pagesize
The system returns the number of bytes, such as 4096.
- To print the formatted page size, enter:
pagesize -f
The system returns the formatted page size (for example, 4K).
- To print all of the supported page size with an alphabetical suffix,
enter:
pagesize -af
The system returns all of the supported page sizes. For example:4K 64K 16M
Files
Item | Description |
---|---|
/usr/bin/pagesize | Contains the pagesize command. |