Skip to content

Linux cheatsheet

Useful commands

find rasbperry pi

sudo nmap -sn 192.168.1.0/24 | grep -B 2 Rasp

how open ports

sudo ss -tulwn | grep LISTEN

systemctl list-sockets

serve website from current folder

docker run -p 8080:80 -v $(pwd):/usr/local/apache2/htdocs httpd:latest

mount remote folder wit ssh

  1. add host to .ssh/config
  2. use mount_ssh {host} 1

  1. Requires bash_helpers.sh file, see setting up