Useful Commands

Change default shell:

chsh -s /bin/bash $USER

Restart shell (for bash, zsh, may not work with fish, csh, sh...)

exec "$SHELL" -l

Create GIF with your screen view:

sudo apt install -y peek && peek

This is really useful for Arch-based distros if you're not familiar with pacman syntax

paru -S --noconfirm pac-pacman-aliases

You can also configure an alias to make it a synonym for apt:

# FOR FISH
echo '
alias -s apt 'pac'
' >> ~/.config/fish/config.fish
echo '
function sudo
    if functions -q $argv[1]
        set cmd "command sudo fish -c \"$argv\""
        eval $cmd
    else
        command sudo $argv
    end
end
' > ~/.config/fish/functions/sudo.fish

fuck : The Fuckarrow-up-right is a magnificent app that corrects errors in previous console commands. Install script:

Remove unused packages

Clear shell history

and for powershell:

Last updated