a little tip

Toby Fisher toby_fisher at bigfoot.com
Mon Jul 22 21:41:10 EDT 2002


On Mon, 22 Jul 2002, Adam Myrow wrote:

> On Mon, 22 Jul 2002, Alex Snow wrote:
>
> > Hi.
> >
> > Wow that does save a lot of disk space, but one question:
> > how do you strip a binary?
>
> Easy.  You type "strip filename."  Works for most executables and
> libraries.  Most of the binaries that ship with distros are already
> stripped.  A trick to see if any aren't is to do this.  Change to a
> directory with programs like /usr/bin and type "file * | grep "not
> stripped."  You'll see all the file descriptions that contain the phrase
> "not stripped."  There are a few in Slackware, and of course, check
> /usr/local/bin since that's where most of the stuff you build ends up.  By
> the way, Centericq may have been an extreme case, but it doesn't hurt
> anyway.  Just do an "ls -l" before and after, or better yet, "ls -lh."
> That's a neat mode that is specific to GNU versions of ls.

Hmmm, is it safe to try and strip a stripped binary, and what happens if
you accidentally try to strip a text file?  Was just thinking of the lazy
man's way out:
cd /usr/bin
strip *

Cheers.

-- 
Toby Fisher	Email: toby at g0ucu.freeserve.co.uk
Tel.: +44(0)1480 417272	Mobile: +44(0)7974 363239
ICQ: #61744808
   Please avoid sending me Word or PowerPoint attachments.
   See http://www.fsf.org/philosophy/no-word-attachments.html






More information about the Speakup mailing list