System¶
Batch compress files
Batch compress files with the following tools
- find : https://linux.die.net/man/1/find
- GNU parallel: https://zenodo.org/records/1146014 (PDF) and https://www.gnu.org/software/parallel/parallel_tutorial.html (HTML)
- 7z
- xz
Linux Bookmarks
Stuff related to GNU/Linux.
Install Linux
USB burning tools
The following tools make installation USB keys from ISO files.
- Ventoy : an open source tool to create a bootable USB drive loading ISO files in the partition.
- Rufus : flashing Linux/Windows ISOs in Windows.
- Etcher : flashing Linux ISOs in Linux/Windows.
- Gnome disks
Linux Wikis and forums
Command lines and shell scripting
See Shell programming.
heredoc: Passing multiple lines of string
Use heredoc to pass the string as-is between two delimiters (e.g. EOF)
cat << "EOF" >> ~/.xprofile
# ~/.xprofile
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
ibus-daemon -drx
EOF
Will append the following lines to ~/.xprofile:
Ubuntu 24.04 NTFS mount error
Use the ntfs3-3g driver instead of the default ntfs3 driver.
echo 'blacklist ntfs3' | sudo tee /etc/modprobe.d/disable-ntfs3.conf
sudo rmmod ntfs3
sudo apt install ntfs-3g
Reload nvidia GPU driver
Reload nvidia GPU driver to fix "NVML: Driver/library version mismatch" error without rebooting. Source
Mount NAS drive in Linux at boot
Add the following entry to /etc/fstab to automatically mount NAS drives at boot
Kill processes
Kill zombie processes
Find and kill zombie process(es). Source
Kill parent process(es)
Kill user processes
Check battery status
Open Windows Powershell with Administrator rights and run:
See the report at C:\battery-report.html.