click below
click below
Normal Size Small Size show me how
UNIX Principle 3
cpsc 2010 unix vocab :D
| Term | Definition |
|---|---|
| diff | difference. find differences, if any, between two files: xxx file1 file2 |
| grep | generate regular expression and print. searches text or files for lines that match a specific pattern. search using regular expressions: ls | xxx "html" or xxx "milk" shopping.txt |
| grep -i | searches for text or files for lines that match a specific pattern but ignores capitalization: xxx -x "apples" shopping.txt |
| grep -n | searches for text or files for lines that match a specific pattern and shows line it shows up in: xxx -x "bread" shopping.txt |
| file | file type. determine type of file: xxx . . |
| stat | file/directory status. get file system status: xxx filename |
| --help | in addition to the man command, most UNIX commands support the xxx command line argument to give a succinct synopsis fo the command: man xxx |
| whoami | return the netid of the user: xxx |
| id | identify. return teh various integer ids associated with the user: xxx |
| uptime | how long has teh system been running sinc elast reboot: xxx |
| who | who is currently logged in? |
| who -r | who is currently logged in and what are they running? |
| w | what are users running? |
| last | when did users last access the system? (defaults to reboot) |
| last -n | view most recent xxx -x users |
| uname | what flavor of unix are we running? |
| lsb_release | what release of linux are we running? |
| du | disk usage. how much disk space is being used under this directory? |
| quota | disk xxx. how much disk space am i allowed? |
| free | display the amount of xxx and used memory in the system |
| finger | displays information about the system users |
| info | displays information on most of teh core unix commands using the emacs editor. if you see imacs, you should use. xxx ls |