======UNIX/Linux Fundamentals Journal====== ====WEEK 1==== *learned how to use some basic commands such as: *ls- "Sight", or what's in this directory *who- who is on the server at the time *w- like who, but slightly less specific *cd src- "cd source" takes you back to the base folder *cd- snaps back to home *cd..- up 1 directory *man (any command)- shows how a command works manually, specific uses etc. *whereis ("")- shows location of prompt *whoami- built in amnesia support *pom- phase of the moon *cal- calendar ====WEEK 2==== *learned meaning of some of the formats in the terminal *blue font- directory files *cyan font- symbolic link *red font- broken symbolic link OR compressed file *magenta font- media file (yay!) *green font- executable font *yellow font- special (device) file (rare) *white font- fg *red font- bg- set UID *also learned meanbing of the 10 character indicators. * First character indicates file type * second group (three characters) indicates read, write, execute authorizations for the user * third group (three characters) indicates read, write, execute authorizations for users within your group * fourth (three characters) indicates read, write, execute authorizations for the global community, an alien race comprised largely of ignorants and kittens ====WEEK 3==== *9/11/13 *Start learning best text editor EVARRRR! vi! *stands for Visual Editor *every key can be command as well as something to add text with (or bimodal) *basic commands: *type vi to enter *vi filename- opens a specific file *ESC- returns to command (PANIC! button) *I- insert mode (no backspace in this land) *Navigation *so, no arrow keys originally in vi, just H,J,K,L! (j & k are up and down, think Nethack) *w- moves cursor forward 1 word, can add # prefixes *b- vice versa, # prefixes *w and b are for each word and punctuation, spaces, word level *W and B are only for higher level words *^-jumps to the beginning of the line *$- snaps the the end of the line *G- snaps to a given line, uses prefixes *Modification *x- deletes 1 character in front, can have prefix *X-same, but backspace *u-conditional undo, IF YOU STAY ON THE SAME LINE *dw- delete word to the right, prefixes *dW- delete word to left, prefixes *d$- delete line to right *d^- delete line to the left *dd- delete whole line *.- repeat last command *cw- change word (goes in insert, word deleted) to the right *cW- " " to the right *cb *c$ *c^ *cc ==WILDCARDS== Wildcards are a way to modify searches. *-*-zero, any, or all characters *-?-any single character *-[]-any character specified within the brackets ==REGULAR EXPRESSIONS== regular expressions are similar to wildcards, but in some cases more specific, and paired with different commands, like grep. {{:opus:fall2013:lwall1:myspoon.jpg?200|}} MY SPOON IS TOO BIG *-.-any single character *-*-zero or more of the previous characters *-[]-matches anything within the square brackets *-[^ ]-DOES NOT match any of the characters specified within the brackets *-|-can mean or in some instances Also, ^ specifies the beginning of a regular expression and $ specifies the end in most cases. ======I am a banana, my spoon is too big.======