精品国产一区二区三区小蝌蚪,免费人成在线观看网站,毛片网站在线http://www.aygfsteel.com/Jcat/category/11841.html寵辱不驚,閑看庭前花開花落~~zh-cnWed, 24 Oct 2012 20:41:41 GMTWed, 24 Oct 2012 20:41:41 GMT60磁盤 磁道 扇區http://www.aygfsteel.com/Jcat/archive/2009/09/14/295027.htmlJcatJcatMon, 14 Sep 2009 07:50:00 GMThttp://www.aygfsteel.com/Jcat/archive/2009/09/14/295027.htmlhttp://www.aygfsteel.com/Jcat/comments/295027.htmlhttp://www.aygfsteel.com/Jcat/archive/2009/09/14/295027.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/295027.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/295027.html磁道(track):一圈扇區
磁柱(cylinder):一摞磁道

每一磁道的扇區數是一樣的,但是存儲密度不同,外疏內密。

為什么要外疏內密?
角速度相同時,線速度與半徑成正比:
硬盤為了提高其軸壽命,軸的轉動速度是一定的。磁頭在硬盤上讀寫數據是近乎于圓弧的路線,而越往外,線速度就越快。為了保證讀取的準確性只能減小外道的密度使磁頭讀取數據的時間間隔是相同的。


有待研究:早期的磁盤每個磁道上的扇區數目是一樣,顯然浪費了外圈的容量,后來為了增大磁盤容量采用了新技術,也就是說越往外每磁道扇區數目越多。



Jcat 2009-09-14 15:50 發表評論
]]>
塊設備 字符設備 裸設備http://www.aygfsteel.com/Jcat/archive/2009/09/14/295008.htmlJcatJcatMon, 14 Sep 2009 05:45:00 GMThttp://www.aygfsteel.com/Jcat/archive/2009/09/14/295008.htmlhttp://www.aygfsteel.com/Jcat/comments/295008.htmlhttp://www.aygfsteel.com/Jcat/archive/2009/09/14/295008.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/295008.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/295008.html字符設備:按照字符流的方式被有序訪問,不能隨機存取,如鍵盤、串口打印機、磁帶。

塊設備:能夠隨機(不需要按順序)訪問固定大小數據片(chunks),采用塊緩沖技術,如硬盤、軟盤、光驅。

裸設備:是一種沒有經過格式化,不被Unix通過文件系統來讀取的特殊字符設備。
現在問題來了,Oracle在使用裸設備時(如ASM、甚或表空間直接建在裸設備上),難道還是順序存取?顯然不符合事實。
其實,說裸設備是字符設備,只是從操作系統的角度來說的;從使用裸設備的應用程序(如Oracle)的角度,還是塊設備,Oracle會去對磁盤進行分塊管理。

邏輯卷是邏輯概念,可以包含多塊物理硬盤,實現了存儲跨盤功能,同時提供了數據復制機制,提供了數據安全保護機制。

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

裸設備適用于每次改動數據較小、需大量并發交易,OLTP;
對于大規模順序讀寫,裸設備性能是最差的,所以對OLAP,應使用塊設備或卷。



Jcat 2009-09-14 13:45 發表評論
]]>
硬鏈接 軟鏈接http://www.aygfsteel.com/Jcat/archive/2009/07/14/286743.htmlJcatJcatTue, 14 Jul 2009 09:40:00 GMThttp://www.aygfsteel.com/Jcat/archive/2009/07/14/286743.htmlhttp://www.aygfsteel.com/Jcat/comments/286743.htmlhttp://www.aygfsteel.com/Jcat/archive/2009/07/14/286743.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/286743.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/286743.html[oracle@dcm ~]$ ln original.file hard.link

軟鏈接
[oracle@dcm ~]$ ln -s original.file soft.link


[oracle@dcm ~]$ ls -l
-rw-r--r-- 2 oracle oinstall??? 4 Jul 14 17:21 original.file
-rw-r--r-- 2 oracle oinstall??? 4 Jul 14 17:21 hard.link
lrwxrwxrwx 1 oracle oinstall?? 13 Jul 14 17:23 soft.link -> original.file

鏈接數只是和硬鏈接相關的一個概念
從鏈接文件可以跟蹤到軟鏈接的指向(無法反向跟蹤)



---------------
由于inode這種文件系統結構不是雙向的,不能查找一個inode被reference了多少次。我們只能通過一些技巧來跟蹤硬鏈接。
1. 通過鏈接數,我們可以知道哪個文件有硬鏈接(大于1)
2. 查找該文件的inode id
[oracle@dcm ~]$ ls -i hard.link
1573158 hard.link
3. 通過inode id查找文件(如果需要遍歷的目錄很多,速度自然可想而知)
[oracle@dcm ~]$ find -inum 1573158
./hard.link
./original.file
4. 硬鏈接本質上是多個dentry指向同一個inode,所以并沒有主從之分,每個dentry都是平等的。



Jcat 2009-07-14 17:40 發表評論
]]>
Solaris的版本號http://www.aygfsteel.com/Jcat/archive/2009/03/13/259505.htmlJcatJcatFri, 13 Mar 2009 04:19:00 GMThttp://www.aygfsteel.com/Jcat/archive/2009/03/13/259505.htmlhttp://www.aygfsteel.com/Jcat/comments/259505.htmlhttp://www.aygfsteel.com/Jcat/archive/2009/03/13/259505.html#Feedback2http://www.aygfsteel.com/Jcat/comments/commentRss/259505.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/259505.htmlSunOS是Sun的操作系統最初叫法,SunOS主要是基于BSDUnix版本;
SunOS 5.0開始,SUN的操作系統開發開始轉向System V Release 4,并且有了新的名字叫做Solaris2.0
Solaris 2.6以后,SUN刪除了版本號中的"2,因此,SunOS 5.10就叫做Solaris 10

