Ben Chuanlong Du's Blog

It is never too late to learn.

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 …

Working Remotely in Linux

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

From Linux to Linux

Command Line Mode Using ssh

  1. Using X forwarding, you can also run GUI applications on the server. This is not recommended unless it's short quick work.

Remote …

Undelete Files in Linux

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

The best way to "recover deleted files" is really to avoid permanently delete files. It is suggested that you avoid using the rm command (unless you are 100% sure what you …

Convert HEIC Images in Linux

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

Installation on Ubuntu

wajig install heif-gdk-pixbuf libheif-examples

Usage

heif-convert input.HEIC output.jpg

Batch Convert Using IPython / JupyterLab

If you have multiple HIEC images and you want to convert all of …

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 …