Command | Description | Argument | <-flag-> |
---|---|---|---|
man | manual pages for various commands full description on usage of bash programs | any command | |
ls | <-list files & dirs -> | directory | -a list all, -l list full |
cd | move around current dir | absolute or relative path | .. up current dir, path to directory |
pwd | print working dir (where am I feature) | not needed | |
cat | print contents of a file | filename | -n n is a number of lines to be printed |
mkdir | create dir | directory name | -p intermediate dir -v verbose |
touch | create file | filename | |
mv | move files | source file to destination file | -n do not overwrite existing file -v verbose |
cp | copy file (must have a destination) | source file to target file | |
clear | clear the screen | ||
history | history of commands used | -n n is number of lines |
git Commands | Description |
---|---|
git add | adds revisions to rep |
git commit | records changes to repo |
git push | upload local repo to remote repo |
git pull | download and integrate with another repo |
git status | shows changes to be committed |
git log | shows git log |