Tuesday, March 13, 2012

Unix notes Week 2

#todo create a blog for unix, or rename this one to cover subjects other than java
#todo find out how comments are stored in UNIX, is /*comment*/ acceptable

Week 2
Pattern matching
ls
amemo memo memoa memosally user.memo mem memo.0612 memorandum sallymemo


ls memo?   /*result must start with memo and have 1 unknown char*/
memoa


ls memo* /*result must start with memo and have none to many unknown char after*/
memo memoa memo.0621 memorandum memosally 


ls memo[ar]* /*result must start with memo and a or r, followed by one to many unknown char*/
memoa memorandum


Signals
^Z     Control+Z     Suspends the interactive job and controls returns to shell
$ bg                 Puts the last suspended process to the background
$ jobs               Lists all your jobs (processes) that are running in the background
$ kill [0-...]       Different kill codes, examples follow
$ kill 2             interrupt  

$ kill 9             sure kill (cannot be ignored) 
$ kill 15            terminate






No comments:

Post a Comment