From owner-freebsd-questions Wed Aug 5 10:01:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA17679 for freebsd-questions-outgoing; Wed, 5 Aug 1998 10:01:12 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from netra.graphnet.com (netra.graphnet.com [192.206.112.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA17655 for ; Wed, 5 Aug 1998 10:01:01 -0700 (PDT) (envelope-from romank@graphnet.com) Received: from graphnet.com (mike.graphnet.com [192.206.112.93]) by netra.graphnet.com (8.8.8/8.8.6) with ESMTP id NAA11004; Wed, 5 Aug 1998 13:00:33 -0400 (EDT) Message-ID: <35C8916C.B87B5809@graphnet.com> Date: Wed, 05 Aug 1998 13:07:56 -0400 From: Roman Katsnelson Organization: Graphnet, Inc X-Mailer: Mozilla 4.05 [en] (WinNT; U) MIME-Version: 1.0 To: Gary Landers , "q's" Subject: Re: Simple UNIX question References: <35C8871D.392D5FF6@tein.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gary Landers wrote: > > how do I create shortcuts or aliases or whatever it is called when a > file name in a directory listing refers to another file or location. > > a listing in /usr/local/bin show up like this > perl@ -> /usr/local/bin/perl5.00404 the command is ln (for link) -- you can create a hard link or a symbolic link. a hard link will physically copy the file to be linked to to the other location. a symbolic link will create a different file which will only point to the original file. to create a hard link called myfoo.la to /usr/local/bin/foo.la in your current directory type: ln /usr/local/bin/foo.la myfoo.la to make it a symbolic link type: ln -s /usr/local/bin/foo.la myfoo.la Good luck, man ln further info as always, Roman -- _________________________________________ | Roman Katsnelson | | UNIX Network Engineer | _ | Graphnet, Inc. | _ / )|_________________________________________|( \ / / | "Consistency is the hobgoblin of | \ \ _( (_ | small minds. | _) )_ (((\ \>|_/-) -- Ralph Waldo Emerson (-\_|