oreilly.comSafari Books Online.Conferences.


Linux in a Nutshell

This directory of Linux commands is from Linux in a Nutshell, 5th Edition.

Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.

Buy it now, or read it online on Safari Bookshelf.


strip [options] files

Remove symbols from object files, thereby reducing file sizes and freeing disk space.


-Fbfdname, --target=bfdname

Specify object format for both input and output by binary file descriptor name bfdname. Use option -h to see a list of supported formats.

-I bfdname, --input-target=bfdname

Expect object format bfdname for input.


Print help message, then exit.

-K symbol, --keep-symbol=symbol

Delete all symbols except the specified symbol. This option may be used more than once.

-N symbol, --strip-symbol=symbol

Remove symbol from the source file.

-O bfdname, --output-target=bfdname

Use object format bfdname for output.

-o file

Write stripped object to file instead of replacing the original. Only one object file at a time may be stripped when using this option.

-p, --preserve-dates

Preserve access and modification times.

-R section, --remove-section=section

Delete section.

-S, -g, -d, --strip-debug

Strip debugging symbols.

-s, --strip-all

Strip all symbols.


Remove symbols not needed for relocation processing.

-V, --version

Print version and exit.

-v, --verbose

Verbose mode.

-X, --discard-locals

Strip local symbols that were generated by the compiler.

-x, --discard-all

Strip nonglobal symbols.

Linux Resources
  • Linux Online
  • The Linux FAQ
  • Linux Kernel Archives
  • Kernel Traffic

  • Sponsored by: