Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I created a symbolic link via ln -s pathname/folder/file.py whatever and I now have a bright blue link in my home directory with the symbolic link command name but when I try whatever hello_world, it's giving me an error saying whatever: command not found.

What I want to do works when I re-type out the pathname and file but the symbolic link seems to be doing nothing....which means I did something wrong

share|improve this question
    
Have you tried python whatever hello_world? –  Terry Wang Sep 20 '13 at 2:05
add comment

1 Answer 1

That is likely nothing to do with symbolic links per se - it is probably because by default the shell does not search the current directory for executable files (regardless of whether they are regular files or symbolic links) - if you add the relative path to whatever i.e.

./whatever

it should work.

share|improve this answer
add comment

Your Answer

 
discard

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.