Hawker News

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

7 pointsby fragmede17 comments

When you get access to a new server via ssh, what's the first command you run? ls? nproc? lsb_release -a? uname -a?
wazzaps[hidden]
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

d3Xt3r[hidden]
hulitu[hidden]
command.com
abotsis[hidden]
Was going to say /bin/init but your question was too well scoped. So “apt install htop”.
lp92[hidden]
Ls
yuuu[hidden]
ls
runarb[2 comments hidden]
w
richstokes[hidden]
Correct
Grombobulous[hidden]
sudo tail -f /var/log/cloud-init-output.log
jwstillwater[hidden]
apt install man

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

jkahrs595[2 comments hidden]
curl ascii.live/rick
fragmede[hidden]
ssh funky.nondeterministic.computer
Aspos[hidden]
sudo apt install mc
mkj[hidden]
dmesg
hanstyle[hidden]
history
wanderingpixel[hidden]
uname -a
aranaur[hidden]
ls