Visit Our UNIX and Linux User Community

Full Discussion: Tracing a terminal
Top Forums UNIX for Advanced & Expert Users Tracing a terminal Post 18875 by LivinFree on Thursday 4th of April 2002 01:08:25 AM
Old 04-04-2002
What Unix are you using? Some (Linux distributions specifically) come with a tool called ttysnoop, that mirrors their terminal session on another terminal you can log into. Other times (depending on the shell - this doesn't work in real time with the bash shell for example) you can simply tail -f /home/usrname/.sh_history...
If you just want to turn on auditing, knowing the Unix variant you're using is helpful, since different system log different ways.

Also, if you want a screendump of what the user is doing on the terminal (I think it only works on the /dev/tty* terminals) in Linux, look at the /dev/vcs* files. See man vcs for more info.
Test Your Knowledge in Computers #766
Difficulty: Medium
Modern CPUs have multiple non-interacting on-chip caches.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Tracing file modifications

Hello all! Is there a way or a utility to trace any kind of file changes in a particular directory on any UNIX machine? The purpose is that in Unix, there are multiple ways of opening and making changes to a file. But internally, there must be something common (a single pipe, etc.) that is... (3 Replies)
Discussion started by: gupta_ca
3 Replies

2. Linux


hello every one can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end . for example what ever command u gave... (1 Reply)
Discussion started by: shary
1 Replies

3. Shell Programming and Scripting

tracing in linux

hello every one can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end . for example what ever command u gave... (2 Replies)
Discussion started by: shary
2 Replies

4. Shell Programming and Scripting

tracing processes in shell

Is there a way to have the output from: strace -p 10101 placed in a text file so we can download it and look it over? Thanks Richard (1 Reply)
Discussion started by: ukndoit
1 Replies

5. UNIX for Dummies Questions & Answers

Tracing file installation

Hello, my first post here. I have a script to install a program which runs the user through installation interface offering several options. What I want to do is to trace the possible mistakes during the installation and send them to a logfile. I.e if a user interrupts the installation, I would... (2 Replies)
Discussion started by: tetreb
2 Replies

6. UNIX for Dummies Questions & Answers

File access tracing

Hello.. Is there anyway to check if some processes are reading one file? Id use inotify, but my kernel is 2.6.9, so it doesnt work. -k- (2 Replies)
Discussion started by: Kimmo_
2 Replies

7. Shell Programming and Scripting

Tracing a function call

Hi I am hoping someone can explain this to me as I am struggling to understand it. I had a problem today with needing to trace a ksh script that was dotting in a function that was writing to stdout. The problem was it was being run in a sub shell and the output was being parsed by the... (1 Reply)
Discussion started by: steadyonabix
1 Replies

8. Programming

Ascii vs Pcap tracing

Dear All, Which is better to use ? Ascii or Pcap tracing ? Or are they complementary ? (1 Reply)
Discussion started by: knowledgeSeeker
1 Replies

9. Shell Programming and Scripting

Cannot get terminal application to launch with a graphical launcher when successful in terminal

I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies

10. Shell Programming and Scripting

Print Terminal Output Exactly how it Appears in the Terminal to a New Text File

Hello All, I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly. Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies
DISPLAYS(5)                                                     File Formats Manual                                                    DISPLAYS(5)

displays - Display Configuration File DESCRIPTION
The interactive graphics programs Caesar, Magic, and Gremlin use two separate terminals: a text terminal from which commands are issued, and a color graphics terminal on which graphical output is displayed. These programs use a displays file to associate their text terminal with its corresponding display device. The displays file is an ASCII text file with one line for each text terminal/graphics terminal pair. Each line contains 4 items separated by spaces: the name of the port attached to a text terminal, the name of the port attached to the associated graphics terminal, the phos- phor type of the graphics terminal's monitor, and the type of graphics terminal. An applications program may use the phosphor type to select a color map tuned to the monitor's characteristics. Only the std phosphor type is supported at UC Berkeley. The graphics terminal type specifies the device driver a program should use when communicating with its graphics terminal. Magic supports types UCB512, AED1024, and SUN120. Other programs may recognize different display types. See the manual entry for your specific applica- tion for more information. A sample displays file is: /dev/ttyi1 /dev/ttyi0 std UCB512 /dev/ttyj0 /dev/ttyj1 std UCB512 /dev/ttyjf /dev/ttyhf std UCB512 /dev/ttyhb /dev/ttyhc std UCB512 /dev/ttyhc /dev/ttyhb std UCB512 (R) In this example, /dev/ttyi1 connects to a text terminal. An associated UCB512 graphics terminal with standard phosphor is connected to /dev/ttyi0. FILES
Magic uses the displays file ~cad/lib/displays. Gremlin looks in /usr/local/displays. SEE ALSO
magic(1) 3rd Berkeley Distribution 2/19/85 DISPLAYS(5)

Featured Tech Videos

All times are GMT -4. The time now is 10:28 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy