This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
shell help?
Started by YUGATUG, 21 May 2015 - 07:44 PMPosted 21 May 2015 - 09:44 PM
When i type in 'dir' in to the shell of my advanced computer, it gives me an error. I am certain 'dir' used to show all the directories stored in the computer. What should i do to see and access the directories?
Posted 21 May 2015 - 09:55 PM
does ls (LS) work?
are you sure that you are not in the lua prompt?
are you sure that you are not in the lua prompt?
Edited on 21 May 2015 - 07:56 PM
Posted 21 May 2015 - 10:03 PM
If that doesn't work, someone may have changed you aliases. Try using the full path:
rom/programs/list
Posted 21 May 2015 - 10:10 PM
Yea, i entered and exited the lua prompt just to make sure. Rebooted my (virtual) computer too, still not working. No programs in the autorun folder. strangley, when i AM in a directory, 'dir' works exactly as i expect it to.does ls (LS) work?
are you sure that you are not in the lua prompt?
If that doesn't work, someone may have changed you aliases. Try using the full path:rom/programs/list
I don't know the full path though, that is why i was using 'dir'
Posted 21 May 2015 - 10:49 PM
Moved to Ask a Pro.
Posted 21 May 2015 - 11:13 PM
kMoved to Ask a Pro.
Posted 21 May 2015 - 11:47 PM
Yea, i entered and exited the lua prompt just to make sure. Rebooted my (virtual) computer too, still not working. No programs in the autorun folder. strangley, when i AM in a directory, 'dir' works exactly as i expect it to.does ls (LS) work?
are you sure that you are not in the lua prompt?If that doesn't work, someone may have changed you aliases. Try using the full path:rom/programs/list
I don't know the full path though, that is why i was using 'dir'
…which is why I posted it. Both 'dir' and 'ls' are simply shortcuts to the list program located in rom/programs.
Posted 22 May 2015 - 01:42 AM
does ls (LS) work?
Posted 22 May 2015 - 02:48 AM
What's the error? You may have accidentally created a file named "dir" that's being run instead of /rom/programs/list whenever your current working directory is the folder it's in (perhaps root).
Posted 22 May 2015 - 02:55 AM
does ls (LS) work?
will get back to you guys tommorowWhat's the error? You may have accidentally created a file named "dir" that's being run instead of /rom/programs/list whenever your current working directory is the folder it's in (perhaps root).