Linux / Bash Flashcards
[your app/program] –version
returns the version of the program you have installed
touch [file name].[file type is optional]
creates that file in current directory
in vim:
i
enters INSERT mode where you can edit the file
in vim:
:wq
exits INSERT mode and saves the file changes
in vim:
:q
exits INSERT mode and does not save file changes
what kind of file is .md ?
markdown file
clear
clears the shell
CTRL L
clears the shell
CTRL D
logs out
open .
opens the current directory into a new graphical window (in Finder)
CTRL A
brings cursor to START of line
CTRL E
brings cursor to the END of line
CTRL U
delete LEFT of cursor
CTRL K
delete RIGHT of cursor
CTRL W
delete WORD on LEFT
CTRL Y
PASTE (after U, K, or W)
TAB
autocomplete
!!
REPEAT last command
CTRL Z
STOPS current command or process
ls
lists files in current directory
ls -all
lists all files in current directory with all permisions and all metadata
ls -a
lists all files and folders (even hidden ones)
ls [some directory]
lists files in specific directory
cd [some directory]
changes directory