Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

From OpenVMS DCL Dictionary:

The Ctrl/T function displays a single line of statistical information about the current process. When you press Ctrl/T during an interactive terminal session, it momentarily interrupts the current command, command procedure, or image to display statistics. The statistical information includes the node and user names, the current time, the current process, CPU usage, number of page faults, level of I/O activity, and memory usage. For example:

BOSTON::SMITH  16:21:04 EDT       CPU=00:00:03.33 PF=778 IO=296 MEM=277

What is Linux for OpenVMS DCL Ctrl/T?

share|improve this question

2 Answers 2

I sincerely doubt there's an exact analog. The nature of a Linux process (and consequently of running a command) is so different than the nature of a VMS process and how it runs a command that nothing like this can really exist.

As I understand VMS, when you run a command like TYPE SOMEFILE.TXT, DCL reads the TYPE.EXE into the memory of the same process that DCL runs in, fixes up all the relocations that TYPE.EXE needs, and then jumps to the first instruction of TYPE.EXE. When TYPE.EXE has done its work, the OS returns control to the DCL code that still resides in the same process as TYPE.EXE.

That heavyweight process, which includes DCL, a table of lexicals, and a well-known jump table of addresses of various things, allows Ctrl-T to work. That key sequence is just a special form of keyboard interrupt, and the DCL code in any given process can do the work you describe.

A linux process doesn't always have a shell (DCL analog) in it. A linux process may not even have keyboard interrupt handler code registered with the kernel, which would mean that any keyboard interrupt (Ctrl-C or Ctrl-) gets the kernel to cause the process to exit.

share|improve this answer

BSD UNIX family support SIGINFO signal [1] and VSTATUS control character [2], normally bound to Ctrl/T. The output looks like this:

load: 0.12  cmd: cat 13579 [ttyraw] 0.00u 0.00s 0% 880k

[1] signal(7) [2] stty(1)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.