Example Linux server error logs when CPU is faulty

Error messages displayed in the SSH shell: Message from syslogd@server at Aug 8 11:27:49 … kernel:[4665156.435610] NMI: IOCK error (debug interrupt?) for reason 61 on CPU 0.   Message from syslogd@server at Aug 8 11:28:08 … kernel:[4665175.398187] NMI: IOCK error (debug interrupt?) for reason 61 on CPU 0.   Message from syslogd@server at Aug 8 […]

Output multiple Linux commands into columns

You can run multiple Linux commands and get the output for each command delimited by a column: paste -d’|’ <(echo "$VAR1") <(echo "$VAR2") <(echo "$VAR3") <(echo "$VAR4")paste -d’|’ <(echo "$VAR1") <(echo "$VAR2") <(echo "$VAR3") <(echo "$VAR4") You can also run commands “inline” inside $(), example: paste -d’|’ <(echo $(pwd)) <(echo $(id))paste -d’|’ <(echo $(pwd)) <(echo […]

How to Disable Hibernation on Windows 10

Hibernation saves your open documents and programs on your hard-disk into the file C:\hiberfil.sys and then owers off the computer. The file C:\hiberfil.sys is a hidden and system-protected file that is approximately 75% of the total amount of RAM. The problem of hibernation is that it stores in the C:\hiberfil.sys important programs data (such as […]

Disable Windows Defender on Windows 10 via Regedit

Copy this text in a new text file: Windows Registry Editor Version 5.00   [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000001   [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection] "DisableRealtimeMonitoring"=dword:00000001Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection] "DisableRealtimeMonitoring"=dword:00000001 Rename the text file to disable-defender.reg Double-click the .reg file and reboot the computer. Now WIndows Defender will be disabled.

Install Latest NVIDIA Drivers for Windows 10

Open this URL in your browser: https://www.nvidia.com/Download/index.aspx?lang=en-us Enter your NVIDIA graphic card details and click the Search button. BONUS TIP: If you are a creative or business and not a gamer, select: Download Type = Studio Driver (SD) These drivers focuses on stability and wuality.

How to improve security of encrypted hard disks

To avoid your encrypted disk (Truecrypt, Veracrypt, Bitlocker, etc) from being decrypted your first rule should be to use a strong password, then you need to make sure an attacker cannot access data that was saved in the memory, else he can dump the decryption key that was stored in the memory and then remove […]

Get Server IP Address with Ifconfig and IP in Bash

Here is a one-line command to get server remote IP address: Using “ifconfig” checking for “inet”: /usr/sbin/ifconfig | grep "inet " | cut -d: -f2 | awk ‘{ print $2}’ | head -n 1/usr/sbin/ifconfig | grep "inet " | cut -d: -f2 | awk ‘{ print $2}’ | head -n 1 Using “ifconfig” checking for […]

bash: ipconfig: command not found

If you get an error when typing “ifconfig” in the shell console: bash: ipconfig: command not foundbash: ipconfig: command not found Then try to use the full ifconfig path: /usr/sbin/ifconfig/usr/sbin/ifconfig Or better use “ip” command like this: ip addrip addr

Check if a number is within a range in bash

Bash snippet to check if a number is within a range: number=3   if [ "$number" -ge 2 ] && [ "$number" -le 5 ]; then echo "$number is within 2 and 5" finumber=3 if [ "$number" -ge 2 ] && [ "$number" -le 5 ]; then echo "$number is within 2 and 5" fi

Linux Commands to Check HDD from Rescue Mode

Linux commands you can run to check HDD status from Rescue Mode: 1) List disks ls -la /dev/sd* ls -la /dev/md*ls -la /dev/sd* ls -la /dev/md* 2) Try to mount a disk mkdir -p /mnt/md0 mount -t auto /dev/md0 /mnt/md0mkdir -p /mnt/md0 mount -t auto /dev/md0 /mnt/md0 3) Check RAID status with MDADM mdadm –detail […]