Linux command
ttytime 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show duration of a recording
ttytime [recording.tty]
Show duration of multiple recordings
ttytime [file1.tty] [file2.tty] [file3.tty]
Show duration of all recordings in directory
ttytime [*.tty]
说明
ttytime displays the total playback duration of ttyrec recordings in seconds. It reads the timing information embedded in ttyrec files and calculates the total elapsed time from start to finish. The output shows the duration followed by the filename for each file specified. This is useful for quickly checking recording lengths without playing them back, organizing recordings, or scripting based on session duration. Multiple files can be specified to get durations for a batch of recordings at once.
FAQ
What is the ttytime command used for?
ttytime displays the total playback duration of ttyrec recordings in seconds. It reads the timing information embedded in ttyrec files and calculates the total elapsed time from start to finish. The output shows the duration followed by the filename for each file specified. This is useful for quickly checking recording lengths without playing them back, organizing recordings, or scripting based on session duration. Multiple files can be specified to get durations for a batch of recordings at once.
How do I run a basic ttytime example?
Run `ttytime [recording.tty]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more ttytime examples?
This page includes 3 examples for ttytime, plus related commands for nearby Linux tasks.