目前分類:Linux (23)

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

gcc  第一個.c  第二個.c  -o  執行檔名稱

[Victoria@victoria tmp]$ gcc main.c sourcecode.c -o test

 

文章標籤

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

*.tar       此為由tar 程式打包的資料,且資料並沒有壓縮過。

[Victoria@victoria Filter]$ tar -xvf  Filter.tar

*.tar.gz  此為由tar 程式打包的資料,且資料有壓縮過。

文章標籤

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

[viccc@com01 ~/bin]$ scp dep@192.168.11.281:/home/system/vicc/bin/DBstorage /home/system/vicc/bin
vicc@192.168.10.201's password:
DBstorage 100% 70KB 70.1KB/s 00:00
文章標籤

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

~/data/param/XXXX_System.conf

 

工作心得: 不恥下問,繼續努力,加油!!! 人生總要多丟臉幾次,每次都是一個學習。

文章標籤

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

itoa 用法

http://www.cplusplus.com/reference/cstdlib/itoa/

sprintf 用法

文章標籤

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

http://pfspd.sourceforge.net/cvs.html


文章標籤

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

tail指令會讀取所有的檔案內容,並將內容的最後部份標準輸出。預設為輸出10列。

指令:tail [options] 檔案名稱

範例:[victoria@victoria-web ~/log]$ tail -f dbstore.log

文章標籤

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

Ctrl+Space→Shift+Alt

Shift+Alt

Shift+Alt

文章標籤

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

方法一、 日文亂碼可嘗試在編輯畫面輸入

:e ++enc=euc

:e ++enc=sjis

文章標籤

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

1. 進入sqlplus

指令: sqlplus

2. 顯示 一個Table 的結構

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

出現core時的處理流程: 

step 1. 將core放到執行檔目錄下

step 2. 使用file找到出 core的執行檔

文章標籤

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

指令 ps aux | grep '程式名稱'

[rc@ccc-web Mair_Storage]$ ps aux | grep Mair
rc 434 0.0 0.0 107780 1572 pts/2 S+ Oct16 0:43 watch -n 1 cat Mair_TA.csv

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

若要對 abc.out 除錯, 則下指令: gdb abc.out 進入 gdb進行除錯, 下列為常用指令:

基本指令
quit: 結束

文章標籤

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

chmod 400 file - Read by owner
chmod 040 file - Read by group
chmod 004 file - Read by world 

文章標籤

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

編譯時 vi 偵測文件類型,可用下列指令讓vi 認為這份文件使用c,讓開發者方便編譯。(變彩色囉)

:set syntax=c


文章標籤

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

.tar (僅打包,無壓縮)

打包指令
$ tar cvf FileName.tar DirName

文章標籤

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

scp 遠端檔案傳輸指令,目的為利用scp指令將檔案在本機端(local)及遠端(serve)主機傳輸。

本機複製到遠端主機 

指令:scp File.c s-lai@TSVR-001:/home/src

文章標籤

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

指令 : 

yum -y install gcc-gfortran.x86_64

--------------------------------------------------------------------------

文章標籤

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

 

[victoria@001 ~/ddonet]$ svn update
Conflict discovered in 'data/param/Rw.csv'.
Select: (p) postpone, (df) diff-full, (e) edit,
        (mc) mine-conflict, (tc) theirs-conflict,
        (s) show all options:

 

 (e)  edit             - change merged file in an editor
 (df) diff-full        - show all changes made to merged file
 (r)  resolved         - accept merged version of file

 (dc) display-conflict - show all conflicts (ignoring merged version)
 (mc) mine-conflict    - accept my version for all conflicts (same)
 (tc) theirs-conflict  - accept their version for all conflicts (same)

 (mf) mine-full        - accept my version of entire file (even non-conflicts)
 (tf) theirs-full      - accept their version of entire file (same)

 (p)  postpone         - mark the conflict to be resolved later
 (l)  launch           - launch external tool to resolve conflict
 (s)  show all         - show this list

 

文章標籤

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

Linux 版本 : Fedora CentOS 在Terminal輸入以下命令:

yum install gcc kernel-devel

Linux 版本 : Fedora CentOS 在Terminal輸入以下命令:

apt-get install gcc make linux-headers-$(uname -r)

 

文章標籤

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

1 2