Backing up your computer is very important indeed. How to do it with Linux using a simple script.

The importance of backing up your computer can not be understated. This is an integral part of using a computer, judging by the outages of various cloud backup services like Microsoft Azure and other cloud services it is not a good idea to only use a cloud service like Google Drive or Skydrive to store … Read more

Get information about your root filesystem on Linux very easily. This is very useful.

Get information about the creation date of your root filesystem on Linux The Linux stat(1) utility will print information about your root filesystem. The Birth entry shows when the filesystem was created. This was the start of the Arch Linux installation procedure. ┌──[[email protected]]─[~/Desktop] └──╼ ╼ $ stat / File: / Size: 4096 Blocks: 8 IO … Read more

How to use local time in Ubuntu 20.04 and have the same time when rebooting into Windows.

The default installation of Ubuntu uses UTC time instead of local time to maintain the system clock. But this changes the Windows clock to UTC from local time when you reboot and this is very annoying. Run this command to fix this issue. jason@jason-desktop:~$ timedatectl set-local-rtc 1 –adjust-system-clockjason@jason-desktop:~$ timedatectl set-local-rtc 1 –adjust-system-clock This will change … Read more

Speed up the shutdown time of your Ubuntu machine using Systemd.

Systemd, by default waits a long time for some services to shutdown when switching off the machine. This can be annoying when you get a message in the console that a stop job is running for a certain service, and it is waiting for it to shutdown. But this can be fixed. Edit the /etc/systemd/system.conf … 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– usr sys idl wai hiq … 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 We Th Fr Sa 1 … Read more

How to read the time from a Digital TV card with Linux. This is easy.

To read the system time from a Digital TV transmission, the tuner card installed in your machine must firstly be tuned to a channel. Then execute this command in a terminal. localhost% dvbdate Mon Apr 17 01:15:33 2017localhost% dvbdate Mon Apr 17 01:15:33 2017 This will read the time from the digital TV transmission and … 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 will get the date and … 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 LOCALdeusexmachina ~ # cat /etc/adjtime … 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 ~/Desktop/Site % ls | nl … Read more