--- tags: - General title : Linux utils description : Utils for linux date : 2025-01-02 author : Nikola Petrov --- ### .desktop file location ```bash ~/.local/share/applications /usr/share/applications ``` ### nvim The [Releases](https://github.com/neovim/neovim/releases) page provides pre-built binaries for Linux systems. ```bash 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`: ```bash export PATH="$PATH:/opt/nvim-linux64/bin" ``` For sudo acces ```bash sudo ln -s /opt/nvim-linux64/bin/nvim /usr/bin/ ``` ### Open default file explorer ```bash xdg-open . ``` ### See memory usage ```bash htop ``` ### Find ```bash find -name # Search files by name find -type d -name # Search directory name ``` ### To upgrade all ```bash sudo apt-get upgrade ``` ### zoxide better cd https://github.com/ajeetdsouza/zoxide ### git ```bash git config --global user.name "Nikola Petrov" git config --global user.email "nikola@petrovv.com" ``` ### ffmpeg convert JPG to video ```bash 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 ```bash 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 ```bash 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 ```bash sudo apt install pavucontrol ``` ### .tar ```bash tar -cf archive_name.tar /path/to/dir tar -xf archive_name.tar ``` ### .tar.gz ```bash 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 ```