Files
personal_website/content/notes/linux_utils.md

2.2 KiB

tags, title, description, date, author
tags title description date author
General
Linux utils Utils for linux 2025-01-02 Nikola Petrov

.desktop file location

~/.local/share/applications
/usr/share/applications

nvim

The Releases page provides pre-built binaries for Linux systems.

curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux64.tar.gz

After this step add this to ~/.bashrc:

export PATH="$PATH:/opt/nvim-linux64/bin"

For sudo acces

sudo ln -s /opt/nvim-linux64/bin/nvim /usr/bin/

Open default file explorer

xdg-open .

See memory usage

htop

Find

find -name <file_name>         # Search files by name
find -type d -name <file_name> # Search directory name

To upgrade all

sudo apt-get upgrade

zoxide better cd

https://github.com/ajeetdsouza/zoxide

git

git config --global user.name "Nikola Petrov"
git config --global user.email "nikola@petrovv.com"

ffmpeg convert JPG to video

ffmpeg -framerate 30 -pattern_type glob -i '*.JPG' -c:v libx264 -pix_fmt yuv420p -s 1920x1080 -r 30 video.mp4

tmux

https://github.com/tmux/tmux/wiki/Installing

Gparted

for formating disks

rfm-bin

https://github.com/dsxmachina/rfm

https://github.com/sharkdp/bat

PopOS 22 to disable appstore auto start up and save 0,5 GB ram

sudo dpkg-divert --divert "/etc/xdg/autostart/io.elementary.appcenter-daemon.desktop.~ram~" --rename "/etc/xdg/autostart/io.elementary.appcenter-daemon.desktop"

Gnome to change back ground img size to zoom

sudo apt install gnome-tweaks 

Appearance -> Background Adjusment -> Scaled

PopOS 22 Mouse pad right click

Enable in settings -> Mouse & Touchpad -> Touchpad Click Options -> Second option

AudioControll

sudo apt install pavucontrol

.tar

tar -cf archive_name.tar /path/to/dir
tar -xf archive_name.tar

.tar.gz

tar -czf archive_name.tar.gz /path/to/dir
tar -xzf yourfile.tar.gz

sync two dirs

unison /path/to/dir/one /path/to/dir/two