Skip to content

Commands (Bash)

Cheat Sheet

Devhints.io | Bash

Custom

Add i386 Architecture for steam-installer (If required)

sudo dpkg --add-architecture i386
  • Note: Make sure you update after change. This also needs to have contrib repo added to /etc/apt/sources.list (can also add non-free).

Enable Virtual Network for virt-manager

sudo virsh net-start default

Reboot/Shutdown Systemd Commands

Reboot

systemctl restart

Shutdown

systemctl poweroff

Pull Systems Information

LANG=C inxi -Fxxxrzc0 --usb

Find errors with journalctl

journalctl -p err

Change Shell

chsh -s $(which zsh)

Verify:

echo $SHELL

ln -s PATHTOFILETOLINK PATHTOSAVELINK

Tar Decompression

tar -xzvf archive.tar.gz -C PATHTODIRECTORY

Chaining Grep

grep -e bash -e rc
  • Works like an AND/OR search
  • Finds folders/files that have "bash", "rc" and "bashrc" in it

Check Current Running Connections (at current time [will not update unless ran again])

netstat -ano | grep "443"