Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I've been using TRAMP for a few days now. It works very well for the most part. I can load a remote shell using M-x shell, and ido-mode with find-file works very well remotely as well, which was surprising to me.

However, I'm having trouble with dired-do-shell-command. When I select a remote file using dired, then use ! to invoke dired-do-shell-command, it attempts to do this locally. Why does it do that if find-file and dired itself use TRAMP transparently?

I'm confused about how TRAMP really ties into the rest of Emacs.

share|improve this question
I can't reproduce this behaviour on my system. Please try to do the same test with a standard Emacs configuration (emacs -q) and see if this problem still happens... – Francesco May 24 '13 at 6:35
@Francesco unfortunately it still happens. When I attempt to invoke p4 (Perforce), it says "/bin/sh: p4: command not found" – Hut8 May 28 '13 at 13:32
try to invoke something like hostname, to really see where the command is being executed. There are so many ways perforce could fail (like environment problems), that you might be mistaken about the origin of the problem. – Francesco May 28 '13 at 17:52
Also unable to reproduce. What Emacs version are you using? – Aaron Miller Aug 14 '13 at 18:46

Your Answer


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

Browse other questions tagged or ask your own question.