è¤æ°ãµã¼ãéã®è¨å®ãã¡ã¤ã«ãæ¯è¼ãããã¨ãã¯ããããã°ããã§ãã ãã¼ã«ã«ãã¡ã¤ã«ã¨ãªã¢ã¼ããµã¼ãã®ãã¡ã¤ã«ãæ¯è¼ $ ssh remotename cat /etc/hosts | diff /etc/hosts - ããããæ¸ãæ¹ãããã¾ãã $ diff <(ssh remotename cat /etc/hosts) /etc/hosts ãªã¢ã¼ããµã¼ãéã®ãã¡ã¤ã«ãæ¯è¼ $ diff <(ssh remote1 cat /etc/hosts) <(ssh remote2 cat /etc/hosts) 解説 ssh hostname cat /path/to/file "cat /path/to/file"ã¨ããã³ãã³ããå¥ãµã¼ã(hostname)ä¸ã§å®è¡ããã¦ãçµæãèªãã·ã³ã®æ¨æºåºåã«åºåãã¾ãã diff /path/to/file - diffã§ããã¡ã¤ã«åãæå®ãã代
{{#tags}}- {{label}}
{{/tags}}