goodson wrote:Formated 32gb sd card with SDFormatter and installed NOOBS_v2_0_0. Booted to GUI. From terminal, I updated to NOOBS_v2_1_0. Set Pi configuration locale, timezone, keyboard and WiFi Country. Opened terminal executed ls. It displayed 9 directories. Tried to change directories with cd /directoryname. But it returned bash: cd: /directoryname: No such file or directory. I can view and move around the file structure with the GUI File Manager.
Anyone know what is going on? Thanks!
Don't include the / in the Directory name.
Typing ls will show the contents of the current directory (probably your home directory), to change into those folders use cd FOLDER (e.g. cd Pictures). The / is a directory seperator so if your Pictures folder had a child folder 2016 you could use cd Pictures/2016 to change to it directly from your home folder. Having a leading / (so /tmp or /bin) means start at the root of the filesystem. You can also supply a path to ls (so ls /tmp or ls Pictures/2016).
As well as / there are a few other special options for directories . (a single full stop) means the current directory (this is normally only of use when running programs), .. (two full stops) means the parent directory (so if you'd done cd Pictures, running cd .. will take you back up to your home directory). ~ means my home directory (so you could use cd ~/Pictures to get to your Pictures folder from anywhere) ~user means user's home directory (so cd ~root/Pictures will take you to roots home Pictures directory if it exists and you had permissions to change to it)