Github, Git and Terminal Flashcards
(19 cards)
How do I know where I am in terminal
terminal => pwd
also to Double check if moved in correct folder in Terminal
Double check if moved in correct folder in Terminal
pwd
show all folder in the current folder in terminal
ls (move through with tab)
show all folder in the current folder in terminal (with more detailed information)
ll
what does cd in terminal do
generally: move to another folder
only cd: move back to root directory
Go up/back to parent directory in terminal
cd..
Go up/back to parent directory of parent in terminal
cd…
new folder (directory) in terminal
mkdir name_of_folder
(need to be connected as otherwise 2 folders
prime rule in terminal when starting a project
make a new folder for each project
build a new file in terminal
touch
notarion for the current directory in ruby
.
remove file in terminal
rm foldername (but it will ask you to confirm)
remove file in terminal (shortcut without validation)
rm -rf
open current file in sublime text
stt
re-naimg files in terminal
mv old_name.rb new-
_name.rb
seeing the details of a certain file in terminal
cat file_name.rb
run ruby file output in terminal
Ruby file_name.rb
How can you retrieve a command you recently typed in your terminal?
Press ↑ up arrow until you retrieve it
How do you go from current directory to any folder?
cd ../Eschults/lovely-hood ### relative path from where you are # or
cd ~/code/Eschults/lovely-hood ### absolute path from your home directory