原创 (轉貼)unix和linux下常用壓縮格式的壓縮與解壓方法

http://www.chinaunix.net 作者:tianyayang  .tar 解包: tar xvf FileName.tar 打包:tar cvf FileName.tar DirName (注:tar是打包,不是壓縮!)

原创 linux 命令做數學運算

幾個命令: expr, bc, factor, jot   # 乘法符號前需要轉義字符 num=`expr   11  \*  2` bc bc 基本上是命令行數學運算最佳工具之一。輸入你想執行的運算,使用管道發送至該命令即可: $ ec

原创 linux怎麼查看當前是redhat還是centos?

cat /proc/version lsb_release -a   //lsb: linux standard base

原创 git 常用命令

//忽略filemode變更: git config core.fileMode false Git 原理入門 http://www.ruanyifeng.com/blog/2018/10/git-internals.html

原创 Vim 中如何去掉 ^M 字符?

單個文檔的話,可以用vim打開,執行 :%s/^M//g 來去掉^M, 批量去除的話:  可以使用sed工具 注意: ^M是使用 "CTRL-V CTRL-M", 而不是字面上的 ^M  

原创 電腦技術

1. 製作u盤啓動盤的工具: rufus, 免費綠色版         Rufus - Create bootable USB drives the easy way   

原创 words ch09

  strand 英 [strænd]     美 [strænd]   <3star 核心詞彙 >   · n.縷;(線等的)股; n.(名詞) 1. (線、繩等的)股;絞;縷 2. 繩,線  v.(動詞) 1. 搓,絞,擰,打(

原创 常用linux命令

1. find -print0 | xargs -0    http://blog.csdn.net/gsyzhu/article/details/38115529 2. du命令    du -sh  //查看當前目錄所佔磁盤空間 

原创 English words

orbital docking  軌道對接 extra vehicular activity(EVA)  艙外活動 shrug off  不予理會;不理; 對 ... 不屑一顧 The point of no return (PONR)

原创 看代碼時順便重構

今天看代碼,碰到一些if 語句塊,巨長不說,還嵌套,看得很費勁,很想改成"衛語句"(guard clause)。這些代碼不是我寫的,不改的話很難看懂, 只好挽起袖子下手了。邊讀邊改,改完後,一般也就懂了,結

原创 English sentenses

The warning system ranks red as most serious, followed by orange, yellow and blue.

原创 Linux系統內存磁盤初始化技術詳細解析

轉http://unix-cd.com/unixcd12/article_6520.html initrd掛載優先級高於真實根文件系統,它被邦定在內核上,做爲內核啓動過程的一部分被加載(load)。然後

原创 文本處理notes

查找並替換文本文件中的字符串(會修改原文件) #把文件file.txt 中的 所有的cat 都替換成dog  sed -i s'/cat/dog/g'  file.txt 查找並替換文本文件中的空行 #   字符^表示行首,字符$表示行

原创 ld script 命令摘錄

SECTIONS命令中的輸出段描述 MEMORY命令 KEEP()關鍵字 //---- SECTIONS命令中的輸出段描述 --------------------------   在SECTIONS命令

原创 notes of Charlotte's Web Chapter 1

 The grass was wet and the earth smelled of springtime.  (smell of springtime) This is a matter of life and death, and