Ben Chuanlong Du's Blog

It is never too late to learn.

Package Management in Linux

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

There are many different ways to install packages in Linux.

  1. Build from source.

  2. Pre-built binaries.

  3. Use distribution specific tools. For example,

    • Debian, Ubuntu Series: apt-get, wajig
    • Fedora: dnf Notice that Atomic …

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 …

Good Terminal Apps

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

Wave

Wave is an open-source terminal with superpowers, integrating file previews, file editing, AI, web browsing, and workspace organization.

Warp

Warp is a blazingly fast, rust-based terminal reimagined from the ground …

Tips on Golang

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

Tips and Traps

  1. The package main tells the Go compiler that the package should compile as an executable program instead of a shared library. The main function in the main package is the entry point of the program.

Tips on macOS

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

  1. Print Mac OS X operating system version information.

    sw_vers -productName
    
  2. You can use Homebrew to install applications in Mac similar to the command apt-get or wajig in Debian series of Linux …

Enable and Disable Key Repeating in macOS

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

  1. Run the following command in terminal and then restart your Mac to enable key repeating by pressing and holding.

    defaults write -g ApplePressAndHoldEnabled -bool false
    
  2. Run the following command in terminal …