Command of the day (19 Oct) - ln

codlinuxln

ln - Create links (hard/symbolic)

    ln file link: Create a hard link to foo

    ln -b file link : If bar exists creates a backup

    ln -i file link : If bar exists ask user

    ln -f file link : Force creation of bar

    ln -s file link : Create symbolic link instead of hard link

    ln -s -r full_path_target link: Create symbolic link that stores a relative path to the target

 

Get your free ebook

Learn GNU/Linux one command a day

Return to Home Page