Second Steps with ABC
Important Unix Commands
Command |
Explanation |
pwd |
Displays path of current directory |
cd [folder] |
Changes directory to [folder] |
cd .. |
Change to parent directory |
cd |
Change to home directory |
ls |
Shows files in current directory |
ls -a |
Shows all files (include hidden ones) |
touch [file] |
Creates [file] if it did not exist. If it exists the modification time is updated. |
mkdir [folder] |
Creates directory [folder] |
rm [file] |
Removes [file] |
rm -r [folder] |
Removes directory [folder] |
rm -rf [folder] |
Removes directory [folder] no questioins asked. |
mv [file] [folder] |
Moves [file] to directory [folder] |
cp [file] [folder] |
Copies [file] to directory [folder] |
cat [file] |
Displays contents of [file] |
clear |
Clears terminal display |