- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: The Last Command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 08:21 AM
06-14-2001 08:21 AM
The Last Command
pts/tb
My question is what does the tb stand for also the tb will vary from te,tg,tc,tj,tf,t1,ti and 0. Can anybody explain this to me. And can i use this to figure out where people are logging in from.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 08:36 AM
06-14-2001 08:36 AM
Re: The Last Command
Whenever someone logs on to the UNIX system, the system assigns a terminal or pseudo terminal depending on the connection type. How many terminals are available in the pool to use depends on your particular installation, and is configurable by the administrator. Expanding the number of terminals available beyond the kernel's current limit requires a rebuild, but in general shouldn't be necessary for most installations.
# last mark |head -1
mark pts/16 Wed Jun 13 12:11 - 12:12 (00:01)
To take an example of the system I work on --
shows that user mark logged onto pseudo-terminal 16 (/dev/pts/16) on Wednesday Jun 13 from 12:11 - 12:12, a total of 1 minute.
cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 08:57 AM
06-14-2001 08:57 AM
Re: The Last Command
Like Mark explained, the "pts/tb" designation is just the pseudoterm identifier that was given to that network terminal session. You can use "who -Hu" to get some really useful information. Here is sample output from my C110:
# who -Hu
NAME LINE TIME IDLE PID COMMENTS
root console Apr 19 10:15 old 2016 system console
dcs0582 pts/1 Apr 23 09:29 old 22712 cannes.hertz.com
root ttyp1 Jun 11 15:03 . 770 172.16.141.40
You can see in the "COMMENTS" column the network source of each network terminal session. This may be more of what you are looking for. You can omit the "H" switch if you don't want the column headings (hint: scripted who -u collection via cron since who is a "real-time" command).
Cheers,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 10:59 AM
06-14-2001 10:59 AM
Re: The Last Command
last -R
or just for a user such as root:
last -R root
or to see the last 10 logins:
last -R -10 root
See also the same options for lastb which reports bad/failed login attempts.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 11:11 AM
06-14-2001 11:11 AM
Re: The Last Command
Cheers,
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2001 11:44 AM
06-14-2001 11:44 AM
Re: The Last Command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2001 07:44 AM
06-15-2001 07:44 AM
Re: The Last Command
xba ttyra fpc02
ajp pty/ttyt5 apc08
pjl ttyra dtcpor
I know where the first two users are physically located, the host names are PCs. But, the last entry is a dumb terminal on a 72-port DTC.
1. How do I tell where the dumb terminal is physically located?
2. What's the difference between a "tty" and a "pty/tty" ?
Fred