Time of Update: 2014-12-31
標籤:1.開啟終端,輸入help命令可以查看系統預設的shell(通常是bash)的內建的shell命令列表:[[email protected] ~]$ helpGNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)These shell commands are defined internally. Type `help‘ to see this list.Type `help name‘ to find
Time of Update: 2014-12-31
標籤:1.bash shell是大多數linux發行版本的預設shell命令直譯器,但是最近爆出bash shell存在漏洞。2.如果Bash是預設的系統shell,網路攻擊者可以通過發送Web請求、secure shell、telnet會話或其它使用Bash執行指令碼的程式攻擊伺服器和其它Unix和Linux裝置。該漏洞在影響範圍上與Heartbleed漏洞相當,在危險程度上也許沒有Heartbleed高。3.漏洞影響GNU Bash v1.14到v4.3,主要Linux發行版如Red
Time of Update: 2014-12-28
標籤:以下內容為個人理解,僅供參考。一、簡介 Hbase是在HDFS上開發的面向列的分散式資料庫,適用於隨機讀/寫超大規模的資料集(通常這種資料壓力傳統RDBMS很難承受),可以在廉價的硬體上構成的叢集上管理超大規模的稀疏表,並且可以水平擴充。 二、基礎概念
Time of Update: 2014-12-28
標籤: 摘自《碼農增刊Linus與Linux》,章節:你可能不知道的Shell。 最近閱讀完這本書,覺得其中有很多不錯的內容,這是其中的一個Shell小甜點,拿來和大家一起分享一下,增加了一些我自己的測試內容。筆者寫這個隨筆,旨在分享和提高大家對Shell的興趣。 閱讀以下部分前,強烈建議讀者開啟一個shell 實驗,這些都不是shell 教科書裡的大路貨哦:)
Time of Update: 2015-01-01
標籤:sch 助shell指令碼加密 02一、 簡介SHC(shell script
Time of Update: 2015-01-01
標籤: 簡單說一下popen()函數函數定義#include <stdio.h>FILE * popen(const char *command , const char *type );int pclose(FILE
Time of Update: 2014-12-24
標籤: Shell 記錄異地留痕審計與監控 http://netkiller.github.io/journal/shell.history.html Mr. Neo Chen (陳景峰), netkiller, BG7NYT 中國廣東省深圳市龍華新區民治街道溪山美地 518131 +86 13113668890
Time of Update: 2014-12-17
標籤:style blog ar 使用 sp for strong on div 1、expr計算整數變數值s=`expr 2 + 3`運算子號和參數之間要有空੬
Time of Update: 2014-12-18
標籤:系統配置 系統運行狀態 shell linux 最近在學習shell,老大讓寫一個讀取系統配置資訊的指令碼當作練習和工作驗收,我就寫了這麼一個指令碼,讀取作業系統,核心,網卡,cpu,記憶體,磁碟等資訊,目的是讓看的人一眼就能看出這台機子的配置以及目前的健全狀態:#!/bin/bash#Get system
Time of Update: 2014-12-10
標籤:blog http ar art log bs amp tt .net shell 後台運行程式
Time of Update: 2014-12-06
標籤:style blog http ar color 使用 sp for strong Bash shell指令碼編程知識點如下(初學,不全,歡迎討論補充): shell簡介
Time of Update: 2014-12-02
標籤:style 主機 資訊 開啟ESXi的ssh後,在主機摘要上會提示有警告資訊;650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/54/41/wKioL1R9Zj_iQDD2AACxLMlbQlw314.jpg" />解決辦法如下:vSphere Client登入到ESXi主機;點擊所選主機,依次選擇"配置"→"進階設定"65
Time of Update: 2014-12-02
標籤:style 主機 資訊 開啟ESXi的ssh後,在主機摘要上會提示有警告資訊;650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/54/41/wKioL1R9ZqqhK5iJAACxLMlbQlw096.jpg" />解決辦法如下:vSphere Client登入到ESXi主機;點擊所選主機,依次選擇"配置"→"進階設定"65
Time of Update: 2014-11-27
標籤:des style blog io ar os 使用 sp for HBase是Google Bigtable的開源實現,它利用Hadoop
Time of Update: 2015-01-01
gzexe 助shell指令碼加密 01,gzexeshellgzexe 助shell指令碼加密 01一、 簡介很多時候我們的指令碼會涉及到一些私密的資訊,例如:使用者名稱,密碼,或者其它重要訊息的時候,我們使用一些加密的手段來屏蔽這些資訊,確保系統的安全已經指令碼的可流傳性,通常情況下我們只需要通過系統內建的gzexe這個工具就夠了。二、 實驗測試開始: 2.1
Time of Update: 2014-12-26
常用的shell命令(陸續更新),shell命令更新只是我個人經常用到的,不是很全1、擷取管道前面的返回值 echo ${PIPESTATUS[0]}e.g.root@node2:~# date1 | echo 22No command 'date1' found, did you mean: Command 'date' from package 'coreutils' (main)date1: command not
Time of Update: 2014-12-24
RHEL自動安裝zookeeper的shell指令碼RHEL自動安裝zookeeper的shell指令碼A:本指令碼啟動並執行機器,Linux RHEL6B,C,D,...:待安裝zookeeper cluster的機器, Linux RHEL6首先在指令碼啟動並執行機器A上確定可以ssh無密碼登入到待安裝zk的機器B,C,D,...上,然後就可以在A上運行本指令碼:$ ./install_zookeeper前提:B, C, D機器必須配置好repo,本指令碼使用的是cdh5的repo,
Time of Update: 2014-12-19
shell編程式控制制結構:expr、let、for、while、until、shift、if、case、break、continue、函數、select,exprcontinue1、expr計算整數變數值s=`expr 2 + 3`運算子號和參數之間要有空格分開;2、let命令let s=(2+3)*4 echo $s 3、for語句for 變數 in 列表do命令列(通常用到迴圈變數)done#!/bin/bashfor var in one
Time of Update: 2014-12-19
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
Time of Update: 2014-12-14
重啟tomcat shell,tomcatshell#!/bin/bash#1、判斷服務是否可用 2、不可用重啟tomcat#*/30 * * * * /home/wsm/restart.sh >> /home/wsm/restart.log#停止tomcatfunction killTomcat(){pid=`ps -ef | grep "/home/wsm/bin/tomcat" | grep -v grep | awk '{print $2}'