最后"SunOS"這個詞被用做專指Solaris操作系統的內核;而Solaris被認為是由SunOS,圖形化的桌面計算環境, 以及它網絡增強部分組成。
?
  
---Solaris與Sunos的版本轉換---
Solaris 10 = SunOS 5.10
Solaris 9 = SunOS 5.9
Solaris 8 = SunOS 5.8
Solaris 7 = SunOS 5.7

Solaris 2.6 = SunOS 5.6
Solaris 2.5 = Sunos 5.5

  

------------------
Solaris也有分服務器版和個人版,它們分別是:
?? 服務器版:sparc
?? 個人版:x86
雖然Solaris在SPARC上擁有強大的處理能力和硬件支持,但是在Intel x86上性能卻未如人意。

Jcat 2009-03-13 12:19 發表評論
]]>
Linux Filesystem Hierarchyhttp://www.aygfsteel.com/Jcat/archive/2008/06/02/205441.htmlJcatJcatMon, 02 Jun 2008 15:25:00 GMThttp://www.aygfsteel.com/Jcat/archive/2008/06/02/205441.htmlhttp://www.aygfsteel.com/Jcat/comments/205441.htmlhttp://www.aygfsteel.com/Jcat/archive/2008/06/02/205441.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/205441.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/205441.html該目錄沿襲了UNIX系統的結構,存放著使用者最經常使用的命令。例如cp、ls、cat....

/boot
存放著啟動Linux時使用的一些核心文件。

/dev??? device
這個目錄下是所有Linux的外部設備,其功能類似DOS下的.sys和Win下的.vxd。在Linux中設備和文件是用同種方法訪問的。例如:/dev/hda代表第一個物理IDE硬盤。

/etc?? ?etcetera
這個目錄用來存放系統管理所需要的(雜七雜八的)配置文件

/home
用戶的主目錄,比如說有個用戶叫sybase,那他的主目錄就是/home/sybase也可以用~sybase表示。

/lib
這個目錄里存放著系統最基本的動態鏈接共享庫,其作用類似于Windows里的.dll文件。幾乎所有的應用程序都須要用到這些共享庫。

/lost+found
這個目錄平時是空的,當系統不正常關機后,這里就成了一些無家可歸的文件的避難所。有點類似于DOS下的.chk文件。

/mnt?? ?mount
存放臨時的映射文件系統,我們常把軟驅和光驅掛裝在這里的floppy和cdrom子目錄下。

/opt??? optional
這個目錄是一些大型軟件的安裝目錄(如Sybase),或者是一些服務程序的安裝目錄,一般情況下這是個空目錄。

/proc?? ?procedure
這個目錄是一個虛擬的目錄,它是系統內存的映射,我們可以通過直接訪問這個目錄來獲取系統信息。也就是說,這個目錄的內容不在硬盤上而是在內存里。

/root
系統管理員(也叫超級用戶)的主目錄。作為系統的擁有者,總要有些特權啊!比如單獨擁有一個目錄。

/sbin
s就是Super User的意思,也就是說這里存放的是系統管理員使用的管理程序。

/tmp
存放臨時文件

/usr
包含了一般不需要修改的應用程序,命令程序文件、程序庫、手冊和其它文檔。這是最龐大的目錄,我們要用到的應用程序和文件幾乎都存放在這個目錄下。

/var
包 含系統產生的經常變化的文件,例如打印機、郵件、新聞等假脫機目錄、日志文件、格式化后的手冊頁以及一些應用程序的數據文件等等。建議單獨的放在一個分 區。為了保持/usr的相對穩定,那些經常被修改的文件可以放在這個目錄下,比如系統的日志文件就在/var/log目錄中。




-----再進一步談談/usr目錄-----
/usr/X11R6
存放X-Window的目錄

/usr/bin
存放增加的用戶程序

/usr/sbin
存放增加的管理程序

/usr/dict
存放字典

/usr/doc
這是Linux文檔的大本營

/usr/etc
存放設置文件

/usr/games
存放游戲和教學文件

/usr/include
存放C開發工具的頭文件

/usr/info
存放GNU信息文件

/usr/lib
存放一些常用的動態鏈接共享庫和靜態檔案庫;

/usr/local
一般是你安裝軟件的目錄,這個目錄就相當于在windows下的programefiles這個目錄

/usr/man
存放幫助文件

/usr/src
Linux開放的源代碼就存在這個目錄,愛好者們別放過哦!

/usr/share
存放結構獨立的數據



-------------
找到個牛X的東西,Linux系統目錄的規范標準


Jcat 2008-06-02 23:25 發表評論
]]>
不啟動圖形界面http://www.aygfsteel.com/Jcat/archive/2008/04/22/194740.htmlJcatJcatTue, 22 Apr 2008 04:47:00 GMThttp://www.aygfsteel.com/Jcat/archive/2008/04/22/194740.htmlhttp://www.aygfsteel.com/Jcat/comments/194740.htmlhttp://www.aygfsteel.com/Jcat/archive/2008/04/22/194740.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/194740.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/194740.html /etc/inittab 文件,找到語句 id:5:initdefault:
5表示啟動后直接進入圖形界面
3表示啟動后直接進入文本界面,登錄后可用 startx 進入圖形界面


