Test your typing speed in a Linux terminal with Ttyper

There are several ways to test and improve your typing speed. You can use online tools, install dedicated applications on the desktop, or test in the Linux terminal.

Linux terminal? That’s right. From surfing the internet to playing games, there are so many fun things you can do in the powerful Linux terminal. Testing your typing speed is one of them.

Ttyper: terminal based typing test tool

Typer is a tool written in Rust which allows you to practice your tactile input.

It gives a random selection of some of the most common English words. Correctly typed words are highlighted in green and bad ones in red and this happens in real time. You can hit backspace and correct the words, but it will help reduce the score.

When you are done typing all the displayed words, you get the result with your typing speed in words per minute, accuracy and the correct number of keystrokes. You can use Ctrl + C to exit Type if you are not in the mood to type the whole section.

ttyper typing test result

You can see Ttyper in action in this developer recorded GIF.

ttype

By default you get 50 words to practice, but you can expand this with command options. You can also use a custom text file and use its contents to practice typing.

Order Content
ttype 50 of the 200 most common English words
ttyper -w 100 100 of the 200 most common English words
ttyper -w 100 -l english1000 100 of the 1000 most common English words
ttyper text.txt content of test.txt divided into space

Ttyper also focuses on developers. It supports multiple programming languages ​​and if you are a programmer, you can use it to test and improve your typing while you code.

ttyper html typing test

As of now, C, Csharp, Go, HTML, Java, JavaScript, Python, Ruby, and Rust languages ​​are supported.

You can change the language as follows:

ttyper -l html

By the way, the double “T” in “Ttyper” is not a typo. It is deliberated that TTY (TeleTYpewriter) represent the terminal emulator, an indication that it is a terminal tool.

Recommended reading:

Installing Ttyper on Linux

Ttyper is built with Rust and you can install it on any Linux distribution that supports the Rust programming language and its Freight Parcel Manager.

Cargo is the Rust equivalent of Python’s PIP. There is a central repository and you can easily download and install Rust packages with its dependencies with Cargo.

I will add the instructions for installing Cargo on Linux distributions based on Ubuntu. You should be able to install it using your distribution’s package manager.

Please make sure the universe repository is enabled on Ubuntu. You can install Cargo with this command:

sudo apt install cargo

It will install the Cargo package manager with rustc Rust language package.

Once Cargo is installed on your system, use it to install Ttyper with this command:

cargo install ttyper

This will add a rust executable file to the .cargo / bin directory under your home directory. It will be mentioned at the end of the package installation output.

installation of ttyper linux

You can switch to this directory:

cd ~/.cargo/bin

and run the ttyper executable:

ttyper

Of course, this is not very practical. Therefore, you need to add this directory to the PATH variable. If you know the Linux command line, you can easily do this.

Unfortunately, I can’t give you the exact commands here as you need to provide the absolute PATH to this directory and that path name will differ depending on your username. For example, for me it’s /home/abhishek/.cargo/bin. This absolute PATH will be different for you.

I recommend reading on absolute and relative path for clarity on this topic.

You can uninstall Ttyper by deleting the binary file or use the Cargo command in this way:

cargo uninstall ttyper

If you like this nifty terminal tool, star it on GitHub to appreciate the developer’s efforts.

As I mentioned at the start of this article, there are a lot of cool things you can do in Terminal. If you want to surprise your colleagues, maybe you can try creating presentation slides entirely in the Linux terminal.


Source link

About Jon Moses

Check Also

New TypeScript 4.5 improves asynchronous programming – Visual Studio Magazine

New New TypeScript 4.5 improves asynchronous programming TypeScript 4.5 comes with a new Awaited type …

Leave a Reply

Your email address will not be published. Required fields are marked *