Interview Prep/Linux/Migrations, performance and fleet operations

A legacy server nobody understands must be documented before it is migrated. How do you discover what it does?

IntermediateScenarioMigrations, performance and fleet operations
Answer

Situation read → Inventory services, connections, jobs and data.

What I'd do →

systemctl list-units --type=service --state=running
ss -tulpn                                    # listening
ss -tnp state established                    # who it talks to
crontab -l; ls /etc/cron.d; systemctl list-timers
df -h; lsblk; cat /etc/fstab; showmount -e 2>/dev/null
rpm -qa --last | head -50 || ls -lt /var/lib/dpkg/info | head
ls -la /opt /srv /usr/local/bin

Watch connections over days (or flow logs) to catch weekly/monthly traffic.

Why → Hidden cron jobs and rare inbound clients are what break after a migration.

Interview tip → Mention leaving it powered off but intact for a while after cutover ("scream test").

All Linux questions Roadmap: Linux

More on Migrations, performance and fleet operations