Time of Update: 2014-11-19
標籤:style blog http io ar color os 使用 sp 本文主要對shell中基本的文法進行簡要記錄,以備查用!1、shell變數在定義變數名時不加貨幣符號$,只在使用變
Time of Update: 2014-11-20
標籤:style blog http io ar 使用 sp strong 檔案 參考文章:1
Time of Update: 2014-11-18
標籤:des style blog io color ar os 使用 sp 進入hbase shell console$HBASE_HOME/bin/hbase
Time of Update: 2014-11-10
標籤:style blog http ar os sp on art log date的詳細使用者可以參考下面的http://www.cnblogs.com/xd502djj/archive/2
Time of Update: 2014-11-10
標籤:linux 翻譯 近來在學習linux跟shell指令碼。英文又多年不用還給教師了。遇到不懂的單詞都要開個詞霸網頁詞典來翻譯,久了多有不爽。偶然找到http://www.iteye.com/topic/819440中提到一個翻譯英文單詞的shell指令碼,可惜是多年以前的,並且用的還是如今被牆的Google,當然失效了。translate() { &nbs
Time of Update: 2014-11-05
標籤:linux command ctrl+u可以在shell下刪除行,如果此鍵不起作用,就試試ctrl+xctrl+z可以將程式掛起,不會終止程式,但可以將程式掛起。通過fg命令可再把此作業切換到前台cp命令的目標檔案如果是一個已經存在的檔案,那麼此命令就會把原來的檔案覆蓋,所以最好把cp命令起別名為:alias cp="cp
Time of Update: 2014-10-29
標籤:shell 指令碼 匹配字串 定時執行
Time of Update: 2014-10-28
標籤:style color os ar sp bs ad ef linux 1,expra)expr calculate//a=10;echo `expr $a - 1 `b)string
Time of Update: 2014-10-23
標籤:關鍵字 字串 曆史 資訊 使用者 目錄: cd : 切換目錄 cd 路徑: 切換至該檔案路徑 cd ~[username] :
Time of Update: 2014-10-14
標籤:使用 檔案 sp on log bs 伺服器 as 安裝 bin/mail(bin/mailx)預設使用本地sendmail發送郵件,本地的機器必須安裝並啟動Sendmail服務,配置比較
Time of Update: 2014-10-13
標籤:unix環境進階編程 linux shell 思路:在unix系統中有一個名為utmp的檔案,裡面存著當前登入到系統中使用者的資訊。utmp這個檔案裡面儲存的是結構數組,數組元素是utmp類型的結構。實現who命令,只要依次從utmp檔案中讀出utmp類型的結構體,然後通過合適的方式將它顯示出來即可。如果每一次只從檔案裡面讀一個結構體資料,那麼每一個結構體都要進行依次系統調用。而又因為系統
Time of Update: 2014-10-27
標籤:style os ar sp strong 資料 div on 2014
Time of Update: 2014-10-08
標籤:檔案 sp c r bs as 程式 d 方法 shell擷取進程ID的方法:我知道和實踐過的有這麼三種: ps -A |grep "cmdname"| awk ‘{print
Time of Update: 2014-10-04
標籤:style blog http color io ar strong sp div 近期因為項目須要,要遠程訪問svnserver,可是沒有固定網域名稱和ip,
Time of Update: 2014-10-04
標籤:style blog http color os 使用 ar for strong SHELL syntax error:unexpected end of file 提示錯誤if [ -
Time of Update: 2014-10-04
標籤:des http io os 使用 ar for 檔案 資料 overview 檔案系統(FS) shell包含各種與HDFS互動的命令, 比如 Local FS,
Time of Update: 2014-10-02
標籤:style blog http color io os 使用 ar for dateLinux時鐘分為系統時鐘(System Clock)和硬體(Real Time
Time of Update: 2014-10-01
標籤:os 使用 ar strong 檔案 sp div c on set命令可以用來定製shell環境,使用選項“o”來開啟或者關閉選項。例如開啟選項:set -o
Time of Update: 2014-11-04
Shell指令碼通過參數傳遞調用指定函數,shell指令碼我們在寫一些功能性指令碼的時候,往往會把操作相似或者參數類似行為接近的函數放在同一個shell指令碼中,這樣管理方便,維護簡單,也很清晰。對於這種情況,通常的辦法是,在shell指令碼中定義所有用到的函數,然後在本文代碼中用case語句讀入輸入的命令函數參數來調用指定的相應函數。這樣就達到一個shell指令碼使用的強大功能。下面以一個簡單的例子來說明。一個計算機提供了加減乘除的功能:#!/bin/bashusa
Time of Update: 2014-10-28
使用shell命令分析統計日誌需要統計使用者日誌資訊,分析出使用者行為時,用shell往往能方便地取出很多資料,取出後再放置到excel中統計。例如:統計日誌中含loadCustomProcess這個地址的訪問,按訪問耗時排序:grep "loadCustomProcess" /home/workflow/socket.txt | awk -F " " '{print $11}'|awk -F ":"