Hacker News

Hacker News

Ask HN: Whats the first command you run on a new server?
10 points by fragmede •                         
When you get access to a new server via ssh, what's the first command you run? ls? nproc? lsb_release -a? uname -a?
runarb •                         
w
richstokes •                         
Correct
yuuu •                         
ls
aranaur •                         
ls
Grombobulous •                         
sudo tail -f /var/log/cloud-init-output.log
jwstillwater •                         
apt install man

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

lp92 •                         
Ls
Aspos •                         
sudo apt install mc
jkahrs595 •                         
curl ascii.live/rick
fragmede •                         
ssh funky.nondeterministic.computer
wanderingpixel •                         
uname -a
abotsis •                         
Was going to say /bin/init but your question was too well scoped. So “apt install htop”.
hanstyle •                         
history
mkj •                         
dmesg
d3Xt3r •                         
wazzaps •                         
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

hulitu •                         
command.com
taylankasap •                         
whoami

pwd

ls -la

karmakaze •                         
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
nbernard •                         
ps axu
mildeukaryote •                         
tmux