Siliang Zhang

We want to know the world systematically

[WIP] Bash Commands

Posted by:

|

On:

|

It’s impossible to memorize all bash commands and the corresponding arguments. We want to build a gallery so that we can find what we have used easily.

Check the version of the linux distribution

cat /etc/os-release
lsb_release -a

Check the kernel version

uname -r

Check libc version

ldd --version

Find CPU information

lscpu

Search all used IP in local network

nmap -sn 192.168.1.0/24

Small blank Software Updater window

# find the orphaned update-manager process
pgrep -fl update-manager
# kill the orphaned process
pkill -f update-manager

Show the process tree

ps -ef --forest
# -e is used to select every process
# -f get details in full format

Posted by

in