linux 常用 命令 筆記二

來源:互聯網
上載者:User

標籤:

wget 下載,得到網路上的內容

grep 檔案搜尋工具

EveryThing is a file in the linux system

安裝 cowsay

sudo apt-get install cow-say

cowsay ctrl + D 來結束輸入

stdout 輸出 檔案指標

cat file1>file2 file2中以前的內容就沒有了

cat file1>>file2 file2中最佳file1中的內容

也可以這個樣子 : cat 本來就是串連兩個檔案的

cat file1 file2 >file3 這個樣子,file1 file2 疊加放到file3中

錯誤資訊重新導向 : 2> 就可以啦
ls ssdslfj 2>file

管道線 |

許可權問題

ls -la 這個樣子就可以產看許可權問題了

chmod +w . 可以改變許可權問題

w 寫入權限 刪除,重新命名

:wq ZZ 儲存

x有執行許可權 就可以當成一個程式來執行

ps aux|less 這個是查看進程 並且分頁顯示

Ubuntu 系統中的快速鍵
ctrl + shift + C 複製
ctrl + shift + V 黏貼

ctrl + shift + T 開啟一個新的視窗

aux 是產看進程情況

kill 結束進程

location 尋找

location --regexp Regex

updatedb 更新檔案系統資料庫

locate xx

find 尋找當前檔案夾

find .|grep .txt 尋找.txt檔案 ,利用管道符
find .| -type f 查看檔案
find .| -type d 查看檔案夾

rsync -r 檔案夾 遠端站台 上傳檔案到伺服器

 

linux 常用 命令 筆記二

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.