圖形界面和文本界面也是可以相互切換的(root權限)
??? 圖-->文??? # init 5
??? 文-->圖??? # init 3


Jcat 2008-04-22 12:47 發表評論
]]>
更改Linux的主機名http://www.aygfsteel.com/Jcat/archive/2008/04/22/194739.htmlJcatJcatTue, 22 Apr 2008 04:43:00 GMThttp://www.aygfsteel.com/Jcat/archive/2008/04/22/194739.htmlhttp://www.aygfsteel.com/Jcat/comments/194739.htmlhttp://www.aygfsteel.com/Jcat/archive/2008/04/22/194739.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/194739.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/194739.html# hostname new_host_name

2. 永久修改系統的主機名
修改文件 /etc/sysconfig/network
hostname=new_host_name

3. 記得修改文件 /etc/hosts,不修改的話,apache等需要解析主機名的服務將不能啟動(Sybase的listener也會有問題)
127.0.0.1??? new_host_name??? localhost

4. 最后就是命令行提示符中的主機名還沒有改變,如果很在意的話,重新登錄一下就行了

Jcat 2008-04-22 12:43 發表評論
]]>
shell if 命令參數說明http://www.aygfsteel.com/Jcat/archive/2008/04/13/192563.htmlJcatJcatSun, 13 Apr 2008 07:34:00 GMThttp://www.aygfsteel.com/Jcat/archive/2008/04/13/192563.htmlhttp://www.aygfsteel.com/Jcat/comments/192563.htmlhttp://www.aygfsteel.com/Jcat/archive/2008/04/13/192563.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/192563.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/192563.html-c??? 當file存在并且是字符文件時返回真
-d??? 當pathname存在并且是一個目錄時返回真
-e??? 當pathname指定的文件或目錄存在時返回真
-f ??? 當file存在并且是正規文件時返回真
-g ??? 當由pathname指定的文件或目錄存在并且設置了SGID位時返回為真
-h ??? 當file存在并且是符號鏈接文件時返回真,該選項在一些老系統上無效
-k ??? 當由pathname指定的文件或目錄存在并且設置了“粘滯”位時返回真
-p ??? 當file存在并且是命令管道時返回為真
-r ??? 當由pathname指定的文件或目錄存在并且可讀時返回為真
-s ??? 當file存在文件大小大于0時返回真
-u ??? 當由pathname指定的文件或目錄存在并且設置了SUID位時返回真
-w??? 當由pathname指定的文件或目錄存在并且可執行時返回真。一個目錄為了它的內容被訪問必然是可執行的。
-o ??? 當由pathname指定的文件或目錄存在并且被子當前進程的有效用戶ID所指定的用戶擁有時返回真。

比較字符寫法:
-eq??? 等于
-ne??? 不等于
-gt???? 大于
-lt??? ? 小于
-le???? 小于等于
-ge??? 大于等于
-z??? ? 空串
* =??? 兩個字符相等
* !=?? 兩個字符不等
* -n?? 非空串



Jcat 2008-04-13 15:34 發表評論
]]>
Linux 權限http://www.aygfsteel.com/Jcat/archive/2008/03/25/188538.htmlJcatJcatTue, 25 Mar 2008 09:25:00 GMThttp://www.aygfsteel.com/Jcat/archive/2008/03/25/188538.htmlhttp://www.aygfsteel.com/Jcat/comments/188538.htmlhttp://www.aygfsteel.com/Jcat/archive/2008/03/25/188538.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/188538.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/188538.html<概述>
LINUX文件權限針對的對象分三類(互斥的關系):
1. user(文件的擁有者)
2. group(文件擁有者所在的組,但不包括user)
3. other(其它用戶,即user和group以外的)

LINUX用一個3位二進制數對應著文件的3種權限(1表示有該權限,0表示無):
第1位?? ?讀?? ???? r?? ?100?? ?4
第2位?? ?寫?? ??? w?? ?010?? ?2
第3位?? ?執行?? ?x?? ?001?? ?1


<CMD>
查看權限
#ls -l

第一列,一共10位(drwxrwxrwx),就代表了文件的權限:
1)第一個d代表是一個目錄,如果顯示“-”,則說明不是一個目錄
2)2-4代表user的權限
3)5-7代表group的權限
4)8-10代表other的權限

對于后9位:
r 代表可讀(read),其值是4
w 代表可寫(write),其值是2
x 代表可執行(execute),其值是1
- 代表沒有相應權限,其值是0



修改文件權限
# chmod [ugoa][+-=][rwx] 文件名

1)用戶
u 代表user
g 代表group
o 代表other
a 代表全部的人,也就是包括u,g和o

2)行動
+ 表示添加權限
- 表示刪除權限
= 表示使之成為唯一的權限

3)權限
rwx也可以用數字表示法,不過很麻煩要自己算,比如 rw=6




<常見權限>
-rw------- (600) 只有所有者才有讀和寫的權限
-rw-r--r-- (644) 只有所有者才有讀和寫的權限,組群和其他人只有讀的權限
-rwx------ (700) 只有所有者才有讀,寫,執行的權限
-rwxr-xr-x (755) 只有所有者才有讀,寫,執行的權限,組群和其他人只有讀和執行的權限
-rwx--x--x (711) 只有所有者才有讀,寫,執行的權限,組群和其他人只有執行的權限
-rw-rw-rw- (666) 每個人都有讀寫的權限
-rwxrwxrwx (777) 每個人都有讀寫和執行的權限,最大權限


