tar 命令: Main operation mode: -A, --catenate, --concatenate append tar files to an archive -c, --create create a new archive -d, --diff, --compare find differences between archive and file system --delete
錯誤現象:(semop函數調用,strerror(errno)輸出結果)Interrupted system call平台:RedHat Linux LINUX文檔關於EINTR的描述是這樣子的: While blocked in this system call, the process caught a signal.UNIX文檔[IEEE Std 1003.1-2008]關於EINTR的描述是這樣子的: The semop() function was interrupted by
CFLAGS 表示用於 C 編譯器的選項,CXXFLAGS 表示用於 C++ 編譯器的選項。這兩個變數實際上涵蓋了編譯和彙編兩個步驟。先來看幾個相關的環境變數:PATH、LDFLAGS、CFLAGSPATH:大家應該都很熟悉。安裝一個包後可能會在安裝目錄建立一個bin目錄,裡面都是些可執行程式,為了讓系統能找到這些程式,就需要我們把該路徑加入到PATH環境變數中。下面會講到如何加入。LDFLAGS:gcc等編譯器會用到的一些最佳化參數,也可以在裡面指定庫檔案的位置。用法:LDFLAGS=“-L/
NO 分類 PS1 命令名 用法及參數 功能註解 1 檔案管理 # ls ls -a 列出目前的目錄下的所有檔案,包括以.頭的隱含檔案 檔案管理 # ls ls -l或ll 列出目前的目錄下檔案的詳細資料 檔案管理 # pwd pwd 查看當前所在目錄的絕對路經 檔案管理 # cd cd .. 回目前的目錄的上一級目錄
1.load bios(hardware information)2.read MBR's config to find out the OS3.load the kernel of the OS4.init process starts..5.execute /etc/rc.d/sysinit( rc:run command ,d:表示精靈線程,指啟動過程看不到的伺服器處理序)6.start other modules (etc/modules.conf)
The dupsystem calls provide a way of duplicating a file descriptor, giving us two or more different descriptors that access the same file. These might be used for reading and writing to different locations in the file. The dupsystem call
We use closeto terminate the association between a file descriptor, fildes, and its file. The file descriptor becomes available for reuse. It returns 0 if successful and -1 on error. #include int close(int fildes);Note that it can be important to
ioctl is a bit of a ragbag of things. It provides an interface for controlling the behavior of devices and their descriptors and configuring underlying services. Terminals, file descriptors, sockets, and even tape drives may have ioctlcalls