1. Git Bash - Basics
Git Bash, emulator of shell bash for windows. Allows the use of Linux terminal commands. Git Bash included with Git as an exe.
Escapes:
- \ // backslash escapes spaces
Key Shortcuts:
- Tab // autocomplete
Commands:
- ./FILENAME // runs executable file
- pwd // prints the working directory of where the terminal is in
- ls // list files in the current working directory
- ls -la // lists all files with extra details
First column is permissions for [owner, group, world] in rwxrwxrwx format.
the letter in front of rwxrwxrwx indicates whether its hidden, a directory, or windows (l) stuff
- cd // change directory
- cd ../ // returns to parent directory
- clear // clear the terminal
- mkdir // creates a new directory
- touch // create files
- cat // read files, dumps content into terminal
- nano // edit file?
- grep // searches
- rm // remove file
- rm -rf // remove with force
- | // pipe, place after a command to use the output as another input into another command
- ls | grep -i milk // lists files, pipe into grep, search for anything milk
Comments
Post a Comment