Ask HN: Whats the first command you run on a new server?

1 points by fragmede ↗ HN
When you get access to a new server via ssh, what's the first command you run? ls? nproc? lsb_release -a? uname -a?

24 comments

[ 0.18 ms ] story [ 10.4 ms ] thread
sudo tail -f /var/log/cloud-init-output.log
apt install man

I’m not kidding! That man.db is a light in the dark!

sudo apt install mc
Was going to say /bin/init but your question was too well scoped. So “apt install htop”.
apt install fish && chsh -s /usr/bin/fish && curl https://github.com/wazzaps.keys >> ~/.ssh/authorized_keys

If I'm manually running commands on a server it means I'll likely use it interactively a lot, might as well not suffer

[flagged]
Who, what, when, where, how, am I?

    whoami
    uname -a; cat /etc/issue
    date
    pwd; curl http://ipv4.icanhazip.com
    df -h; free -h; # htop