標籤:經過前幾天的磁碟寫滿的事件之後,發現自己對du這個命令完全不知道,所以下決心要學習一番。我就當一盤搬運工吧,外網找到一個教程 ‘du‘就是尋找檔案夾的大小du Typing the above at the prompt gives you a list of directories that exist in the current directory along with their sizes. The last line of the output gives
標籤:1、按照指定的某段路徑,進行資料拷貝。 => head Assembly.txt /ifs1/ST_ENV/USER/liyiyuan/liushanlin/1KITE_1_2/110817_I809_FCD05CDACXX_L3_INSbusTBARABPEI-119/e3/gap/e3.scafseq_200
標籤:shellchmod u+x./shxx1.簡單的shell程式設計 sh example 執行顯示所在的目錄和檔案$cat example#!/bin/sh#this is to show what a example looks likeecho "Our first example"echo # thisecho "we are "/bin/pwdecho echo "This directory contains the following
標籤:一、概述read命令接收標準輸入(鍵盤)的輸入,或者其他檔案描述符的輸入。得到輸入後,read命令將資料放入一個標準變數中。 二、使用舉例(這裡僅列出一些常用的選項)1.基本讀取#!/bin/bash echo -n "Enter your name:" #參數-n的作用是不換行,echo預設是換行 read name #從鍵盤輸入 echo "hello $name, welcome to my
shell編程式控制制結構:expr、let、for、while、until、shift、if、case、break、continue、函數、select1、expr計算整數變數值s=`expr 2 + 3`運算子號和參數之間要有空格分開;2、let命令let s=(2+3)*4echo $s3、for語句 for 變數 in 列表 do 命令列(通常用到迴圈變數) done #!/bin/bashfor var in one two three four five