l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:02

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Uninstalling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Uninstalling

  • Subject: Re: [vox-tech] Uninstalling
  • From: William Kendrick <nbsMAPS@sonic.net>
  • Date: Thu, 15 Mar 2001 15:26:09 -0800
  • References: 3AB13571.6090909@afes.com

> The linked file in Netscape 6 is no big deal because the linked file is 
> in several sub directories below, so the rm -rf will wipe out the linked 
> files.  But suppose you had linked files outside of the directory of the 
> program that you were uninstalling?  You don't take hours trying to find 
> the linked files and deleting them do you?  Here's what I think.  Tell 
> me if this is right.

Some "find" incantation should help you out:

  find . -type l

That'll spit out all symbolic links in the current directory (and
all subdirectories).

At this point, we can invoke find's "-printf" option and display
the files that these symbolic links point to:

  find . -type l -printf "%l\n"

If you wanna remove them, do something like:

  rm -i `find . -type l -printf "%l\n"`

(or your favorite options to "rm" like "-rf"... but for goodness' sake,

  BE  CAREFUL!!! )



LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!