Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how is it possible to access one linux machine thru another. Following is the need

1) check if a linux machine say ab-080 exists or not.

2) if exists, then clean a directory. /tmp ( this can be done using tmpwatch or rm ...)

not aware at present of a command like the one in windows \unc path.....what is it.



share|improve this question

migrated from Dec 13 '10 at 20:23

This question came from our site for professional and enthusiast programmers.

Define "exists". – Ignacio Vazquez-Abrams Dec 13 '10 at 20:01
ssh? <!--padding--> – Adam Rosenfield Dec 13 '10 at 20:03
ssh, expect, NFS, Samba... (depends on what experience you want) – birryree Dec 13 '10 at 20:04
@Ignacio: so existential o.0 – Matt Ball Dec 13 '10 at 20:06
@Matt - Hah, well played. :) – EEAA Dec 13 '10 at 20:43
up vote 7 down vote accepted

ssh ab-080 rm -r "/tmp/*"

share|improve this answer
you should probably escape or quote the *: ssh ab-080 'rm -r /tmp/*' – Nathan Fellman Dec 13 '10 at 21:38
good catch. that's what I get for writing in a hurry. – erjiang Dec 15 '10 at 14:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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