LinuxIRLive ResponseBashCLI
Linux Live Response
Perintah CLI penting untuk investigasi dan live response pada sistem Linux.
10 min read2026-04-09
1. 01 — System Info
bash
hostname && uname -a
uptime && date
df -h && free -h2. 02 — Users & Auth
bash
who && w
last -20 && lastb -20
grep -v '/nologin\|/false' /etc/passwd
awk -F: '$3 == 0 {print}' /etc/passwd
grep "Failed password" /var/log/auth.log | tail -203. 03 — Processes
bash
ps auxf
ps aux --sort=-%cpu | head -20
ps aux | grep -iE "nc |ncat|netcat|python.*http|/tmp/|/dev/shm/"
ls -la /proc/[PID]/exe
lsof -i -P4. 04 — Network
bash
ss -tulnp
ss -tp state established
cat /etc/resolv.conf && cat /etc/hosts
iptables -L -n -v5. 05 — Persistence
bash
for u in $(cut -d: -f1 /etc/passwd); do crontab -l -u $u 2>/dev/null && echo "^^^ $u"; done
ls -la /etc/cron.*
systemctl list-unit-files --state=enabled
find /etc/systemd/ -name "*.service" -mtime -7 -ls
find / -perm -4000 -type f 2>/dev/null6. 06 — Files & Logs
bash
find / -mtime -1 -type f 2>/dev/null | grep -v "/proc\|/sys"
ls -la /tmp/ /dev/shm/ /var/tmp/
find /tmp /dev/shm -type f -executable 2>/dev/null
tail -100 /var/log/auth.log
journalctl --since "1 hour ago"