root:x:0:0:root:/root:/bin/bash
john:x:1001:1001:John Doe:/home/john:/bin/bash
root:x:0:0:root:/root:/bin/bash
john:x:1001:1001:John Doe:/home/john:/bin/bash
root:x:0:0:root:/root:/bin/bash
john:x:1001:1001:John Doe:/home/john:/bin/bash
john:$6$randomsalt$longhashstring...:19800:0:99999:7:::
john:$6$randomsalt$longhashstring...:19800:0:99999:7:::
john:$6$randomsalt$longhashstring...:19800:0:99999:7:::
127.0.0.1 localhost
127.0.1.1 mymachine
192.168.1.50 dev-server.local
127.0.0.1 localhost
127.0.1.1 mymachine
192.168.1.50 dev-server.local
127.0.0.1 localhost
127.0.1.1 mymachine
192.168.1.50 dev-server.local
hosts: files dns
hosts: files dns
hosts: files dns
nameserver 8.8.8.8
nameserver 1.1.1.1
search local.lan
nameserver 8.8.8.8
nameserver 1.1.1.1
search local.lan
nameserver 8.8.8.8
nameserver 1.1.1.1
search local.lan
ls -la /etc/resolv.conf
# → /etc/resolv.conf -> /run/systemd/resolve/stub-resolv.conf
ls -la /etc/resolv.conf
# → /etc/resolv.conf -> /run/systemd/resolve/stub-resolv.conf
ls -la /etc/resolv.conf
# → /etc/resolv.conf -> /run/systemd/resolve/stub-resolv.conf
cat /proc/cpuinfo
cat /proc/cpuinfo
cat /proc/cpuinfo
ls /proc/$$/
ls /proc/$$/
ls /proc/$$/
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
eth0 00000000 0101A8C0 0003 0 0 100 00000000 0 0 0
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
eth0 00000000 0101A8C0 0003 0 0 100 00000000 0 0 0
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
eth0 00000000 0101A8C0 0003 0 0 100 00000000 0 0 0
command 2>/dev/null # silence error output
command 2>/dev/null # silence error output
command 2>/dev/null # silence error output
UUID=abc123 / ext4 defaults 0 1
UUID=def456 /home ext4 defaults 0 2
UUID=ghi789 swap swap sw 0 0
tmpfs /tmp tmpfs mode=1777,size=2G 0 0
UUID=abc123 / ext4 defaults 0 1
UUID=def456 /home ext4 defaults 0 2
UUID=ghi789 swap swap sw 0 0
tmpfs /tmp tmpfs mode=1777,size=2G 0 0
UUID=abc123 / ext4 defaults 0 1
UUID=def456 /home ext4 defaults 0 2
UUID=ghi789 swap swap sw 0 0
tmpfs /tmp tmpfs mode=1777,size=2G 0 0
[Unit]
Description=OpenBSD Secure Shell server
After=network.target auditd.service [Service]
ExecStart=/usr/sbin/sshd -D
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure [Install]
WantedBy=multi-user.target
[Unit]
Description=OpenBSD Secure Shell server
After=network.target auditd.service [Service]
ExecStart=/usr/sbin/sshd -D
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure [Install]
WantedBy=multi-user.target
[Unit]
Description=OpenBSD Secure Shell server
After=network.target auditd.service [Service]
ExecStart=/usr/sbin/sshd -D
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure [Install]
WantedBy=multi-user.target
sudo grep "Failed password" /var/log/auth.log | awk '{print $11}' | sort | uniq -c | sort -rn | head
sudo grep "Failed password" /var/log/auth.log | awk '{print $11}' | sort | uniq -c | sort -rn | head
sudo grep "Failed password" /var/log/auth.log | awk '{print $11}' | sort | uniq -c | sort -rn | head
root ALL=(ALL:ALL) ALL
%sudo ALL=(ALL:ALL) ALL
root ALL=(ALL:ALL) ALL
%sudo ALL=(ALL:ALL) ALL
root ALL=(ALL:ALL) ALL
%sudo ALL=(ALL:ALL) ALL
john ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart nginx
john ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart nginx
john ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart nginx - cmdline — the exact command that launched this process
- environ — all environment variables it was started with
- fd/ — a folder containing symlinks to every open file descriptor
- maps — the memory map: which libraries and files are loaded into memory
- status — current state, memory usage, which user it runs as