When I input the command $ ls -l begperl I get this message -rw-r--r-- 1 samurai samurai 62 2010-12-07 19:37 helloworld.pl
-rw-r--r-- 1 samurai samurai 94 2010-12-14 13:51 newline.pl
and when I input ls -l begperl/newline.pl I receive the message ls: cannot access begperl/newline.pl: No such file or directory
| [reply] [d/l] [select] |
Samurai Monkey:
Try ls -lb begperl and see what it prints. I'm wondering if you accidentally got a control character in the name of the file. (It happens, sometimes.) Also, if you're at the command prompt, then you could always type perl begperl/new and then hit the tab key to see if autocomplete will fill in the rest for you. If neither of those work for you, I'll try to think of something else.
Oh, yeah, you can use the cd command to change directories, so cd begperl will put you in the begperl directory, and cd .. will take you back down a level. Type man cd to read the manual page for cd.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
| [reply] [d/l] [select] |
Roboticus, thank you for your help my friend. You were right, your suggestion helped. You see, when I typed in perl begperl/new and hit tab, the terminal filled in the rest as perl begperl/newline.pl\ and after I hit enter, it printed the message as it was meant to. However, I'm wondering why I had to put a \ at the end, when I didn't have to for helloworld.pl? Oh and thank you also for teaching me how to change directories. I appreciate it :)
| [reply] [d/l] [select] |
oh one more thing roboticus, what does ls -lb mean? What type of command is that and what is it meant to accomplish?
| [reply] |