Table of Contents

IT:Apple:iMac:Terminal

Summary

Concepts

PWD stands for Present Working Directory. User's home directory is tilda.

Use Spotlight (%SPACE) to launch Terminal

//Change to home directory:
cd  

//list files in current directory that start with mobile:
ls mobile*

//use chmod to make files read/write: 777 is a bit extreme but gets the job done.
chmod 777

//rename (move) a file
mv index-release.html index.html

//create dir
//mkdir -p ../whatever

//remove a file or folder
rm -R -d /temp   //recursive removal of directory
rm -f /temp     //quite remove of files

Refererence

* http://www.mac-terminal.com/