table of contents
- trixie 2.41-5
- testing 2.41.3-4
- unstable 2.41.3-4
- experimental 2.42~rc1-2
| SETARCH(8) | System Administration | SETARCH(8) |
NAME¶
setarch - change reported architecture in new program environment and/or set personality flags
SYNOPSIS¶
setarch [arch] [options] [program [argument...]]
arch [options] [program [argument...]]
DESCRIPTION¶
setarch modifies the execution domain and process personality flags.
The execution domain currently only affects the output of uname -m. For example, on an AMD64 system, running setarch i386 program will cause program to see i686 instead of x86_64 as the machine type. The default program is /bin/sh.
Since version 2.33, the arch command-line argument is optional and setarch may be used to change personality flags (ADDR_LIMIT_3GB, SHORT_INODE, etc) without modification of the execution domain.
OPTIONS¶
--list
--show[=personality]
-p, --pid=pid
--uname-2.6
-v, --verbose
-3, --3gb
--4gb
-B, --32bit
-F, --fdpic-funcptrs
-I, --short-inode
-L, --addr-compat-layout
-R, --addr-no-randomize
-S, --whole-seconds
-T, --sticky-timeouts
-X, --read-implies-exec
-Z, --mmap-page-zero
-h, --help
-V, --version
EXAMPLES¶
setarch --addr-no-randomize mytestprog setarch ppc32 rpmbuild --target=ppc --rebuild foo.src.rpm setarch ppc32 -vL3 rpmbuild --target=ppc --rebuild bar.src.rpm setarch ppc32 --32bit rpmbuild --target=ppc --rebuild foo.src.rpm setarch --show setarch --show=$(cat /proc/9284/personality) setarch --show --pid 9284
AUTHORS¶
Elliot Lee <sopwith@redhat.com>, Jindrich Novy <jnovy@redhat.com>, Karel Zak <kzak@redhat.com>
SEE ALSO¶
personality(2), select(2) *proc_pid_personality(5)
REPORTING BUGS¶
For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>.
AVAILABILITY¶
The setarch command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.
| 2026-02-17 | util-linux 2.42-rc1 |