Settings

Theme

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

10 points by fragmede · 24 comments · 1 min read


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

19 threads
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
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

lp92

Ls

abotsis

Was going to say /bin/init but your question was too well scoped. So “apt install htop”.

d3Xt3r

curl -sL https://raw.githubusercontent.com/vps2arch/vps2arch/master/v... | bash

Grombobulous

sudo tail -f /var/log/cloud-init-output.log

yuuu

ls

runarb

w

Aspos

sudo apt install mc

jwstillwater

apt install man

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

hulitu

command.com

mildeukaryote

tmux

nbernard

ps axu

taylankasap

whoami

pwd

ls -la

mkj

dmesg

hanstyle

history

wanderingpixel

uname -a

aranaur

ls

jkahrs595

curl ascii.live/rick

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection