commands.sh

setarch

linux

Change the reported architecture for a program's execution, primarily used to modify how programs behave based on system architecture. Useful for compatibility testing or running legacy applications.

More info →

Options (2)

-R, --addr-no-randomizeboolean

Disable randomization of the virtual address space

Example: setarch {{linux32}} {{[-R|--addr-no-randomize]}} {{command}}
-h, --helpboolean

Display help

Example: setarch {{[-h|--help]}}

Examples (5)

Run a command as if the machine architecture is `i686` (useful for running 32-bit apps on a 64-bit kernel)

Run a shell with the `x86_64` architecture

Disable randomization of the virtual address space

setarch linux32 [-R|--addr-no-randomize] command

List supported architectures

setarch --list

Display help

setarch [-h|--help]
made by @shridhargupta | data from tldr-pages