but mainly the ones i know how to use / taken note of. take in mind that i use git bash for windows so some stuff might be different for you. i'm new to all this so i've explained some things from how i understand them. feel free to e-mail me if i got something wrong 
overall
- clear- clears the terminal screen.
- touch [filename]- creates a file.
- cd [dirname]- moves where you are.- cd -gets you to the directory you were previously at.
- mkdir [dirname]- makes a directory / folder.
- exit- exit terminal.
- history- gives you a history of your inputs.
- help- more info.
- start [filename]- opens a file.
- mv [1] [2]- for renaming / moving files
- pwd- shows you where you currently are
- which [programname]- tells you the location path the terminal is using to locate the program.
- ls- lists files of the directory you're currently in.- ls -lfor a more detailed listing.- ls -ato show hidden files.- ls --helphelp!!!
- rm- remove a file.
- echo- outputs whatever you give it.
- cat [filename]- outputs the contents of that file in the terminal
- cp [filename1] [newfile]- copies a files. you can also achieve the same with- cat <[filename1]> [newfile]
- find -name '*[search]*'- searches for files with that word.
- sudo- run things as a superuser
- notepad [filename]- opens file on notepad
- rm -rf .git- deletes the .git folder
notes
- you can use logical operators like &&(AND) and||(OR). not really sure in what case i would use OR, but i use AND frequently for executing multiple commands at once.
- you can hit taband the terminal will (try to) autocomplete where ever directory or file you want to go.
- when typing a file that has an ! you need to escape it using the backslash. if i have a folder called !g/ then you would write \!g/on the terminal.
- files with spaces need to be closed with single or double quotes like this 'folder 1'
- use qto quit some scripts
- >>this is an append.- |this is a pipe
- under ~/.profileyou can set up variables for paths you frequently use.img of my .profile, you can use them in the terminal as variables using this$symbol. example:cd $DOQMEAT
git
- git help- help for git commands.
- git init- initializes a repo
- git status- list changes
- git restore [filename]- restores a file
- git add [files] [dirs]- things to stage for a- git commit. you can also use- git add -pand it will ask you to yes or no every change before adding it. you can also do- git add .to add all changes made to that current directory.
- git commit -m "[your message here!]"- commits changes while also adding a message to them.
- git push- pushes the code out there.
- git fetch- fetches code.
- git pull- pulls code for any changes.
- git diff --stat --cached [remote/branch]- shows you commits that are about to be pushed. remote/branch is usually- origin/mainfor me.
- git show- show changes made
- git log- previous commits