Ben Chuanlong Du's Blog

It is never too late to learn.

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 …

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 …

PCIe BUS Error: Severity=Corrected, Type=Physical Layer

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

Note: You might have to do this every time you upgrade your Linux kernel!!

Symptoms

Below are step-by-step symptoms from superficial to root causes.

  1. Your Linux system becomes very slow even …

Manage systemd Services and Units

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

  1. List all services names.

    service --status-all
    
  2. List all systemd units.

    systemctl
    
  3. Disable a service.

    systemctl disable service_name
    
  4. Check whether systemd is running as PID 1.

    ps --no-headers -o comm 1
    

A …

Tips on Shell Commands

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

explainshell.com

  1. command-not-found - Suggest installation of packages in interactive bash sessions

  2. nohup, disown

  3. nautilus-open-terminal

Configuration

https://github.com/thoughtbot/til/blob/master/bash/bash_profile_vs_bashrc.md#:~:text=bashrc%20is%20sourced%20on%20every …