Get the proper time from digital TV with the command line.

How to get the proper time from a DVB receiver with the command line. This only works if you are connected to a DVB transmission. Then you can get the time from the transmission. 4.4 Tue Mar 19 jason@Yog-Sothoth 0: $ dvbdate –print System time: Tue Mar 19 19:43:49 2019…

Read More

How to optimize boot up times on Ubuntu 18.04.

There are quite a few services running on Ubuntu, they can slow down bootup times and be very annoying. One of the best ways to find out which is to use this command. The systemd-analyze blame command. This will print out a list of the services started on boot. Here…

Read More

Get real time hardware information on a Linux system with this utility.

This very useful Linux utility is a good way to get real-time Linux system information, and compare various activity on a system such as disk reads and writes, or network activity. ubuntu ~ $ dstat You did not select any stats, using -cdngy by default. —-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–…

Read More

Funny and strange UNIX happenings and C programming tips.

Funny and cool Linux tips 1337 or Leet in the UNIX time. -01:44:57– gordon@deusexmachina [~]$ date +%s 1337096699-01:44:57– gordon@deusexmachina [~]$ date +%s 1337096699 The missing days in 1752. I have mentioned this before, but it is worth mentioning again. -01:45:31– gordon@deusexmachina [~]$ cal 9 1752 September 1752 Su Mo Tu…

Read More

Get the startup time of your Linux machine with systemd.

The systemd-analyze command will print the time taken for the system to boot up. This separates the time for the kernel and the userspace environment. root@darkstar:~# systemd-analyze Startup finished in 4.728s (kernel) + 28.339s (userspace) = 33.068sroot@darkstar:~# systemd-analyze Startup finished in 4.728s (kernel) + 28.339s (userspace) = 33.068s This command…

Read More

How to fix the incorrect time in Linux Mint Debian Edition.

The time in Linux Mint Debian Edition can be wrong compared to your Windows installation; this is easily fixed though. Open the /etc/adjtime file in VIM. vim /etc/adjtimevim /etc/adjtime Then change the last line from UTC to LOCAL as shown below. deusexmachina ~ # cat /etc/adjtime 0.014261 1405441104 0.000000 1405441104…

Read More

Some miscellaneous BASH tricks. Useful tips for all Linux users.

This command shows how to display a listing of files with ls and show line numbers at the same time. homer@deep-thought ~/Desktop/Site % ls | nl 1 back.jpg 2 bejiitas_phpb1 3 bejiitas_phpb1.sql 4 cgi-bin 5 Files.tar.lzma 6 Map07Tufb.zip 7 my2.tar.lzma 8 program.c 9 quake38.jpg 10 sysinfo 11 tekcrazy_2.zip 12 wrap.rarhomer@deep-thought…

Read More