You may want to set up a remote development environment (particulary if you are not running OS X or Linux).
Sign up for Nitrous.IO, have a quick read through the Getting Started guide and set up a Node.js box. You can then login and open up a console window.
Or, if you prefer, just open a terminal window on your computer.
After you have worked through the quick summary below, you can take a look at The Command Line Crash Course.
And to get the commands into your head, have a go at this course on Memrise.
pwd
"Print Working Directory"
ls
"LiSt"
ls -a
ls -l
ls -al
mkdir things
"MaKe DIRectory"
cd things
"Change Directory"
cd ..
cd
touch one.txt
touch
changes the access and modification time of a file (i.e. it touches it), but this also creates a new file if none exists with the name given.
cp one.txt two.txt:
"CoPy"
mv one.txt three.txt
"MoVe"
rm three.txt
"ReMove"
rm -rf .
"ReMove Recursively and Forcefully" everything in your current working directory. Don't do this. Instead, mkdir ~/tmp
and mv
anything you no longer want to there.
rmdir things
"ReMove DIRectory" (you need to empty it first)
echo "hello" > greet.txt
cat greet.txt
"conCATenate and list"
touch afilewithalongname
cat af<tab>
(i.e. use the tab
key)
mkdir one
mkdir one/two
echo "hello" > one/two/three.txt
cat o<tab><tab><tab>
(i.e. use the tab
key three times in succession)
Use the up and down arrow keys
Use the left and right arrow keys