basic

Install package

For .deb

1
sudo dpkg -i *.deb

For .AppImage

1
2
chmod +777 *.AppImage
./*.AppImage

Fix package

1
2
3
4
5
sudo apt -f install
sudo apt update
sudo apt install [dependencies]
...
sudo apt install [package]

Manage process

See all the process:

1
ps aux

Find the target pid

1
pgrep [partial name] 

return the pid of the process
kill the process
1
kill [pid]

Useful command

grep

Search for confirmed strings in file

1
grep [option] [pattern] [file]

option

  • -i: ignore capitalizing
  • -v: inverse search
  • -n: show the line num
  • -f: reveral search of files in folder
  • -i: only print the name od file
  • -c: only print the line num

Example

display the battery percentage

1
upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage
Author

Chen Yulin

Posted on

2023-05-10

Updated on

2024-05-15

Licensed under

Comments