-
Notifications
You must be signed in to change notification settings - Fork 0
Linux
kamack38 edited this page Oct 13, 2025
·
27 revisions
-
shred <file>overwrite some file with random content and delete it
Warning
This does not work on COW filesystems file BTRFS, ZFS and BCacheFS. COW can be disabled for a
single file using chattr +C /dir/file
-
basename/dirname <path>get the basename/dirname of the path -
journalctl -p 3 -xbshow system errors and add e[x]planations for current [b]oot -
sudoeditedit files as a super user using specified$EDITOR -
sudo udevadm control --reload && sudo udevadm triggerreload udev rules -
gpg-connect-agent reloadagent /byereload gpg-agent -
rsync -avu --delete "/home/user/from" "/home/user/to"sync two directories -
git merge-file merged.txt empty.txt file2.txt- mergemerged.txtandfile2.txt -
flatpak uninstall --unused- uninstall unused flatpaks
-
mount -o remount -a- remount [a]ll filesystems as defined in/etc/fstab
-
pacman -F <name>find which package provides a specified binary -
pacman -Ql <name>list all files installed by a package -
pacman -Rns (pacman -Qtdq)clean orphans -
pacman -Rdd <name>remove a package without removing packages that require it -
pacman -Scclean cache -
pacman -Syu --ignore <pkg>update the system but skip a package -
makepkg --printsrcinfo > .SRCINFOgenerate .SRCINFO for a package
ffmpeg -i input_file -vn -f mp3 output_fileffmpeg -i video_file -i subtitles_file -c copy -c:s mov_text -metadata:s:s:1 language=eng output_fileyt-dlp -x --audio-format mp3snapper list-configssudo snapper -c <config> listsudo snapper -v -c root undochange <snapshot id to restore from>..<current snapshot id>Tip
Snapper (at least for me) automatically creates a snapshot of the current system with id 0.
-
ctrl+zsuspend current job (make a program run in a background) -
fgbring most recently suspended or running background job to foreground -
bear -- makegeneratecompile_commands.jsonfrom a compile command
-
cat /proc/asound/cardslist sound cards
pactl load-module module-combine-sinkAnd to enable permanently
~/.config/pipewire/pipewire-pulse.conf
context.exec = [
{ path = "pactl" args = "load-module module-combine-sink" }
]
systemctl --user restart wireplumber pipewire pipewire-pulsechmod -R 700 ~/.local/share/baloo
balooctl6 disable
balooctl6 purge
balooctl6 enable
touch ~/.local/share/baloo/indexsudo pacman -S archlinux-xdg-menu
# Set this globally
XDG_MENU_PREFIX=arch- kbuildsycoca6The following packages are required:
android-sdk jdk17-openjdk android-sdk-platform-tools android-sdk-build-tools android-tools android-sdk-cmdline-tools-latest gradle android-studio android-platform android-emulator
If you're still having issues check the permissions on /opt/android-sdk and unset custom
$ANDROID_HOME
Fixing permissions:
sudo groupadd android
sudo usermod -a -G android $(whoami)
sudo chown -R root:android /opt/android-sdk
sudo chmod -R g=u /opt/android-sdkparu -S jadx jadx-gui-desktopparu -S httptoolkit-binCreate an AVD with Pixel 8 and Triamisu x86_64 API 33 Android 13.0 (Google APIs) (worked for me
the best). Then start httptoolkit and follow in-app instructions.
Follow instrcutinons on Diolinux/PhotoGIMP
First install the requirements
pacman -S pandoc-cli texlive-latex texlive-basic texlive-latexrecommended texlive-fontsrecommendedAnd then compile it
pandoc file.md -o output.pdfGo to /etc/systemd/logind.conf and uncomment:
HandlePowerKey=ignore
PowerKeyIgnoreInhibited=yes
sudo systemctl daemon-reload
# Or to reload user configuration
systemctl --user daemon-reloadreboot-
halt- shutdown