<trick>
如果只擁有一個文件的r權限,也是可以執行它的,只需在最前面加個點加個空格,e.g.:
#.?/etc/bashrc

通過 # man . 可以找到官方的解釋:
. filename [arguments]
Read? and? execute? commands from filename in the current shell environment and return the exit status of the last command executed? from? filename.

其實這也合理:我可以r,就可以把內容copy出來,就可以自己造一個文件來實現同樣的功能。



<解讀 ls -l 命令>
drwxr-xr-x?? 2 root oinstall 4096 Jun? 6 19:02 oracle
drwxrwxr-x? 20 root sinstall 4096 Apr 22 14:03 sybase
一個文件(夾),有兩個owner
1. user
2. group

創建一個文件時,它默認屬于創建它的user,以及這個user所在的group。
這兩個owner其實是相互獨立的(它們的權限也是相互獨立的):一個文件可以屬于user a,并指定它屬于非a所在的組B。自然的,組B的成員b也就享有了這個文件。
(安裝oracle時的用戶設置就是很好的例子)
# chown user_a file_test
# chown :group_B file_test



Jcat 2008-03-25 17:25 發表評論
]]>
Very Important VIhttp://www.aygfsteel.com/Jcat/archive/2008/03/25/188518.htmlJcatJcatTue, 25 Mar 2008 08:42:00 GMThttp://www.aygfsteel.com/Jcat/archive/2008/03/25/188518.htmlhttp://www.aygfsteel.com/Jcat/comments/188518.htmlhttp://www.aygfsteel.com/Jcat/archive/2008/03/25/188518.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/188518.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/188518.html <一般模式>
Undo

u

刪除當前行
dd

復制當前行
yy

粘貼
p

進入 和 退出編輯模式
i 和 Esc?

向前查詢
/abc
向后查詢
?abc
向前繼續查詢
n
向后繼續查詢
N


<命令行模式>
write and quit
:wq [文件名--對于創建新文件時需要]

quit without write

:q!


Jcat 2008-03-25 16:42 發表評論
]]>
Linux CMDhttp://www.aygfsteel.com/Jcat/archive/2008/03/25/188515.htmlJcatJcatTue, 25 Mar 2008 08:34:00 GMThttp://www.aygfsteel.com/Jcat/archive/2008/03/25/188515.htmlhttp://www.aygfsteel.com/Jcat/comments/188515.htmlhttp://www.aygfsteel.com/Jcat/archive/2008/03/25/188515.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/188515.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/188515.html文件相關
拷貝文件夾及其所有內容(遞歸)
# cp -r 文件夾名 目標路徑

刪除空文件夾

# rmdir 文件夾名

刪除非空文件夾

# rm -rf 文件夾名
查看隱藏文件
# ls -a
更改文件名
# mv 源文件名 目文件名
批量更改文件名:Rename the specified files by replacing the first occurrence of from in their name by to
# rename from to file...
查看文件類型(Linux并不是靠后綴來決定文件類型的)
# file 文件名


用戶相關
查看所有用戶 or 所有組
看第三個參數,500以上的,就是后面建的用戶了,其它則為系統用戶。
# cat /etc/passwd?? or ? # cat /etc/group
濾掉系統用戶
# cat /etc/passwd | grep home

刪除用戶 or 組

# userdel 用戶名? or? # groupdel 組名
更改用戶的工作目錄
# usermod -d 目錄路徑 用戶名

更改用戶所屬組,是覆蓋
# usermod -g 組名 用戶名
將用戶添加到某個組,是疊加作為非默認組
# usermod -G 組名 用戶名

?


系統狀態相關
查看進程
# ps
進程列表,可以實時刷新的
# top
查看端口使用情況
# netstat



網絡相關
重啟網絡連接
# /sbin/service network restart
關閉防火墻
# /sbin/service iptables stop
查看網卡地址
# ifconfig
查看網關
(Genmask=0.0.0.0的那個就是網關)
# netstat -r
查看DNS
(Genmask=0.0.0.0的那個就是網關)
# route -n


其它
查看命令的路徑(比如那些通過PATH而到處都可以運行的命令)
# type 命令名
清屏

# clear
關機
# /sbin/shutdown -h now
一分鐘以后關機
# /sbin/shutdown -h +1


Jcat 2008-03-25 16:34 發表評論
]]>
(z) Linux下常用壓縮格式的壓縮與解壓方法 http://www.aygfsteel.com/Jcat/archive/2006/10/19/76046.htmlJcatJcatWed, 18 Oct 2006 16:33:00 GMThttp://www.aygfsteel.com/Jcat/archive/2006/10/19/76046.htmlhttp://www.aygfsteel.com/Jcat/comments/76046.htmlhttp://www.aygfsteel.com/Jcat/archive/2006/10/19/76046.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/76046.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/76046.html Linux下常用壓縮格式的壓縮與解壓方法

???? 大致總結了一下linux下各種格式的壓縮包的壓縮、解壓方法。但是部分方法我沒有用到,也就不全,希望大家幫我補充,我將隨時修改完善,謝謝!
作者:Linux愛好者
來自:www.LinuxByte.net
最后更新時間:2003-12-1

