目前分類:Linux (6)

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

使用 screen

在命令列下打 screen 就會進入 screen 的天地:

% screen

注意,所有 screen 的指令都是以 Ctrl 鍵加上 a 鍵開始的,在之後以 C-a 代表,C-a c 代表按住 Ctrl 鍵不放再按 a 鍵,然後放開按 c 鍵;而 C-a C-c 代表按住 Ctrl 鍵不放再按 a 鍵,然後放開後再按住 Ctrl 鍵不放按 c 鍵。

開啟,關閉,切換

C-a c 或 C-a C-c 開啟新的視窗,並同時切換到這個新的視窗

C-a n 或 C-a C-n 或 C-a (space) 切換到下一個視窗(0->1 1->2 ...)

C-a p 或 C-a C-p 切換到上一個視窗(1->0 2->1 ...)

C-a C-a 切換到上一個顯示過的視窗(不是照順序切換)

C-a 0 切換到第 0 個視窗

C-a (1..9) 切換到第 (1..9) 個視窗

C-a w 或 C-a C-w 會列出目前所開啟的視窗

0$ tcsh 1$ tcsh 2*$ tcsh 3$ tcsh

有星號 "*" 的表示目前顯示中的視窗,之後的 tcsh 代表這個視窗的 title ,預設是以開啟時的 shell 名稱

C-a K 關閉所有的視窗並退出 screen

C-a ' 或 C-a " 會出現 "Switch to window:" 字樣,輸入號碼後就可切到該視窗

單一視窗使用中的指令

C-a C 清除目前的視窗內容

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

1.creat a file.

   dd if=/dev/zero of=/swapfile bs=1024 count=65536

2.make swap file 

    mkswap /swapfile

3.enable swap file

   swapon /swapfile

4.add swap file instance into /etc/fstab for auto enable swap file after reboot.

   /swapfile swap swap defaults 0 0

 


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

Check the /tmp folder existing or not and permission of this folder.

Moreover, whether it is no space remained. this folder should not be used 100%.

http://www.linuxquestions.org/questions/linux-server-73/svn-checkout-error-cant-find-a-temporary-directory-internal-error-862710/


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

1) install vim with command "apt-get install vim"
2) fine the configuration file of vim in "/etc/vim/vimrc" ,copy this file to vimrc.local
3) comment out the line of execute vimrc.local in vimrc.local to aviod re-entry file in loop
4) add one line "colorscheme elflord", the name elford is the name of *.vim file
5) if you have a download script file of vim you can put it into /usr/share/vim/vim72

Appedix from other people

另外在 vimrc.local 內也可以設置其他選項,例如:
set hlsearch
” 高亮度搜尋
set expandtab
set shiftwidth=4
set softtabstop=4
set tabstop=4
” 以上為縮排選項轉空格
set cindent
set autoindent
set number

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

 

如果要將assembly 嵌入到c code 裡且用GNU的compiler 的話,assembly 會有一些不一樣.

可以參考以下文章

http://www.ethernut.de/en/documents/arm-inline-asm.html

http://stenlyho.blogspot.com/2008/08/cinline-casmasm-code-asmmovl-1eaxnt.html

http://clc168.blogspot.com/2007/10/arm-gcc-inline-assembler.html


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

perl:

http://www.cyut.edu.tw/~hcchen/perl/Perl%20tutorial%20Start.htm

http://news.ols3.net/techdoc/old/perl_intro/

bash shell

http://news.ols3.net/techdoc/old/shell/book1.html

awk:

http://news.ols3.net/techdoc/old/awk_intro/


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