mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 14:15:26 +02:00
setarch: add page (#16598)
* setarch: add page * Update setarch.md Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> --------- Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
13cffc606b
commit
5a3c4ad081
1 changed files with 25 additions and 0 deletions
25
pages/linux/setarch.md
Normal file
25
pages/linux/setarch.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# setarch
|
||||
|
||||
> 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 information: <https://manned.org/setarch.8>.
|
||||
|
||||
- Run a command as if the machine architecture is `i686` (useful for running 32-bit apps on a 64-bit kernel):
|
||||
|
||||
`setarch i686 {{command}}`
|
||||
|
||||
- Run a shell with the `x86_64` architecture:
|
||||
|
||||
`setarch x86_64 {{bash}}`
|
||||
|
||||
- Disable randomization of the virtual address space:
|
||||
|
||||
`setarch {{linux32}} {{[-R|--addr-no-randomize]}} {{command}}`
|
||||
|
||||
- List supported architectures:
|
||||
|
||||
`setarch --list`
|
||||
|
||||
- Display help:
|
||||
|
||||
`setarch {{[-h|--help]}}`
|
Loading…
Add table
Reference in a new issue