Shell skill:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
|||
| 第9行: | 第9行: | ||
</pre> | </pre> | ||
[https://www.dell.com/community/XPS/XPS-13-9300-Does-fingerprint-reader-work-on-linux/td-p/7514958 XPS 13 9300 - Does fingerprint reader work on linux?] | [https://www.dell.com/community/XPS/XPS-13-9300-Does-fingerprint-reader-work-on-linux/td-p/7514958 XPS 13 9300 - Does fingerprint reader work on linux?] | ||
<pre> | |||
➜ ~ cat ssh/vps | |||
➜ ~ dir=/data | |||
➜ ~ ssh [email protected] "ls '${dir}'" | |||
data | |||
➜ ~ MON=mon | |||
➜ ~ ssh [email protected] "ls '${dir}/${MON}'" | |||
rmlog | |||
</pre> | |||
[[category:shell]] [[category:devops]] | [[category:shell]] [[category:devops]] | ||
2026年5月30日 (六) 16:23的最新版本
cat 不交互重定向
帅的写法 在添加源最常用 ,加源也行 sudo bash -c 'cat > /etc/apt/sources.list.d/my.list << EOF 你的内容 EOF'
XPS 13 9300 - Does fingerprint reader work on linux?
➜ ~ cat ssh/vps ssh [email protected] ➜ ~ dir=/data ➜ ~ ssh [email protected] "ls '${dir}'" data ➜ ~ MON=mon ➜ ~ ssh [email protected] "ls '${dir}/${MON}'" rmlog