QUICK REFERENCE

Command Library

Useful Linux, Cisco and MikroTik commands. Press COPY to copy a command.

Linux
whoami
Show current user
Linux
id
Show user and group IDs
Linux
chmod 640 file.txt
Set file permissions
Linux
sudo systemctl restart ssh
Restart SSH service (use only when appropriate)
Linux
journalctl -xe
Inspect recent system logs
Linux
du -sh /var/log
Measure directory size
Cisco
show running-config
Display active device configuration
Cisco
show mac address-table
Inspect learned MAC addresses
Cisco
show spanning-tree vlan 10
Inspect STP for VLAN 10
Cisco
show access-lists
Inspect configured ACLs
MikroTik
/ip firewall filter print stats
Inspect firewall rules and counters
MikroTik
/interface bridge vlan print
Inspect bridge VLAN table
Linux
pwd
Print current working directory
Linux
ls -lah
List files, including hidden files, in long format
Linux
ip addr
Show network interfaces and IP addresses
Linux
ss -tulpn
Show listening TCP/UDP sockets (permissions may vary)
Linux
systemctl status ssh
Inspect SSH service status
Linux
journalctl -u ssh -n 50
Show recent SSH service logs
Linux
df -h
Show filesystem capacity in human-readable units
Linux
lsblk
List block devices
Cisco
show ip interface brief
Summarize interface state and IP addresses
Cisco
show vlan brief
List VLANs and assigned access ports
Cisco
show interfaces trunk
Show trunk ports and VLANs
Cisco
show ip route
Display routing table
Cisco
show ip ospf neighbor
Inspect OSPF neighbor state
Cisco
copy running-config startup-config
Save running configuration
MikroTik
/ip address print
Show configured IP addresses
MikroTik
/ip route print
Show routing table
MikroTik
/ip dhcp-server lease print
List DHCP leases
MikroTik
/ip firewall nat print
Show NAT rules