random terminal crap (macos)

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

homepage here

navigation commands

ls ... this command lets you see where you are, it shows you all the files in your current directory. ls = list

cd "directory/folder" ... this will move you to the selected file or directory. cd = change directory

open "file" ... this opens a file

cd - ... takes you back a directory, moves you backwards

cool shortcuts and tricks

^ ... clicking your up arrow will enter the previous command you entered in your terminal, clicking it again will move you up another and so on

caffeinate ... if you can spell it right this command will stop your computer from going to sleep

coding in terminal (python)

nano "filename.py" ... this creates a file, ready for you to begin coding in python, here are some shortcuts to help you navigate your code:

- ctrl + o ... this saves the file, opening an option for you to rename the file, click enter and your file is saved

- ctrl + x ... closes the file, be careful to save before closing

- ctrl + k ... deletes the line below the cursor, good for quickly removing large amounts of code

rm "filename.filetype" ... WARNING this deletes the listed file, it is not able to be undone

WIP - more coming