Difference between revisions of "Private:Technical"
From NMSL
Line 14: | Line 14: | ||
== Linux == | == Linux == | ||
+ | |||
+ | * [http://justcheckingonall.wordpress.com/2009/06/19/bash-practical-intro/ Practical Introduction to BASH] | ||
* [http://www.debianadmin.com/providing-root-privileges-for-users-using-sudo.html Providing root privileges for users Using SUDO] | * [http://www.debianadmin.com/providing-root-privileges-for-users-using-sudo.html Providing root privileges for users Using SUDO] |
Revision as of 04:08, 23 September 2009
Java
SSH and SCP
Linux
Use one of the greps (grep, egrep, fgrep). You want to use the -r "recursive" option to search a directory and all files included within it.
grep -r -i ONOCR /usr/include [nsl@nsl]$ grep -r -i ONOCR /usr/include /usr/include/asm/termbits.h:#define ONOCR 0000020 /usr/include/linux/cdk.h:#define FO_ONOCR 0x8 /usr/include/linux/tty.h:#define O_ONOCR(tty) _O_FLAG((tty),ONOCR) /usr/include/bits/termios.h:#define ONOCR 0000020
The '-i' means ignore case. So if you only wanted it in all capitals you would not use it. When used it will find any combination of upper and lower case.