.tar
解壓:tar xvf FileName.tar
壓縮:tar cvf FileName.tar DirName
(注:tar是打包,不是壓縮!)
---------------------------------------------
.gz
解壓1:gunzip FileName.gz
解壓2:gzip -d FileName.gz
壓縮:gzip FileName
.tar.gz
解壓:tar zxvf FileName.tar.gz
壓縮:tar zcvf FileName.tar.gz DirName
---------------------------------------------
.bz2
解壓1:bzip2 -d FileName.bz2
解壓2:bunzip2 FileName.bz2
壓縮: bzip2 -z FileName
.tar.bz2
解壓:tar jxvf FileName.tar.bz2
壓縮:tar jcvf FileName.tar.bz2 DirName
---------------------------------------------
.bz
解壓1:bzip2 -d FileName.bz
解壓2:bunzip2 FileName.bz
壓縮:未知
.tar.bz
解壓:tar jxvf FileName.tar.bz
壓縮:未知
---------------------------------------------
.Z
解壓:uncompress FileName.Z
壓縮:compress FileName
.tar.Z
解壓:tar Zxvf FileName.tar.Z
壓縮:tar Zcvf FileName.tar.Z DirName
---------------------------------------------
.tgz
解壓:tar zxvf FileName.tgz
壓縮:未知
.tar.tgz
解壓:tar zxvf FileName.tar.tgz
壓縮:tar zcvf FileName.tar.tgz FileName
---------------------------------------------

.a
解壓:#tar xv file.a

---------------------------------------------
.cpio.gz/.cgz

解壓:gzip -dc file.cgz | cpio -div

---------------------------------------------
.cpio/cpio

解壓:cpio -div file.cpio 或cpio -divc file.cpio

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

.rpm

安裝: rpm -i file.rpm
解壓:rpm2cpio file.rpm | cpio -div

---------------------------------------------
.deb

安裝:?dpkg -i file.deb

解壓:dpkg-deb --fsys-tarfile file.deb | tar xvf - ar p file.deb data.tar.gz | tar xvzf -
---------------------------------------------

.zip
解壓:unzip FileName.zip
壓縮:zip FileName.zip DirName
---------------------------------------------
.rar
解壓:rar a FileName.rar
壓縮:rar e FileName.rar


rar請到:http://www.rarsoft.com/download.htm 下載!
解壓后請將rar_static拷貝到/usr/bin目錄(其他由$PATH環境變量指定的目錄也可以):
[root@www2 tmp]# cp rar_static /usr/bin/rar

---------------------------------------------
.lha
解壓:lha -e FileName.lha
壓縮:lha -a FileName.lha FileName

lha請到:http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/下載!
解壓后請將lha拷貝到/usr/bin目錄(其他由$PATH環境變量指定的目錄也可以):
[root@www2 tmp]# cp lha /usr/bin/

---------------------------------------------
.tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh .lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea
解壓:sEx x FileName.*
壓縮:sEx a FileName.* FileName

sEx只是調用相關程序,本身并無壓縮、解壓功能,請注意!
sEx請到:http://sourceforge.net/projects/sex下載!
解壓后請將sEx拷貝到/usr/bin目錄(其他由$PATH環境變量指定的目錄也可以):
[root@www2 tmp]# cp sEx /usr/bin/



參考文獻:Linux 文件壓縮工具指南
(其實看幫助是最好的方法,一般各個命令都可以用“--help”參數得到常用使用方法!)



Jcat 2006-10-19 00:33 發表評論
]]>
How to install JDK in Linuxhttp://www.aygfsteel.com/Jcat/archive/2006/06/14/52848.htmlJcatJcatWed, 14 Jun 2006 13:54:00 GMThttp://www.aygfsteel.com/Jcat/archive/2006/06/14/52848.htmlhttp://www.aygfsteel.com/Jcat/comments/52848.htmlhttp://www.aygfsteel.com/Jcat/archive/2006/06/14/52848.html#Feedback1http://www.aygfsteel.com/Jcat/comments/commentRss/52848.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/52848.html 1. 先從網上下載jdk(jdk-1_5_0_02-linux-i586-rpm.bin) ,推薦SUN的官方網站www.sun.com,下載后放在/home目錄中,當然其它地方也行。

2.1 進入安裝目錄
#cd /home
#cp jdk-1_5_0_02-linux-i586-rpm.bin /usr/local
#cd /usr/local

2.2 給所有用戶添加可執行的權限
#chmod +x jdk-1_5_0_02-linux-i586-rpm.bin
解壓縮之
#./jdk-1_5_0_02-linux-i586.rpm.bin

2.3 此時會生成文件jdk-1_5_0_02-linux-i586.rpm,同樣給所有用戶添加可執行的權限
#chmod +x jdk-1_5_0_02-linux-i586.rpm
安裝程序
#rpm -ivh jdk-1_5_0_02-linux-i586.rpm
過程出現安裝協議等,按接受即可。

3. 設置環境變量。
#vi /etc/profile
在最后面加入
#set java environment
JAVA_HOME=/usr/java/jdk-1_5_0_02
CLASSPATH=.:
JAVA_HOME/lib/tools.jar
PATH=
JAVA_HOME/bin:PATH
export JAVA_HOME CLASSPATH PATH

保存退出。

要使JDK在所有的用戶中使用,可以這樣:
vi /etc/profile.d/java.sh
在新的java.sh中輸入以上相同的內容.
保存退出,然后給java.sh分配權限:chmod 755 /etc/profile.d/java.sh

4. 在終端使用echo命令檢查環境變量設置情況。
#echo
JAVA_HOME
#echo
CLASSPATH
#echo
PATH

