This question already has an answer here:

I know how to check uptime of a system with the top or uptime commands. But what if I need to do this for a system with a specific id?

marked as duplicate by tripleee, Stephen Kitt linux Jul 13 '17 at 17:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 3
    What do you mean a system with a specific id? A remote system? – Jesse_b Jul 13 '17 at 16:43
  • @Jesse_b Well...let's say there's a local network and I'm a system administrator. How do I check the uptime for a specific machine? Sorry if I'm saying silly things, I don't quite understand it myself. – Foobard Jul 13 '17 at 16:49

Try this:

   ssh user@server <<'EOF'
  • 8
    Or simply ssh user@server uptime – Stephen Kitt Jul 13 '17 at 16:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.