Ben Chuanlong Du's Blog

It is never too late to learn.

Desktop Environments for Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. desktop files in /usr/share/applications/ different DEs might have different format. At least I know that a desktop file created by Xfce cannot be used in GNOME, not sure the …

Managing Fedora Atomic Core System Using rpm-ostree

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Fedora Atomic Linux ditributions use rpm-ostree to install system tools.

Upgrade

sudo ostree admin pin 0
rpm-ostree rebase
rpm-ostree rebase fedora:fedora/43/x86_64/kinoite

Tips on Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tricks and Traps

  1. Use full paths of commands when you use a batch account or schedule a cron job. The reason is that batch account and/or cron might have different …

Tips on fd

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips & Traps

  1. fd is much faster compared to find.

Installation

wajig install fd-find

The install binary is fdfind.

Example Usages

  1. Find all directories under $dir.

    fdfind --type d . $dir
    
  2. Find all …

Clean Temporary Files in Linux

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The script purge_cache.sh is a good one for clean cache of various package managers and temporary files on Linux.

Tips on rsync

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. The command rsync -avh src_dir des_dir (src_dir has no trailing slash) synchronizes the whole directory src_dir into the destination directory des_dir while rsync -avh src_dir/ des_dir (src_dir/ has …