To create a new symlink (will fail if symlink exists already):
ln -s /path/to/file /path/to/symlink
To create or update a symlink:
ln -sf /path/to/file /path/to/symlink
More Related Contents:
- Remove a symlink to a directory
- When should I wrap quotes around a shell variable?
- How can I store a command in a variable in a shell script?
- How do I test if a variable is a number in Bash?
- glibc scanf Segmentation faults when called from a function that doesn’t align RSP
- sed command with -i option failing on Mac, but works on Linux
- How to get process ID of background process?
- When should we use mutex and when should we use semaphore
- How do I rename all folders and files to lowercase on Linux?
- How to insert a text at the beginning of a file?
- Run an untrusted C program in a sandbox in Linux that prevents it from opening files, forking, etc.?
- How do I deal with a filename that starts with the hyphen (-) character?
- How can I programmatically create a new cron job?
- Linux clock_gettime(CLOCK_MONOTONIC) strange non-monotonic behavior
- Make $JAVA_HOME easily changable in Ubuntu [closed]
- ‘find -exec’ a shell function in Linux
- How to determine if a process runs inside lxc/Docker?
- “No such file or directory” error when executing a binary
- Contiguous physical memory from userspace
- Externalizing Tomcat webapp config from .war file
- How to recursively download a folder via FTP on Linux [closed]
- Get current time in seconds since the Epoch on Linux, Bash
- How to reset Jenkins security settings from the command line?
- Insert multiple lines into a file after specified pattern using shell script
- Converting jiffies to milli seconds
- Is there a way to increase BLE advertisement frequency in BlueZ?
- What is path //, how is it different from /
- prevent linux thread from being interrupted by scheduler
- Is it possible to use arrow keys alone to expand tree node in package explorer in Eclipse on Linux?
- “Max open files” for working process