Linux command
tt 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start a typing test
tt
Start a test with custom word count
tt -n [100]
Start a timed test
tt -t [60]
Use quote mode
tt -quotes en
Group words
tt -n [50] -g [10]
Apply a custom theme
tt -theme [gruvbox]
Use a custom word list
tt -words [english1000]
Log results to CSV
tt -csv >> [~/wpm.csv]
说明
tt is a terminal-based typing test written in Go. It generates tests from randomly selected words and measures typing speed and accuracy. By default, it uses the top 1000 English words. When given a file path, tt uses that file as input, treating each paragraph as a separate test segment. This allows practicing with custom text or code samples. After each test, tt displays statistics including characters per minute (CPM), words per minute (WPM), accuracy percentage, and specific mistakes made. Results can be logged to CSV for tracking progress over time. Custom themes and word lists can be placed in ~/.tt/themes and ~/.tt/words directories. The tool is designed to be scriptable and integrate with other Unix tools.
参数
- -n _number_
- Number of words in the test (default: 50)
- -t _seconds_
- Time limit for the test in seconds
- -g _number_
- Group words into segments of specified size
- -quotes _name_
- Enable quote mode with specified quote list
- -words _name_
- Use custom or built-in word list
- -theme _name_
- Apply custom or built-in theme
- -csv
- Output results in CSV format
- -raw
- Raw output mode for scripting
- -showwpm
- Display live WPM while typing
- -help
- Display help information
FAQ
What is the tt command used for?
tt is a terminal-based typing test written in Go. It generates tests from randomly selected words and measures typing speed and accuracy. By default, it uses the top 1000 English words. When given a file path, tt uses that file as input, treating each paragraph as a separate test segment. This allows practicing with custom text or code samples. After each test, tt displays statistics including characters per minute (CPM), words per minute (WPM), accuracy percentage, and specific mistakes made. Results can be logged to CSV for tracking progress over time. Custom themes and word lists can be placed in ~/.tt/themes and ~/.tt/words directories. The tool is designed to be scriptable and integrate with other Unix tools.
How do I run a basic tt example?
Run `tt` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n _number_ do in tt?
Number of words in the test (default: 50)