
⇐ Back | Page | Next ⇒ |
Commands
G
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
getty
Open a tty, prompt for a login name, then invoke /bin/login
getty [OPTIONS] BAUD_RATE TTY [TERMTYPE] -h Enable hardware (RTS/CTS) flow control -i Do not display /etc/issue before running login -L Local line, do not do carrier detect -m Get baud rate from modem's CONNECT status message -w Wait for a CR or LF before sending /etc/issue -n Do not prompt the user for a login name -f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue -l LOGIN Invoke LOGIN instead of /bin/login -t SEC Terminate after SEC if no username is read -I INITSTR Send INITSTR before anything else -H HOST Log HOST into the utmp file as the hostname
grep
Search for PATTERN in each FILE or standard input
grep [-HhrilLnqvsoweFEABCz] PATTERN [FILE]... -H Prefix output lines with filename where match was found -h Suppress the prefixing filename on output -r Recurse -i Ignore case distinctions -l List names of files that match -L List names of files that do not match -n Print line number with output lines -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress file open/read error messages -c Only print count of matching lines -o Show only the part of a line that matches PATTERN -m MAX Match up to MAX times per file -w Match whole words only -F PATTERN is a set of newline-separated strings -E PATTERN is an extended regular expression -e PTRN Pattern to match -f FILE Read pattern from file -A Print NUM lines of trailing context -B Print NUM lines of leading context -C Print NUM lines of output context -z Input is NUL terminated
Example
The following example shows how to search for a pattern from standard input.
# env | grep "bin" PATH=/usr/bin:/bin:/usr/sbin:/sbin SHELL=/bin/sh[_/su_spoiler]
gunzip
gzip
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
⇐ Back | Page | Next ⇒ |
Ubiquiti UniFi Command-Line Interface Reference