Deck 1 Flashcards
What does the terminal do?
sends commands and receives outputs (displays stuff)
What language do we use in our terminal?
ZSH but bash is the most popular
Alternative names for the terminal?
Command line, shell and CMI (command line interface)
pwd
print working directory
cd
change directory
ls, ls -l, ls -lh, ls -a, ls -d
list, ls -l (list with details), ls -lh (list with human-readable details), ls -a (list hidden files), ls -d (show directory)
*
wildcard: like a catch all, looks for anything
How do you clear the screen?
2 ways: “control + L” or “clear”
What does history show you?
All your past inputs, and if you want to select a specific one then put “!#” where # is the actual number of the line you want to select
How do you make a new directory?
“mkdir name_of_directory”
How do you create a new file? A hidden new file?
“touch new_file_name”, “touch .new_file_name”
How do you open vs code?
“code”
What does “mv” do?
moves file to a new directory or renames a file
How do you remove a file and a directory and why should you be careful about this?
“rm” to remove file, “rm -r” to remove directory.
Must be careful because this action is implemented FOREVERRRRR, always do an ls beforehand!!
How do you view the contents of a file?
“less”