|
| cool Statistics |
| | coolcommands: | 1313 | | Categories: | 82 | | Total queries: | 524279 | | Members: | 4288 | |
|
|
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
coolcommand
tty - how to return a user's terminal name |
Description
The tty utility writes to the standard output the name of the terminal that is open as standard input.
# tty
To test whether or not the standard input is a terminal:
if tty -s then echo 'Enter the text to print:' >/dev/tty fi
|
Example
tty |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: how to remount a filesystem and turn on UFS logging in Sun Solaris
Example: mount -o remount,logging /fs
[show me the details] |
coolcommand: how to find the serial number of an IBM p-series machine
Example: lscfg -vp | grep Cabinet
[show me the details] |
coolcommand: how to show the arp table without name resolution
Example: netstat -np
[show me the details] |
coolcommand: how to get a list of devices in Sybase
Example: select name from sysdevices where cntrltype=0
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1138 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 13 |
Top 5 Searches
|
| Category Solaris | 42738 |
| Category AIX | 38092 |
| Category General UNIX | 34295 |
| solaris | 20874 |
| aix | 19395 |
|
|
|
|