//Tips tagged ln
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
Use the one liner below to relocate a file or directory, but keep it accessible on the old location through a symlink.

lmv() { [ -e "$1" -a -d "$2" ] && mv "$1" "$2"/ && ln -s "$2"/"$(basename "$1")" "$(dirname "$1")"; }


View Comments »



Use this command to find all the links in the current directory and below

find . -lname "*"


View Comments »




Home Latest Browse Top 25 Random Hall Of Fame Contact Submit