ln - link

Hard links and symlinks are very different, but you make them similarly. On the command line, you use the ln command, in Interrogator you use a variation of the commands to move or copy. In each case, an option chooses between hard and sym.

shell session

~ % cd /cake
/cake % ls
ireland/  louis     otto
/cake % ln -s ../louis ireland/saint       # no -s for hardlink 
/cake % ls -l ireland
total 8
lrwxr-xr-x  1 allan  admin  8 Jul 11 02:04 saint@ -> ../louis
/cake %

total 55 keystrokes

Interrogator session



1) Go to the /cake directory.

     ^/ c a k e /

(The first ^/ goes to the root directory. Use cmd/ on Mac. Then you select cake by typing. The second / opens the cake directory.)


2) Select the file louis, copy its name to the clipboard with the standard Copy keystroke.

     l o ^C

(Type just enough letters to pick louis out from the crowd.)




3) Go to the ireland directory and Link the file there, using a special version of the Paste keystroke.

X11: i r / altL shift^altV
Mac: i r / ^L ^cmdV
(Use H instead of L for a hardlink instead of a symlink.)


4) Enter Rename mode to change the name however you want.

X11: shift^altR
Mac: ^cmdR

You are left in Rename mode so you can change the name.

s a i n t


(Actually you can use any keystrokes you want, such as arrow keys.)


total 19 keystrokes and 5 modifiers

For more details about the copy and paste commands in Interrogator, see the Copying discussion.



Documentation > Unix Command Index > ln        

                     

T a c t i l e   I n t e r r o g a t o r   W e b s i t e