5. 檢查JDK是否安裝成功。
#java -version
如果看到JVM版本及相關信息,即安裝成功!

以上摘自輕風清竹!



Jcat 2006-06-14 21:54 發表評論
]]>
Collect some abbreviation in Linuxhttp://www.aygfsteel.com/Jcat/archive/2006/06/14/52843.htmlJcatJcatWed, 14 Jun 2006 12:48:00 GMThttp://www.aygfsteel.com/Jcat/archive/2006/06/14/52843.htmlhttp://www.aygfsteel.com/Jcat/comments/52843.htmlhttp://www.aygfsteel.com/Jcat/archive/2006/06/14/52843.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/52843.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/52843.html
/bin = BINaries
/dev = DEVices
/etc = ETCetera
/lib = LIBrary
/proc = PROCesses
/sbin = Superuser BINaries
/tmp = TeMPorary
/usr = Unix Shared Resources
/var = VARiable ?
FIFO = First In, First Out
GRUB = GRand Unified Bootloader
IFS = Internal Field Seperators
LILO = LInux LOader
MySQL = My是最初作者女兒的名字,SQL = Structured Query Language
PHP = Personal Home Page Tools = PHP Hypertext Preprocessor
PS = Prompt String
Perl = "Pratical Extraction and Report Language" = "Pathologically Eclectic Rubbish Lister"
Python 得名于電視劇Monty Python's Flying Circus
Tcl = Tool Command Language
Tk = ToolKit
VT = Video Terminal
YaST = Yet Another Setup Tool
apache = "a patchy" server
apt = Advanced Packaging Tool
ar = archiver
as = assembler
awk = "Aho Weiberger and Kernighan" 三個作者的姓的第一個字母
bash = Bourne Again SHell
bc = Basic (Better) Calculator
bg = BackGround
biff = 作者Heidi Stettner在U.C.Berkely養的一條狗,喜歡對郵遞員汪汪叫。
cal = CALendar
cat = CATenate
cd = Change Directory
chgrp = CHange GRouP
chmod = CHange MODe
chown = CHange OWNer
chsh = CHange SHell
cmp = compare
cobra = Common Object Request Broker Architecture
comm = common
cp = CoPy
cpio = CoPy In and Out
cpp = C Pre Processor
cron = Chronos 希臘文時間
cups = Common Unix Printing System
cvs = Current Version System
daemon = Disk And Execution MONitor
dc = Desk Calculator
dd = Disk Dump
df = Disk Free
diff = DIFFerence
dmesg = diagnostic message
du = Disk Usage
ed = editor
egrep = Extended GREP
elf = Extensible Linking Format
elm = ELectronic Mail
emacs = Editor MACroS
eval = EVALuate
ex = EXtended
exec = EXECute
fd = file descriptors
fg = ForeGround
fgrep = Fixed GREP
fmt = format
fsck = File System ChecK
fstab = FileSystem TABle
fvwm = F*** Virtual Window Manager
gawk = GNU AWK
gpg = GNU Privacy Guard
groff = GNU troff
hal = Hardware Abstraction Layer
joe = Joe's Own Editor
ksh = Korn SHell
lame = Lame Ain't an MP3 Encoder
lex = LEXical analyser
lisp = LISt Processing = Lots of Irritating Superfluous Parentheses
ln = LiNk
lpr = Line PRint
ls = list
lsof = LiSt Open Files
m4 = Macro processor Version 4
man = MANual pages
mawk = Mike Brennan's AWK
mc = Midnight Commander
mkfs = MaKe FileSystem
mknod = MaKe NODe
motd = Message of The Day
mozilla = MOsaic GodZILLa
mtab = Mount TABle
mv = MoVe
nano = Nano's ANOther editor
nawk = New AWK
nl = Number of Lines
nm = names
nohup = No HangUP
nroff = New ROFF
od = Octal Dump
passwd = PASSWorD
pg = pager
pico = PIne's message COmposition editor
pine = "Program for Internet News & Email" = "Pine is not Elm"
ping = 擬聲 又 = Packet InterNet Grouper
pirntcap = PRINTer CAPability
popd = POP Directory
pr = pre
printf = PRINT Formatted
ps = Processes Status
pty = pseudo tty
pushd = PUSH Directory
pwd = Print Working Directory
rc = runcom = run command, rc還是plan9的shell
rev = REVerse
rm = ReMove
rn = Read News
roff = RunOFF
rpm = RPM Package Manager = RedHat Package Manager
rsh, rlogin, rvim中的r = Remote
rxvt = ouR XVT
seamoneky = 我
sed = Stream EDitor
seq = SEQuence
shar = SHell ARchive
slrn = S-Lang rn
ssh = Secure SHell
ssl = Secure Sockets Layer
stty = Set TTY
su = Substitute User
svn = SubVersioN
tar = Tape ARchive
tcsh = TENEX C shell
tee = T (T形水管接口)
telnet = TEminaL over Network
termcap = terminal capability
terminfo = terminal information
tex = τ?χνη的縮寫,希臘文art
tr = traslate
troff = Typesetter new ROFF
tsort = Topological SORT
tty = TeleTypewriter
twm = Tom's Window Manager
tz = TimeZone
udev = Userspace DEV
ulimit = User's LIMIT
umask = User's MASK
uniq = UNIQue
vi = VIsual = Very Inconvenient
vim = Vi IMproved
wall = write all
wc = Word Count
wine = WINE Is Not an Emulator
xargs = eXtended ARGuments
xdm = X Display Manager
xlfd = X Logical Font Description
xmms = X Multimedia System
xrdb = X Resources DataBase
xwd = X Window Dump
yacc = yet another compiler compiler


