How to set the timezone on Ubuntu with the command-line.
How to set a new time zone in Ubuntu with the command-line.
How to set a new time zone in Ubuntu with the command-line.
How to get useful information about the boot time of your Linux system.
Some more very useful filters and tips for Wireshark. This should be very useful when searching through a capture file.
How to get the filesystem creation date on Linux with simple utilities.
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 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
It is very easy to get hardware information on Ubuntu in a simple and easy to read format. The sudo lshw -class input command will print information about any input devices connected to your computer. ┌──[[email protected]]─[~] └──╼ ╼ $ sudo lshw -class input *-usb:1 description: Keyboard product: OMEN Sequencer vendor: HP physical id: 3 bus … Read more
This is an improved version of my random monster program. This shows how to get the size of a const char array and then select a random entry from the array. monsters.c1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 … Read more
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
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
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 RX time: Tue Mar 19 … Read more
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 below is an example. This … Read more
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 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
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
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 filter for a time frame in Wireshark.
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
How to use VLC on Linux to record a time lapse video easily.
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