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