command :  vimtutor

#this is a lesson for vim learning.

Allen 發表在 痞客邦 留言(0) 人氣()

  • Jul 16 Wed 2014 04:00
  • nfs4

http://www.gtwang.org/2012/02/nfsv4.html


Allen 發表在 痞客邦 留言(0) 人氣()

取代cp

rsync -av ( a 保留原始權限...之類的)(v 顯示進度,內容)

Allen 發表在 痞客邦 留言(0) 人氣()

#include <iostream>
#include <string>
#include <vector>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
 
using namespace std;
 
int main()
{
  string s = "sss/ddd,ggg";
  vector<string> vStr;
  boost::split( vStr, s, boost::is_any_of( ",/" ), boost::token_compress_on );
  for( vector<string>::iterator it = vStr.begin(); it != vStr.end(); ++ it )
    cout << *it << endl;
  return 0;
}

Allen 發表在 痞客邦 留言(0) 人氣()

write

dd if=/dev/zero of=1.img bs=1M count=1024

Allen 發表在 痞客邦 留言(0) 人氣()

du -h --max-depth=1


Allen 發表在 痞客邦 留言(0) 人氣()

  • Mar 05 Wed 2014 01:43
  • NFS

安裝

Allen 發表在 痞客邦 留言(0) 人氣()

vi /etc/network/interfaces

Allen 發表在 痞客邦 留言(0) 人氣()

:%s/time/Time/g

%代表全文

Allen 發表在 痞客邦 留言(0) 人氣()

  1. echo $PATH   所顯示的這個user登入所默認的shell type , user shell type 寫明在/etc/passwd.
  2. 但在使用linux當中 , 有時 我們會切換不同的shell來使用 ex: bash -> csh.
  3. 所以在切換過後,如果想要確認shell type 可用以下方式check
    1. echo $$   會顯示shell(使用中的) job id   這禮預設為"number" 
    2. ps aux |more|grep number 即可查看目前使用哪種shell

Allen 發表在 痞客邦 留言(0) 人氣()