ssh -X username@server.ip
- 7月 09 週三 201411:25
How to merge all text fils in any directory to one single file?
cat * > merged_file.txt
- 3月 03 週一 201411:02
tar gzip 壓縮/解壓縮指令
壓縮:
tar -cvzf F1.tar.gz F2.txt F3.txt
( 將 F2.txt 與 F3.txt 打包壓縮在 F1.tar.gz )
tar -cvzf F1.tar.gz F2.txt F3.txt
( 將 F2.txt 與 F3.txt 打包壓縮在 F1.tar.gz )
- 1月 22 週三 201411:50
[Linux] mksh: Fatal error: Cannot load command `./abc': Bad file number
Error:
mksh: Fatal error: Cannot load command `./abc': Bad file number
Solution:
chmod u+x abc
mksh: Fatal error: Cannot load command `./abc': Bad file number
Solution:
chmod u+x abc
- 11月 26 週二 201318:00
Auto list possible selections in Linux
in .cshrc
set filec
set autolist
or
ctrl-D
set filec
set autolist
or
ctrl-D
- 11月 14 週四 201316:01
CVS Commands
cvs status
列出所有檔案目前版本的status, status的種類可見:
http://www.network-theory.co.uk/docs/cvsmanual/Filestatus.html
列出所有檔案目前版本的status, status的種類可見:
http://www.network-theory.co.uk/docs/cvsmanual/Filestatus.html
- 9月 13 週四 201212:17
cvs update output message
- 9月 07 週五 201219:26
gcc compile error
Error Message:
AABBCC.o: In function `XXYYZZ':
AABBCC.c:(.text+0x6e): relocation truncated to fit: R_X86_64_PC32 against symbol `XD' defined in COMMON section in DDEEFF.o
AABBCC.o: In function `XXYYZZ':
AABBCC.c:(.text+0x6e): relocation truncated to fit: R_X86_64_PC32 against symbol `XD' defined in COMMON section in DDEEFF.o
- 8月 29 週三 201211:35
ls directories only
ls -l | grep '^d'
diff -qr dirA dirB |grep -v -e keyword1 -e keyword2 |sort > diffs.txtdiff -r : recursively compare all files and files in subdirectories
diff -q : output only whether files differ
