下述所有命令在Linux/unix的shell下有效,這裡以bash為主。如有出入,以你自己的伺服器為準。本文所指的Linux主要指RHEL/CentOS,unix指的是FreeBSD,這也是伺服器中用得最多的版本。Ctrl + a 切換到命令列開始這個操作跟Home實現的結果一樣的,但Home在某些unix環境下無法使用,便可以使用這個組合;在Linux下的vim,這個也是有效;另外,在windows的許多檔案編輯器裡,這個也是有效。Ctrl + e
gentoo:*使用emerge安裝apache emerge apache*編譯安裝h264 module cd /tmp wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz cd /tmp/mod_h264_streaming-2.2.7 ./configure
linux os 將作業環境分為以下7個等級:0:開機(請不要切換到此等級)1:單人使用者模式的文字介面2:多人使用者模式的文字介面,不具有網路檔案系統(NFS)功能3:多人使用者模式的文字介面,具有網路檔案系統(NFS)功能4:某些發行版的linux使用此等級進入x windows system5:某些發行版的linux使用此等級進入x windows system6:重新啟動 可以通過init 0 to 6來在各個運行等級間切換。Nice!
注意第一次調用的是spin_lock_irqsave(),但之後釋放鎖卻用的是spin_unlock()第二次擷取自旋瑣用的是spin_lock_irq(),但釋放鎖卻用的是spin_unlock_irqrestore(),why?static long __schedsleep_on_common(wait_queue_head_t *q, int state, long timeout){ unsigned long flags; wait_queue_t wait;
How to create ftp user on Linux [root@xcdb ~]# useradd -G ftp -d /home/oracle -M xcuser[root@xcdb ~]# id xcuseruid=501(xcuser) gid=502(xcuser) groups=502(xcuser),50(ftp)[root@xcdb ~]# passwd xcuserChanging password for user xcuser.New UNIX password:
From : http://hi.baidu.com/dog_freedom/blog/item/94744f1337026c59f819b843.htmlSmartmontools for SCSI硬碟: http://smartmontools.sourceforge.net/smartmontools_scsi.htmlsmartctl命令參數列表:The following options are currently available for SCSI disks and tape
author:skatetime:2011/08/10 linux的幾個進程的作用 1. kswapd0 Linux uses kswapd for virtual memory management such that pages that have been recently accessed are kept in memory and less active pages are paged out to disk.(what is a page?)…Linux uses