例如:
ssh me@remote "du -sh"
du -sh 5M .
5M .
最佳答案
ssh me@remote "sh -x -c 'du -sh'"
https://stackoverflow.com/questions/5394266/
相关文章:
ssh - 如何测量 SSH 隧道的带宽?
bash - SSH隧道复杂问题
grails - Grails从1.3.7升级到3.2.6的路径
pdf - 生成的pdf中的文本是反向的
grails - repo.grails.org - 证书过期
grails - 如何在Grails(2.5.5)中自动在前面带有多个大写字母的服务接线
unit-testing - 基于 Spock 交互的测试 : too few invocation
svn - 通过SSH的svn diff-结果与Trac不同吗?
colors - 在 ssh 之前导出 TERM
mongodb - Grails 3 MongoDB无法从application.yml中读取con