KYkid85
Posts: 18
Joined: Mon Mar 21, 2016 1:51 pm

Access ls files

Sat Mar 26, 2016 5:39 pm

Sorry but after spending an 2hrs with forums and youtube videos. Nothing tells me how to simply open an ls file.

lets say i want to open python_games. How do i access this file?

-thanks

rzusman
Posts: 347
Joined: Fri Jan 01, 2016 10:27 pm

Re: Access ls files

Sat Mar 26, 2016 5:59 pm

ls isn’t a file.
ls is a program that lists a directory (hence “ls”).

If “python_games” is a directory, you change to that directory ('cd python_games’ if you are in the directory containing it, or use the full path - 'cd /xxx/yyy/zzz/python_games’), then ls to list the contents.

Note that ls takes a lot of options - ls -la is common.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Access ls files

Sat Mar 26, 2016 10:34 pm

To learn a bit more about the command line programs you could have a look through https://www.raspberrypi.org/magpi/issue ... bash-vol1/

Return to “Troubleshooting”