mkdir data | Make a new directory (a.k.a. folder) data |
cd data | Go to directory data |
ls | List the contents of the current directory |
ls data | List the contents of directory data |
ls -l | List more details |
cd .. | Go one level up |
pwd | Show current directory |
cp file1 file2 | Copy file1 to file2 |
rm file1 | Remove file1 |
mv file1 file2 | Rename file1 to file2 |
mv file1 data | Move file1 to data (data is a directory) |
mv file1 data/file2 | Move file1 to data and rename as file2 |
cat file | Dump the contents of file to the screen. |
less file | Page the contents of a file (pressing q exits). |