I have a ruby file saved on my desktop as test.rb. How can I open it with terminal? I have already tried to use /home/desktop/test.rb and what I get in response is bash: /home/desktop/test.rb: No such file or directory.
You can use the
This way you don't need to make your file executable.
(The tilde symbol
If you still need to make your script executable I hope you remembered to type the shebang line on the first line of your script:
The you need the path of the Desktop-Folder, try it with
Your final command than will probably look like that:
But you should try a tutorial for the Linux shell, like this one: LinuxCommand.org
Your home directory is
You forgot the