Linux command
i386 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Example
tldr setarch
Run a shell under the i386 personality
i386
Run a command under the i386 personality
i386 [command] [args]
Report an i386 uname
i386 uname -m
Disable address-space layout randomization
i386 -R [command]
说明
i386 is a convenience name for `setarch i386` — it tweaks the Linux personality of the child process so that `uname -m` reports `i386` and address-layout quirks match a 32-bit x86 system. It does not install 32-bit libraries or run non-native binaries; it only changes how the kernel reports architecture and optionally disables ASLR, READ_IMPLIES_EXEC, and similar flags. Without arguments, `i386` starts `$SHELL` under the modified personality. Any flags accepted by `setarch` (`-R` disable ASLR, `-F` FDPIC_FUNCPTRS, `-Z` MMAP_PAGE_ZERO, `-L` ADDR_COMPAT_LAYOUT, `-X` READ_IMPLIES_EXEC, `-B` ADDR_NO_RANDOMIZE, etc.) work the same here.
FAQ
What is the i386 command used for?
i386 is a convenience name for `setarch i386` — it tweaks the Linux personality of the child process so that `uname -m` reports `i386` and address-layout quirks match a 32-bit x86 system. It does not install 32-bit libraries or run non-native binaries; it only changes how the kernel reports architecture and optionally disables ASLR, READ_IMPLIES_EXEC, and similar flags. Without arguments, `i386` starts `$SHELL` under the modified personality. Any flags accepted by `setarch` (`-R` disable ASLR, `-F` FDPIC_FUNCPTRS, `-Z` MMAP_PAGE_ZERO, `-L` ADDR_COMPAT_LAYOUT, `-X` READ_IMPLIES_EXEC, `-B` ADDR_NO_RANDOMIZE, etc.) work the same here.
How do I run a basic i386 example?
Run `tldr setarch` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more i386 examples?
This page includes 5 examples for i386, plus related commands for nearby Linux tasks.