| Error Message | Likely Cause |
|---------------|----------------|
| cp: cannot stat 'megalink': No such file or directory | File megalink doesn’t exist. |
| cp: omitting directory 'megalink' | megalink is a folder — use cp -r. |
| cp: 'link' and 'megalink' are the same file | You’re trying to copy a file onto itself. |
# Copy while preserving all attributes, links, and recursively
cp -a megalink link
The ln command with the -s option is used to create symbolic links:
ln -s target link_name
Here: