Linux command structure: cmd [options] [input] Linux directory: A folder and directory are the same thing Think of a folder as a branch point in a tree, and files are the leaves The top folder is called the "root" and is reference by '/' The current directory is referenced by '.' The parent folder of the current directory is referenced by '..' '~' is used to reference YOUR home folder '~username' is used to reference username's home folder A path is a list of folders that form a path on the directory tree A path that starts with '/' is called absolute since it gives the full from root to where you want to go A relative path does not start with '/' and instead appends the current directory to start (i.e. it adds ./ to begining of given path. Terminal Stuff: cd cs108_class pwd mkdir test ls cd test pwd man cp cp ~egdaniel/teaching/cs108/files/tiltseries.jpg . cp ../../cs108/files/similar1.txt ../../cs108/files/history1.txt . file tiltseries.jpg file history1.txt mkdir subfolder mv tiltseries.jpg subfold ls file subfold mv subfold subfold.pdf file subfold.pdf mv subfold.pdf subfolder/ ls cd subfolder ls cd .. touch file1 file file1 cat history1.txt cat similar1.txt cat similar1.txt history1.txt grep 'in' similar1.txt grep 'In' similar1.txt grep 'in' * cp similar1.txt subfolder/simcpy.txt cd subfolder ls cd .. grep 'in' *.txt grep -R 'in' * cd subfolder ls rm simcpy.txt rm subfold.pdf ls cd .. rmdir subfolder cd .. rm -r test ls Vim stuff (the wrong but still works way to used vim): Type 'vim filename' (where filename is name of your file) to open file to be edited. If the file already exists then it opens that file and displays it for you. If the file does not exists it simply creates and opens a blank file for you. Once in vim hit 'i' to get into insert mode. You know you are in insert mode if you see insert on the bottom of your screen. Use arrow keys to move cursor around while in insert mode To leave instert mode prest 'Esc' You can only edit and type things into your file while in instert mode (okay this is way far from true but lets pretend this is true for now) To save, press 'Esc' to leave insert mode and type ':w' To leave file press 'Esc' to leave insert mode and type ':q'. FYI vim will require you to save before you quit.