| pwd |
print working directory |
| ls |
list content of current directory |
| ls -a |
list content of current directory, including hidden files |
| ls -l |
list content of current directory with extra details |
| man |
manual |
| cd child-directory |
change directory |
| cd .. |
parent directory |
| cd ~ |
home directory |
| mkdir [name] |
create a directory |
| touch [name.ext] |
create a file - will not overwrite a file if it exists |
| open [name.ext] |
opens file |
| clear |
empties terminal screen |
| cat [name.ext] |
displays content of file in bash (terminal) |
| mv [-options] [path/to/file] [path/to/directory] |
move file to specified location |
| mv [-options] [path/to/file] [new name] |
renames file or directory |
| cp [path/to/file] [path/to/directory] |
copies files to specified directory or file name |
| cp -r [path/to/file] [path/to/directory] |
copies files and folders to specified directory or file name |
| rm [path/to/file] |
removes file PERMANENTLY! |
| rm -r [path/to/directory] |
removes directory PERMANENTLY! |
| rmdir |
removes empty directory PERMANENTLY! |
| [name of program] [arguments] |
start a program (example: atom [path/to/file]), node [path/to/file] ...) |
| Ctrl + C |
abort a program that is currently active in the terminal |
| Ctrl + A |
jump to beginning of line |
| Ctrl + E |
jump to end of line |
| Ctrl + K |
clear the screen |
| tab |
autocomplete |
| arrow up |
fill line with previously entered command |
| arrow left/right |
jump to next/previous word |
| q |
end view of text in terminal (with some programs/views) |
| history |
see a list of previously typed commands |