User Tools

Site Tools


journal:spring2019:ballen18:week4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
journal:spring2019:ballen18:week4 [2019/02/13 16:02]
ballen18
journal:spring2019:ballen18:week4 [2019/02/13 16:03] (current)
ballen18
Line 4: Line 4:
  
 -cd lib -cd lib
 +
 -cd proc/ shows lots of info. used for hacking -cd proc/ shows lots of info. used for hacking
 +
 -PS currently running processes -PS currently running processes
 +
 -/bin & /sbin (administrator) -/bin & /sbin (administrator)
 +
 -/usr/games -/usr/games
 +
 -cp start.html ~/​unixprojects/​pbx0 -cp start.html ~/​unixprojects/​pbx0
 +
 -cpio files  cpio –iv < sol.exe -cpio files  cpio –iv < sol.exe
 +
 -aprops manual, translate, sort -aprops manual, translate, sort
 +
 -use man pages -use man pages
 +
 # everything after hash will be ignored # everything after hash will be ignored
 +
 -status unix detail= class results -status unix detail= class results
 +
 -Purpose of version control is to add things as they happen with a copy of backup -Purpose of version control is to add things as they happen with a copy of backup
  
Line 20: Line 31:
  full quotes-literal quote no expansion  full quotes-literal quote no expansion
  $( ) backquote, backtick-command expansion  $( ) backquote, backtick-command expansion
 +
 -Variable-current files but are containers of info from RAM -Variable-current files but are containers of info from RAM
  declaringsetting  declaringsetting
Line 25: Line 37:
  
 -echo $var1 -echo $var1
 +
 -echo “the contents of var1: $var1: $var2 -echo “the contents of var1: $var1: $var2
 +
 -printenv -printenv
 +
 -echo $ PATH -echo $ PATH
 +
 -echo “there are $ numlogins users on the system” -echo “there are $ numlogins users on the system”
 +
 -rm –f stuff is same as /bin/rm stuff -rm –f stuff is same as /bin/rm stuff
 +
 -echo $numlogins -echo $numlogins
 +
 -Wildcards: -Wildcards:
 +
 ?-Match 1 of any character ?-Match 1 of any character
 +
 *-Match 0 or more of any character *-Match 0 or more of any character
 +
 -[ ]-character closes-Match 1 of any enclosed characters -[ ]-character closes-Match 1 of any enclosed characters
 +
 -[^]-inverted character class. Do not match 1 of any of the enclosed -[^]-inverted character class. Do not match 1 of any of the enclosed
 +
 - ~ means til the - ~ means til the
 +
 -who | head -4 -who | head -4
 +
 -cat outputs entire file “head” only top part -cat outputs entire file “head” only top part
 +
 -who | tail -8 | head -4 = is good for filtering down file -who | tail -8 | head -4 = is good for filtering down file
 +
 -ls ignores files that start with . by default -ls ignores files that start with . by default
 +
 -cat.bash_history | wc -1 = list of command ever typed -cat.bash_history | wc -1 = list of command ever typed
 +
 -.bashrc = file is for settings -.bashrc = file is for settings
 +
 -ls –a -ls –a
 +
 -man bash to learn prompting -man bash to learn prompting
  
 -control d = logout -control d = logout
 +
 -control c = terminate current running process -control c = terminate current running process
 +
 -control a = beginning of prompt command line-also home -control a = beginning of prompt command line-also home
 +
 -control e = end of prompt command line-also end -control e = end of prompt command line-also end
 +
 -control l = clear screen -control l = clear screen
 +
 -control s = transmit off -control s = transmit off
 +
 -control q = transmit on -control q = transmit on
  
journal/spring2019/ballen18/week4.txt · Last modified: 2019/02/13 16:03 by ballen18