“Shell skill”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
 
(未显示同一用户的1个中间版本)
第4行: 第4行:
 
帅的写法 在添加源最常用  ,加源也行  
 
帅的写法 在添加源最常用  ,加源也行  
  
sudo sh -c 'cat > /etc/apt/sources.list.d/my.list << EOF
+
sudo bash -c 'cat > /etc/apt/sources.list.d/my.list << EOF
 
你的内容
 
你的内容
 
EOF'
 
EOF'
 
</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?]
 +
 +
[[category:shell]] [[category:devops]]

2022年3月9日 (三) 03:55的最新版本

cat 不交互重定向

帅的写法 在添加源最常用  ,加源也行 

sudo bash -c 'cat > /etc/apt/sources.list.d/my.list << EOF
你的内容
EOF'

XPS 13 9300 - Does fingerprint reader work on linux?