目前分類:Linux (8)

瀏覽方式: 標題列表 簡短摘要

TagList也是很好用vim的plugin,功能太多啦,有點懶,就是寫些最基本的介紹了。

TagList的網頁是:

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

  • Oct 09 Thu 2008 00:03
  • sed

 

  • SED is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline).
  • General Syntax of sed:
    sed -option 'general expression' [data-file]

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

  • Oct 08 Wed 2008 08:38
  • awk

 

  • General Syntax of awk: awk -f {awk program file} filename
  • The format of awk program looks like:

[pattern] {
Action 1

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

大部分的純文字編輯器都有多視窗編輯的功能,非常的方便,其實vim也有,在www.vim.org可以找到這個好用的plugin,完整的網址如下:

http://www.vim.org/scripts/script.php?script_id=1338

使用起來也很方便,把下載的tabbar.vim放在Linux環境下的$HOME/.vim/plugin或Windows環境下的C:\Program Files\Vim\vimfiles\plugin就可以啦。

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

  • /dev/null - Use to send unwanted output of program
    Syntax: command > /dev/null
    $ls > /dev/null
  • Normally all our variables are local. Local variable can be used in same shell, if you load another copy of shell (by typing the /bin/bash at the $ prompt) then new shell ignored all old shell's variable.
  • Conditional execution

nix 發表在 痞客邦 留言(1) 人氣()

  • if condition
    Syntax:
    if condition

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

  • Shell Script is series of command written in plain text file.
  • To find all available shells in your system type following command:
    $cat /etc/shells
  • To find your current shell type following command
    $ echo $SHELL
  • Example:

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

這次是在Ubuntu 7.04的環境Compile 2.6.22.9的Kernel。在Ubuntu的環境下Compile Linux kernel是件輕鬆的事,要做的事很少喔。


在Compile kernel前要先確定的就是有個gcc可以用啦,如果不確定就用apt-get build-dep gcc再安裝一次gcc吧,安裝完隨便寫個Hello Wrold測試一下就行啦。

nix 發表在 痞客邦 留言(6) 人氣()