| LICENSE | Initial commit | |
| README.md | Update README.md | |
Linux Command Line
Some command line in linux that I found useful.
Categorized into Distro Agnostic (or general, if you prefer) and Distro Specific (or distro based, if you prefer).
Distro Agnostic
Can be used in any linux distros.
-
Check desktop session (X11 or Wayland)
env | grep XDG_SESSION_TYPE -
Refresh fonts (after adding new font in ~/.local/share/fonts or /usr/share/fonts/)
fc-cache -f -v -
Update icon cache (after adding new icons in ~/.icons) in XFCE
gtk-update-icon-cache .icons/icons-folder/ -
Copy/save file to multiple folders
tee ~/folder1/file.txt ~/folder2/file.txt ~/folder3/file.txt < ~/file.txtor without the output (e.g. the content of the files)
tee ~/folder1/file.txt ~/folder2/file.txt ~/folder3/file.txt < ~/file.txt >/dev/null
Distro Specific
Can be used in respective linux distro below.
Debian & derivatives (Ubuntu, Pop OS!, Linux Mint, etc.)
-
Install
.debpackage via terminalsudo dpkg -i debian-packages.debchange the
debian-packages.debto your package name -
Fix missing dependencies after installing packages using
sudo dpkg -icommandsudo apt install -f -
Clean unnecessary packages
packages that isn't used anymore by other packages.
sudo apt autoremove