1

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?

2
  • 3
    What do you mean a system with a specific id? A remote system?
    – jesse_b
    Commented Jul 13, 2017 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
    Commented Jul 13, 2017 at 16:49

1 Answer 1

0

Try this:

   ssh user@server <<'EOF'
   uptime
   EOF
1
  • 9
    Or simply ssh user@server uptime Commented Jul 13, 2017 at 16:54

Not the answer you're looking for? Browse other questions tagged .