http://www.gnu.org/fun/jokes/gnuemacs.acro.exp.htm
emacs: Escape Meta Alt Ctrl Shift
emacs: EMACS Makes A Computer Slow


The novice Unix user is always surprised by Unix’s choice of command
names. No amount of training on DOS or the Mac prepares one for the
majestic beauty of cryptic two-letter command names such as cp, rm, and
ls.
Those of us who used early 70s I/O devices suspect the degeneracy stems
from the speed, reliability, and, most importantly, the keyboard of the
ASR-33 Teletype, the common input/output device in those days. Unlike
today’s keyboards, where the distance keys travel is based on feedback
principles, and the only force necessary is that needed to close a
microswitch, keys on the Teletype (at least in memory) needed to travel
over half an inch, and take the force necessary to run a small electric generator
such as those found on bicycles. You could break your knuckles touch
typing on those beasts
If Dennis and Ken had a Selectric instead of a Teletype, we’d probably be
typing “copy” and “remove” instead of “cp” and “rm.”1 Proof again that
technology limits our choices as often as it expands them.
After more than two decades, what is the excuse for continuing this tradition?
The implacable force of history, AKA existing code and books. If a
vendor replaced rm by, say, remove, then every book describing Unix
would no longer apply to its system, and every shell script that calls rm
would also no longer apply. Such a vendor might as well stop implementing
the POSIX standard while it was at it.
A century ago, fast typists were jamming their keyboards, so engineers
designed the QWERTY keyboard to slow them down. Computer keyboards
don’t jam, but we’re still living with QWERTY today. A century
from now, the world will still be living with rm.

以上摘自 http://www.linuxsir.org/bbs/showthread.php?t=260278


Jcat 2006-06-14 20:48 發表評論
]]>
How to mount usb-disk in Linux(FC3)http://www.aygfsteel.com/Jcat/archive/2006/06/06/50921.htmlJcatJcatTue, 06 Jun 2006 13:49:00 GMThttp://www.aygfsteel.com/Jcat/archive/2006/06/06/50921.htmlhttp://www.aygfsteel.com/Jcat/comments/50921.htmlhttp://www.aygfsteel.com/Jcat/archive/2006/06/06/50921.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/50921.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/50921.html

1. Liunx能識別Fat32

2.在/mnt文件夾下,建立個文件夾名字usb
3.用命令 $mount /dev/sda1 /mnt/usb(中間有個空格噢)
4.內容就在usb文件夾里!

似乎FC3直接就支持U,所以當插入U盤時,情形就跟Windows下一樣,你只用點擊出現的圖標即可.


附錄:

Q: 點擊圖標,結果就卡在那里了.
? 猜測原因:
??? 1.
可能是因為我的那些MP3的中文名子(Linux無法識別Windows下的寫的中文)
??? 2.
也可能是因為我MP3里的病毒(病毒本身對Linux并無作用,.exe文件讓Linux無法識別)
A:
U盤格式化(Fat32)了一下,就好了.



Jcat 2006-06-06 21:49 發表評論
]]>
Wide Screen Resolution: Dell700m+FC3+1280x800http://www.aygfsteel.com/Jcat/archive/2006/06/06/50902.htmlJcatJcatTue, 06 Jun 2006 12:53:00 GMThttp://www.aygfsteel.com/Jcat/archive/2006/06/06/50902.htmlhttp://www.aygfsteel.com/Jcat/comments/50902.htmlhttp://www.aygfsteel.com/Jcat/archive/2006/06/06/50902.html#Feedback1http://www.aygfsteel.com/Jcat/comments/commentRss/50902.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/50902.html 1. 運行:
#gtf 1280 800 60

得到一個modeline如:
# 1280x800 @ 60.00 Hz (GTF) hsync: 49.68 kHz; pclk: 83.46 MHz
Modeline "1280x800_60.00" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
  
把這個modeline拷貝到/etc/X11/xorg.conf中的Monitor段中。

基礎知識: gtf = generalized timing formula, 定義了產生畫面所需要的時間。gtf 計算出顯示器屏幕尺寸、分辨率,然后我們把計算出來的值插入到xorg.conf配置文件中,就能達到自動調節屏幕的顯示尺寸、位置及分辨率。  


2. 在Screen段,把Modes一行,修改成Modes “1280x800”
? (沒有就添加)

Section "Screen"
??????? Identifier "Screen0"
??????? Device???? "Videocard0"
??????? Monitor??? "Monitor0"
??????? DefaultDepth???? 24
??????? SubSection "Display"
??????????????? Viewport?? 0 0
??????????????? Depth???? 24
??????????????? Modes??? "1280x800"
??????? EndSubSection
EndSection



3. 安裝855Resolution.
  
http://perso.wanadoo.fr/apoirier/

解開源碼之后先 #make
然后用root權限 #make install即可。
cp 855resolution /usr/sbin?? (其實就是拷了一個可執行文件到sbin里)  

( 注意, 安裝FC3 , 如果選擇桌面版, 將不會安裝gcc, 可這里要用到, 所以找到FC 的安 裝盤, 補充安裝一下gcc 就可以了)


