[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Finding files/directory's.
>
> What would the command prompt be to find a directory, and then how would =
> I=20
> symlink to it from another directory
> cheers
> Doug
>
find <start-path> -name '<name>' -type d -print
might be what you want ... e.g., find / -name 'local' -type d -print ...
will search for directores (-type d) called local (-name 'local') starting
the search from the root.
Then to symlink ... ln -s <src> <dest> ... e.g., ln -s /usr/local bob ...
will create a symlink called bob in the current directory that points
to /usr/local.
Is this what you're looking for ? "man ln" and "man find" for more info.
Chris...
--
\ Chris Johnson \
\ cej [at] nightwolf.org.uk ~-----,
\ http://cej.nightwolf.org.uk/ ~-----------------------------------,
\ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.