1
0
Fork
You've already forked linux-command-line
0
Some command line in linux that I found useful.
2025年04月22日 14:01:39 +00:00
LICENSE Initial commit 2025年02月22日 13:03:14 +00:00
README.md Update README.md 2025年04月22日 14:01:39 +00:00

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.txt

    or 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 .deb package via terminal

    sudo dpkg -i debian-packages.deb

    change the debian-packages.deb to your package name

  • Fix missing dependencies after installing packages using sudo dpkg -i command

    sudo apt install -f

  • Clean unnecessary packages

    packages that isn't used anymore by other packages.

    sudo apt autoremove