coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Thursday September 9, 2010


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?
Create an account

Who's Online
We have 36 guests online

Newest Member

santoshd

Hit Counter
4775985 Visitors

cool Statistics
coolcommands:1313
Categories:82
Total queries:524279
Members:4288





Search coolcommands.com
Search Keyword:


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



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1138
audet37
kah00na32
Mariom24
lebjf00013

Top 5 Searches

Category Solaris42738
Category AIX38092
Category General UNIX34295
solaris20874
aix19395

Terms of Use
Privacy
Contact


 
coolcommands.com © 2010. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum