HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

strip — Discard symbols from executables or object files. More information: <https://manned.org/strip>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
symbolscommandobjectfromclidiscardstripexecutables
linux

Problem

How to use the strip command: Discard symbols from executables or object files. More information: <https://manned.org/strip>.

Solution

strip — Discard symbols from executables or object files. More information: <https://manned.org/strip>.

Replace the input file with its stripped version:
strip {{path/to/file}}


Strip symbols from a file, saving the output to a specific file:
strip {{path/to/input_file}} -o {{path/to/output_file}}


Strip debug symbols only:
strip {{[-d|--strip-debug]}} {{path/to/file.o}}

Code Snippets

Replace the input file with its stripped version

strip {{path/to/file}}

Strip symbols from a file, saving the output to a specific file

strip {{path/to/input_file}} -o {{path/to/output_file}}

Strip debug symbols only

strip {{[-d|--strip-debug]}} {{path/to/file.o}}

Context

tldr-pages: linux/strip

Revisions (0)

No revisions yet.