Command | Purpose | Pattern | Example |
---|---|---|---|
mkdir |
Make a directory | mkdir directoryName |
mkdir cs108 |
ls |
List directory contents | ls pathName |
ls |
pwd |
Print working directory | pwd |
pwd |
cd |
Change directory | cd pathName |
cd cs108 |
cp |
Copy file/directory | cp
fileOrDirectory destinationPath
|
cp -r Lab01 /home/cs/108/current/username/. |