LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ttytime

Show duration of ttyrec recordings

TLDR

Show duration of a recording
$ ttytime [recording.tty]
copy
Show duration of multiple recordings
$ ttytime [file1.tty] [file2.tty] [file3.tty]
copy
Show duration of all recordings in directory
$ ttytime [*.tty]
copy

SYNOPSIS

ttytime file [file...]

DESCRIPTION

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.

OUTPUT FORMAT

Output consists of duration in seconds followed by the filename:

$ 173 session1.tty
42 session2.tty
1832 longdemo.tty
copy

INSTALL

sudo apt install ttyrec
copy
brew install ttyrec
copy

CAVEATS

Only works with ttyrec format files. Duration reflects timing data, not actual content length. Corrupted recordings may report incorrect times.

HISTORY

ttytime was created as a companion utility to ttyrec and ttyplay to provide quick duration information without requiring full playback. It's part of the ttyrec package commonly used in the Unix community for recording and sharing terminal sessions.

SEE ALSO

ttyrec(1), ttyplay(1), script(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid