strip — Remove unnecessary information from an executable file

Format

strip file

Description

On some UNIX systems, strip removes debug information from an executable. On z/OS, the debug information can only be removed by recompiling. strip does not modify the contents of any executable file; it is functionally equivalent to touch file.

Localization

strip uses the following localization environment variables:
  • LANG
  • LC_ALL
  • LC_CTYPE
  • LC_MESSAGES
  • NLSPATH

See Localization for more information.

Exit values

0
Successful completion
1
Failure due to any of the following:
  • file does not exist or could not be opened.
  • The user does not have write permission for file
  • An error occurred while reading file
  • file is not an executable file
  • file is executable, but appears corrupted
2
No file was specified on the command line

Messages

Possible error messages include:
executable file file: No such file or directory
The input file does not exist. Check that the file name was entered correctly and that it exists.
file file1: Not an executable file
strip only operates on executable files.
Write permission required to strip file
The user does not have write permission on the file.
executable file file: Permission denied
The user does not have read permission on the file.

Portability

POSIX.2, X/Open Portability Guide, UNIX systems.