Linux使用手冊[2004年5月28日 14:15]

http://bbs.chinaunix.net/forum/4/20021128/16141.html

0005 mount用法(sakulagi,sxsfxx)
fat32的分區 mount -o codepage=936,iocharset=cp936 /dev/hda7 /mnt/cdrom
/dev/hda1 /mnt/c vfat iocharset=gb2312,umask=0,codepage=936 0 0
ntfs的分區 mount -o iocharset=cp936 /dev/hda7 /mnt/cdrom
iso文件 mount -o loop /abc.iso /mnt/cdrom
軟盤 mount /dev/fd0 /mnt/floppy
USB閃存 mount /dev/sda1 /mnt/cdrom
所有/etc/fstab內容 mount -a
可以指定文件格式"-t 格式", 格式可以爲vfat, ext2, ext3等.
訪問DVD mount -t iso9660 /dev/dvd /mnt/cdrom或mount -t udf /dev/dvd /mnt/cdrom
注意:dvd的格式一般爲iso9660或udf之一 裏面iocharset應該是字符支持的選項。

0038 查找或刪除正在使用某文件的進程(wwwzc)
fuser filename
fuser -k filename

0063 redhat linux中播放mp3文件(hehhb)
原帶的xmms不能播放MP3(無聲),要安裝一個RPM包:rpm -ivh xmms-mp3-1.2.7-13.p.i386.rpm。打開xmms,ctl-p,在font欄中先在上半部的小框內打勾,再選擇 “fixed(misc) gbk-0 13”號字體即可顯示中文歌曲名。在音頻輸出插件中選擇 "開放音頻系統驅動程序 1.2.7 [lioOSS.so],即可正常播放MP3文件。

0086 終端下抓屏(tsgx)
cat /dev/vcsX >screenshot 其中,X表示第X個終端
還可以運行script screen.log,記錄屏幕信息到screen.log裏。一會記錄到你exit爲此。這也是抓屏的好方法。
這是在debian的cookbook上看到的。在RH9上能用。沒有在其它的系統上測試過。

0010 mount局域網上其他windows機器共享出的目錄(bjchenxu)
mount -t smbfs -o username=guest,password=guest //machine/path /mnt/cdrom

 0062 如何讓xmms播放列表裏顯示正確的中文(myxfc)
-*-*-*-*-*-iso8859-1,-misc-simsun-medium-r-normal--12-*-*-*-*-*-gbk-0,*-r-
把這個東西完全拷貝到你的字體裏面
操作方法:
右鍵單擊xmms播放工具的任何地方
會看到一個"選項",然後選擇"功能設定"選擇"fonts"
然後把上面的字體完整的拷貝到"播放清單"和 "user x font

 0064 安裝中文字體(hehhb)
先下載 http://freshair.netchina.com.cn/~George/sm.sh
(參考文獻: http://www.linuxeden.com/edu/doctext.php?docid=2679)
SimSun18030.ttc在微軟網站可下載,http://www.microsoft.com/china/windows2000/downloads/18
030.asp 它是個msi文件,在 mswindows中安裝用的,裝好後在windows目錄下的fonts
目錄裏面就可以找到它。把simsun.ttc,SimSun18030.ttc,tahoma.ttf,tahomabd.ttf
拷貝到/usr/local/temp,然後下載的shell文件也放到這個目錄裏,然後打開終端
cd /usr/local/temp
chmod 755 sm.sh
./sm.sh

 0122 如何配置讓哪些服務啓動(天外閒雲,q1208c)
方法1 運行ntsysv或者setup命令,進入菜單進行配置
方法2 chkconfig --list 顯示服務
chkconfig name on/off 打開/關閉“name”服務

http://tristones.viaspeip.com/archives/000222.html830808

環境變量初始化文件
用戶根目錄~/.bash_profile
The linker supports a plethora of command-line options, but in actual
practice few of them are used in any particular context. For instance,
a frequent use of ld is to link standard Unix object files on a stan-
dard, supported Unix system. On such a system, to link a file
"hello.o":

ld -o /lib/crt0.o hello.o -lc

This tells ld to produce a file called output as the result of linking
the file "/lib/crt0.o" with "hello.o" and the library "libc.a", which
will come from the standard search directories. (See the discussion of
the -l option below.)

~/.bashrc配置bash.用set -o vi改成vi方式編輯

查看進程情況(內存泄漏)

[boc933:/home/numen/workshop/liuguoqiang/include/public]ps v
   PID    TTY STAT  TIME PGIN  SIZE   RSS   LIM  TSIZ   TRS %CPU %MEM COMMAND
  6686  pts/9 A     0:00    0   856  1088    xx   200   232  0.0  0.0 -ksh
 13158  pts/0 A     0:01   74   860  1092    xx   200   232  0.0  0.0 -ksh
 22926  pts/7 A     0:00    0   504   728    xx   196   224  0.0  0.0 vi rfxPos
[boc933:/home/numen/workshop/liuguoqiang/include/public]ps
   PID    TTY  TIME CMD
 13158  pts/0  0:01 -ksh
 33958  pts/0  0:00 ratem 192.168.10.238 12300 40005
 36620  pts/0  0:00 ps
[boc933:/home/numen/workshop/liuguoqiang/include/public]who
numen       pts/0       Jun 03 09:27     (192.168.10.80)
numen       pts/2       Jun 03 19:56     (192.168.10.164)

vmstat,topas,dbx

怎麼看出來呢

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章