Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am not able to create a simple symlink here. When I tried the command

sudo ln –s /home/vivek/Downloads/drush/drush /home/vivek/Documents/

where drush is a file inside the folder named drush, I get the following error,

ln: accessing `–s': No such file or directory

Then I tried giving the filename in the target path,

sudo ln –s /home/vivek/Downloads/drush/drush /home/vivek/Documents/drush

for which I got this,

ln: target `/home/vivek/Documents/drush' is not a directory

I even tried getting into the target directory (i.e. /home/vivek/Documents) and typed the following command

sudo ln –s /home/vivek/Downloads/drush/drush

But still got the same error message as follows

ln: accessing `–s': No such file or directory

What am I doing wrong here? Why is it expecting a target directory while I am only trying to create a symlink for a file?

share|improve this question
up vote 13 down vote accepted

Your dash character () is different from the minus character (-) used to specify options. (Probably copied code from a web page.)

Try with -s.

Since it does not recognize –s as an option it tries to look for a file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.