http://www.toptechboy.com/raspberry-pi-with-linux-lessons/
lesson 3:
pwd print working directory
ls list
cd change directory
cd .. up one directory
Paths: what, where
other examples:
ls -la shows hidden files
ls / root folder
ls ~/ home folder
ls .. list folders up one level
/home/pi your home directory (as user called pi)
lesson 4:
sudo shutdown
sudo halt
power down
clear clear the terminal window
mkdir create a folder
example: mkdir yada
n.b. make sure not to use spaces, use underline instead
rmdir remove directory
example: rmdir yada
verify this with the file browser (top left menu)
create a folder, navigate there, then use nano
nano file editor
sudo nano filename.txt
creates a file, you type
when you are done, control-o means overwrite (save)
control-x means exit
to read the file:
cat filename.txt
(he says it means catalog. this is wrong, it stands for concatenate, a much more complex word)
also look into less and more commands
if you are ever stuck, you can enter:
man less (manual pages for the command less, or any command)
Comments