How to create a symbolic link - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html) +--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html) +--- Thread: How to create a symbolic link (/thread-3967.html) |
How to create a symbolic link - morbondu - 2003-12-16 I wanted to create a symbolic link from /root to /usr/local/rpms. I like to save my rpms in that dir, but I'm lazy and I hate to type out or even tab complete /usr/local/rpms when I wanted to read, execute a rpm package while I located in /root. So a symbolic link is a quick fix. I found this to be the simpliest way of creating a symbolic link. [root@redhat.over-yonder root]# ln --symbolic /usr/local/rpms [root@redhat.over-yonder root]#ls -l total 192 -rw-r--r-- 1 root root 1167 Aug 21 15:52 anaconda-ks.cfg -rw------- 1 root root 337 Nov 6 18:27 dead.letter -rw-r--r-- 1 root root 8850 Aug 21 15:51 install.log -rw-r--r-- 1 root root 3186 Aug 21 15:52 install.log.syslog -rw-r--r-- 1 root root 2216 Aug 25 12:45 kudzu-probe.txt drwx------ 2 root root 4096 Nov 6 18:48 mail -rw-r--r-- 1 root root 151659 Nov 17 11:21 phpbbbackup.sql lrwxrwxrwx 1 root root 15 Dec 15 21:44 rpms -> /usr/local/rpms drwxr-xr-x 2 root root 4096 Nov 19 00:17 tmp wahoo symbolic link rmps -> /usr/local/rpms quick rundown: ln --symbolic /usr/local/rpms ln (link command) --symbolic(what kind of link) /usr/local/rpms(target) since i didn't name the link the end of the target will be the link's name at /root type: ln --help for more info. morbondu How to create a symbolic link - lytez - 2003-12-16 You don't like to type out /usr/local/rpms but you type out --symbolic? How to create a symbolic link - morbondu - 2003-12-16 i only typed out --symbolic ONCE to create the 'symbolic' link instead of typing rpm -i /usr/local/rpms/ymessenger.9blah.rpm all i have to type now is rpm -i /rpms/ymessenger.9blah.rpm sorry if i didn't get my point accross.... the posting was a "How to" create a symbolic link while using a terminal window. morbondu [img]<___base_url___>/uploads/emoticons/default_dry.png[/img] |