Bird
0
0

You want to run a remote command uptime on server server.example.com using SSH without opening an interactive shell. Which command is correct?

hard📝 Application Q9 of 15
Linux CLI - SSH and Remote Access
You want to run a remote command uptime on server server.example.com using SSH without opening an interactive shell. Which command is correct?
Assh -p uptime server.example.com
Bssh server.example.com uptime
Cssh -i uptime server.example.com
Dssh -t server.example.com uptime
Step-by-Step Solution
Solution:
  1. Step 1: Understand remote command execution

    SSH allows running commands directly by appending them after hostname.
  2. Step 2: Evaluate options

    ssh server.example.com uptime correctly places command after hostname; others misuse flags.
  3. Final Answer:

    ssh server.example.com uptime -> Option B
  4. Quick Check:

    Remote command syntax = ssh host command [OK]
Quick Trick: Put command after host to run remotely via SSH [OK]
Common Mistakes:
  • Using -t unnecessarily
  • Misusing -i or -p flags
  • Placing command before hostname

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes