sudo [options] <command>
-A |
Use $SUDO_ASKPASS |
-b |
Run in background |
-E |
Preserve environment |
-H |
use target’s $HOME |
-n |
Don’t prompt for password |
-P |
Preserve group vector |
-S |
Read password from stdin |
-C fd |
Close all open file descriptors |
Switch | Description |
---|---|
-i [cmd] |
Interactive shell without variables |
-s [cmd] |
Interactive shell |
-u user |
run as this user |
-g group |
run as this group |
grep [options] [pattern] [file ...]
Switch | Description |
---|---|
-A num |
Print num lines of training context |
-G |
–basic-regexp (default) |
-E |
–extended-regexp |
-P |
–perl-regexp |
-f file |
–file (Get patterns for file) |
-F |
–fixed-strings |
-h |
–no-filename |
-H |
–with-filename |
-l |
–files-with-matches (just print filenames) |
-L |
–files-without-match |
-r, -R |
–recursive |
-v |
–invert-match |
-i |
–ignore-case |