Files and folders

Create a symlink (shortcut to a file or folder)

Make a link that points to another file or folder, so it shows up in two places.

Fill these in once
  1. Create the link
    Terminal
    ln -s my-real-folder my-link

Check it worked

  1. Check where it points
    Terminal
    ls -l my-link
Undo it
  1. Remove the link (not the original)
    Terminal
    rm my-link
  1. Create the link
    Terminal · Ubuntu / Debian
    ln -s my-real-folder my-link

Check it worked

  1. Check where it points
    Terminal · Ubuntu / Debian
    ls -l my-link
Undo it
  1. Remove the link (not the original)
    Terminal · Ubuntu / Debian
    rm my-link
  1. Create the linkRun as administrator
    PowerShell
    New-Item -ItemType SymbolicLink -Path my-link -Target my-real-folder

    Needs an administrator PowerShell, or Developer Mode switched on in Settings.

Check it worked

  1. Check where it points
    PowerShell
    Get-Item my-link | Select-Object LinkType, Target
Undo it
  1. Remove the link (not the original)
    PowerShell
    Remove-Item my-link