4. 運行:
  #./855resolution -l
  
  得到輸出:
   855resolution version 0.4, by Alain Poirier  
   Chipset: 855GM (id=0x35808086)
   VBIOS type: 2
   VBIOS Version: 3104  
   Mode 30 : 640x480, 8 bits/pixel
   Mode 32 : 800x600, 8 bits/pixel
   ....
   Mode 5c : 1920x1440, 32 bits/pixel
   Mode 7c : 1280x800, 8 bits/pixel
  Mode 7d : 1280x800, 16 bits/pixel
   Mode 7e : 1280x800, 32 bits/pixel
  
  其中:Mode 7d一行,是我們想要的。
  
5.
運行:
  #./855resolution 7d 1280 800
  
6.startx(
注消,再登錄回來),這時候就應該OK了。
  
7.
為了以后每次重新啟動系統都能自動生效:
??? 把855resolution 7d 1280 800(注意還要加入路徑名)添加到
??? /etc/rc.d/rc.local 腳本中。這樣每次啟動都會自動配置好寬屏了。


附錄1: vi的使用
i
編輯
: 進入控制欄
:w 寫入退出
:qa! 不寫入退出

附錄2:? 配置"主菜單-->系統設置-->顯示"? (目前還不知道這步操作的具體作用,以及對前面操作的影響)

設置-->分辨率=640x480
設置-->色彩深度=上百萬顏色
硬件-->顯示器類型=LCD Panel 1280x800
硬件-->視頻卡類型=Intel 855



Jcat 2006-06-06 20:53 發表評論
]]>
How to install bitnet (an agent for accessing Internet from BIT Campus Network)?http://www.aygfsteel.com/Jcat/archive/2006/06/06/50896.htmlJcatJcatTue, 06 Jun 2006 12:34:00 GMThttp://www.aygfsteel.com/Jcat/archive/2006/06/06/50896.htmlhttp://www.aygfsteel.com/Jcat/comments/50896.htmlhttp://www.aygfsteel.com/Jcat/archive/2006/06/06/50896.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/50896.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/50896.html

1.? Install
$su (
登錄root)
#cd /home (
home目錄下)
#chmod +x bitnet (
加可執行權限)
#./bitnet (
執行)

2. 以下為執行后填入的參數
id : liran
pwd: ******
model[1]
回車即可

3. Usage of bitnet
bitnet[-skqn]
Start or stop agent for BIT Campus Network.
Options:
-h Show this information.
-s Setup configuration.
-k Kill the agent.
-q Query how much money remained.

說明: 第一次使用的時候會要求輸入用戶名和密碼,并詢問是否保存該信息,如果是,將會保存帳號信息到 $HOME/.bitnet,此后只需要直接運行 bitnet 便可自動登錄。如果需要使用新的帳號信息,只需要加 -s 參數重新進行設定即可。

〔附錄〕
Q:在宿舍還好好的,把本本帶到教室后就進不了FC3了。 卡在“enabling swap space [ok]”后面半天不動,然后我按Ctrl+Alt+Delete,出現“unloading kernel card services”
我猜想是不是網絡改變的問題?因為我們學校上網都是用“IP自動獲取”的。我還發現,如果不插網線,它也會卡在一個地方不動,一插上就過去了。

A:進來了,原因總結如下:
1. 在學校上網需要啟動一個上網助理
2. 我將啟動這個助理的命令加到 rc.local 中了,以便每次開機時都自動啟動.
3. 可能因為換了個地方,它在啟動界面讓我輸入id/pwd,如果過幾秒不輸(因為我一開始沒注意),這個輸入界面就沒了,然后卡在那里.
4. 在啟動界面輸一下id/pwd就好了



Jcat 2006-06-06 20:34 發表評論
]]>
The way of my Linux studyinghttp://www.aygfsteel.com/Jcat/archive/2006/06/06/50890.htmlJcatJcatTue, 06 Jun 2006 12:16:00 GMThttp://www.aygfsteel.com/Jcat/archive/2006/06/06/50890.htmlhttp://www.aygfsteel.com/Jcat/comments/50890.htmlhttp://www.aygfsteel.com/Jcat/archive/2006/06/06/50890.html#Feedback0http://www.aygfsteel.com/Jcat/comments/commentRss/50890.htmlhttp://www.aygfsteel.com/Jcat/services/trackbacks/50890.html
2006-5-24, 晚上搞定了幾件事:可以上網了(其實就是用自動獲取IP就好了),學會使用:FireFox,中文輸入法,openoffice,kprint,gfpt。不過還是不能上外網(不會裝北理客戶端),真可憐。

2006-5-25, 搞定上外網問題(安裝bitnet)

2006-5-31, 一個幸運的日子(碰巧也是我妹妹的生日), 我終于解決了Linux下的寬屏問題,雖然是誤打誤撞,不過還是很高興,畢竟這是我解決的第一個問題. 向著Linux前進、前進、前前進~~

2006-6-3, 搞定U盤問題.



Jcat 2006-06-06 20:16 發表評論
]]>
主站蜘蛛池模板: 资溪县| 河源市| 山丹县| 滕州市| 固阳县| 云浮市| 卓尼县| 德兴市| 连江县| 滕州市| 余江县| 福州市| 蒙城县| 百色市| 虞城县| 沭阳县| 清苑县| 富蕴县| 永宁县| 花垣县| 吉水县| 米泉市| 商丘市| 芷江| 南城县| 买车| 泰顺县| 凤凰县| 安泽县| 布拖县| 河津市| 柘城县| 新津县| 黄大仙区| 华宁县| 隆子县| 江达县| 江安县| 电白县| 郴州市| 新邵县|