|
| cool Statistics |
| | coolcommands: | 1338 | | Categories: | 83 | | Total queries: | 620257 | | Members: | 22813 | |
|
|
|
 |
|
|
Search coolcommands.com
 |
Submitted by:
lvo   |
coolcommand
how to test if an open file descriptor n is associated with a terminal device in a shell script |
Description
The test command evaluate a condition and, if its value is true, return a zero exit status; otherwise, return a nonzero exit status. An alternate form of the command uses [ ] rather than the word test.
# test -t n
or
[ -t n ]
Note: default value for n is 1. |
Example
test -t 1; [ -t 1] |
Return to search results
 |  |  |  |
Random coolcommands
coolcommand: procfiles - how to display the open file descriptors of a process in AIX 5L
Example: procfiles 233628
[show me the details] |
coolcommand: cllscf - list cluster topology information in HACMP
Example: cllscf
[show me the details] |
coolcommand: fdisk - to read a disk label in linux
Example: fdisk -l
[show me the details] |
coolcommand: how to enable debug in your NIM client installation
Example: nim -Fo check -a debug=yes [SPOTNAME]
[show me the details] |
|
|
coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts
|  |  |  |  |
|
|
|
|
 |
|
|
|
Top 5 Submitters
|
|---|
| lvo | 1160 |
| audet | 37 |
| kah00na | 32 |
| Mariom | 24 |
| lebjf000 | 14 |
Top 5 Searches
|
| Category Solaris | 51952 |
| Category AIX | 49011 |
| Category General UNIX | 47578 |
| solaris | 23554 |
| aix | 22739 |
|
|
|
|