I have a Windows and I'm using Ruby 1.9.1-p429, and it won't allow me to view my test.rb file on cmd when i type cd. I'll go through step-by-step of what I did.
I saved a test .rb file on Sublime to my desktop. I open cmd and type "cd", expecting it to list the test.rb file, as the About.com tutorial said it would. Nothing shows up.
I go to the files on my desktop and open it. It says I need a program to open it with. I try opening it with Ruby Interactive. Nothing. The same thing happens when i try to open it with cmd. Now all the save files try to open it with cmd.
Any suggestions?
cd
means "change directory", and only is used to change from one directory and make another the default directory.dir
is the command used to list files.cd
doesn't list files -dir
does