Track Time with timebook

Productivity Sauce
Time tracking tools are a dime a dozen these days, so what makes timebook so special? Two things: tiny size and simplicity. This command-line time tracking utility requires hardly any resources at all and it's extremely easy to get to grips with. timebook is written in Python, and it's pretty easy to install. Download the archived version of the utility and unpack it. In the terminal, switch to the resulting directory, and run the python setup.py install command as root.
Using timebook is also pretty straightforward. The utility uses timesheets for grouping timing sessions. For example, you can create a timesheet called "writing" for all your writing activities using the switch command:
t switch writing
If a timesheet by this name doesn't exist, timebook creates it; otherwise it makes the existing timesheet active. The in command lets you then start a new timing session, or activate an existing one, for example:
t in timebook article 1st draft
The command above creates a new timing session called "timebook article 1st draft". This session is considered active until you stop it using the out command:
t out
To view all sessions in the current timesheet, you can use the display command:
t display
This command shows a detailed list of all timing sessions, including date, start and end time as well as total time.
While timebook doesn't include any reporting capabilities, it allows you to export timesheet data to the CSV format so you process them in other applications like OpenOffice.org Calc. To export data from a specific timesheet (e.g., writing), use the format command as follows:
t format writing
Other useful commands include kill (deletes a specified timesheet), list (lists all timesheets), and now (prints the current timesheet).
Obviously, timebook won't replace a full-blown time tracking tool, but it can come in handy when you need to quickly record the time you spend on a particular job or project with minimum fuss and overhead.
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

News
-
Ubuntu 25.04 Coming Soon
Ubuntu 25.04 (Plucky Puffin) has been given an April release date with many notable updates.
-
Gnome Developers Consider Dropping RPM Support
In a move that might shock a lot of users, the Gnome development team has proposed the idea of going straight up Flatpak.
-
openSUSE Tumbleweed Ditches AppArmor for SELinux
If you're an openSUSE Tumbleweed user, you can expect a major change to the distribution.
-
Plasma 6.3 Now Available
Plasma desktop v6.3 has a couple of pretty nifty tricks up its sleeve.
-
LibreOffice 25.2 Has Arrived
If you've been hoping for a release that offers more UI customizations, you're in for a treat.
-
TuxCare Has a Big AlmaLinux 9 Announcement in Store
TuxCare announced it has successfully completed a Security Technical Implementation Guide for AlmaLinux OS 9.
-
First Release Candidate for Linux Kernel 6.14 Now Available
Linus Torvalds has officially released the first release candidate for kernel 6.14 and it includes over 500,000 lines of modified code, making for a small release.
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.