Time of Update: 2015-07-25
標籤:1.stat既有命令也有同名函數,用來擷取檔案Inode裡主要資訊(即檔案類型、檔案許可權、建立/修改/訪問時間等就是ls -l看到的相關的資訊),stat 跟蹤符號連結,lstat不跟蹤符號連結。可以通過man 2 stat查看相關的資訊。 #include <sys/types.h> #include <sys/stat.h> #include <unistd.h>int stat(const char *path, struct stat
Time of Update: 2015-07-22
標籤:轉載自:http://blog.csdn.net/david_xtd/article/details/7045792 (換句話說,soname不是真實存在的檔案,只是在此庫中和將來調用此庫的檔案中儲存的一個名字,在載入時去找這個名字,使用時建立一個軟串連來指向真實檔案,這樣真實檔案的版本號碼就可以升級了) Linux 系統,也同樣面臨和Window一樣的問題,如何控制動態庫的多個版本問題。Window之前沒有處理好,為此專門有個名詞來形容這個問題 “Dll
Time of Update: 2015-07-22
標籤:linux第一部分、啟動流程、模組管理與Loader 一、run level執行等級與切換 1、Linux通過設定run level來規定系統使用不同的服務來啟動,基本上,依據有無網路與有無X Window將run level分為7個等級 0 - half :系統直接關機 1 -single user mode :系統單一使用者模式、用在系統出問題時維護 2 -multi-user,without NFS:類似下面的runlevel3,但無NFS服務 3
Time of Update: 2015-07-22
標籤: top命令是Linux下常用的效能分析工具,能夠即時顯示系統中各個進程的資源佔用狀況,類似於Windows的工作管理員。下面詳細介紹它的使用方法。top - 01:06:48 up 1:22, 1 user, load average: 0.06, 0.60, 0.48
Time of Update: 2015-07-26
標籤:線程同步 讀寫鎖 rwlock 線程同步-讀寫鎖(rwlock)讀寫鎖讀寫鎖是互斥量的細化:顯然,只有對全域資然進行寫入操作時,才需要同步;在對全域資然進行讀取操作時,是不需要鎖的。
Time of Update: 2015-07-25
標籤:dirent.h是gcc下的一個標頭檔,在windows中是沒有的。這個檔案中封裝了幾個對目錄進行操作函數:static DIR *opendir (const char *dirname);static struct dirent *readdir (DIR *dirp);static int closedir (DIR
Time of Update: 2015-07-22
標籤:windowsazure 平台重設linux密碼 WindowsAzure
Time of Update: 2015-07-25
linux使用者和使用者組,linux使用者使用者組使用者和使用者組1. /etc/group 組名:x:組編號:使用者列表 組號 1-499 預留系統編號 組號 500- 使用者建立2. /etc/gshadow 組名:組密碼:組管理者:使用者列表3. /etc/passwd
Time of Update: 2015-07-25
linux下crontab使用筆記,linuxcrontab筆記1. 安裝 service crond status yum install vixie-cron yum install crontabs2. 執行個體 每分鐘列印目前時間到記錄檔 #crontab -e
Time of Update: 2015-07-26
Linux的WDT(watchdog)驅動第一部分: WDT驅動原理WDT在核心中通常都實現為misc驅動。WDT介紹一個Watchdog
Time of Update: 2015-07-26
CentOS7 安裝Nginx,centos7安裝nginx 由於實習需要,這段時間學一點“nginx”。關於nginx就不介紹了,http://wiki.nginx.org/Main有非常詳細的介紹、安裝等。 安裝軟體我習慣到官網下載源碼,http://nginx.org/,可以看見nginx跟新還是非常頻繁的,今天是2015-7-26 ,最近的一版已經是07-14了,主要有stable和mainline兩種版本。
Time of Update: 2015-07-26
RedHat Enterprise Linux配置VNC多使用者訪問的方法RedHat Enterprise Linux配置VNC多使用者訪問的方法1.首先在系統內安裝VNC服務,並確認VNC的版本。系統下使用命令:rpm -qa | grep vnc 或者 rpm -q vnc-server即可查看;如果未安裝,請到作業系統安裝光碟片內的server檔案夾下尋找vncserver這樣的軟體包,然後使用命令rpm -ivh
Time of Update: 2015-07-26
Ubuntu 12.04下編譯安裝Kaldi因為同事工作需要 kaldi ,所以安裝過程有點麻煩。在此記錄一下折騰的過程。OS:Ubuntu 12.04 (amd64)kaldi的 http://svn.code.sf.net/p/kaldi/code/ 我這裡下載的是 stablesvn co http://svn.code.sf.net/p/kaldi/code/stable kaldi-stable“ 在編譯之前需要改個
Time of Update: 2015-07-26
LVM 管理減少swap分區空間增加到根分區簡介LVM是 Logical Volume Manager(邏輯卷管理)的簡寫,它是Linux環境下對磁碟分割進行管理的一種機制,它由Heinz Mauelshagen在Linux 2.4核心上實現。實體儲存體介質(PhysicalStorageMedia)指系統的實體儲存體裝置:磁碟,如:/dev/hda、/dev/sda等,是儲存系統最底層的儲存單元。物理卷(Physical
Time of Update: 2015-07-26
Visual Studio 2015正式版安裝圖文詳解介紹 紐約時間7月20日,微軟發布了Visual Studio 2015正式版,換算到我們的北京時間就是晚上了,今天回到家裡,就下下來了,裝上去試試,看是怎麼樣的感覺。Visual Studio 2015 正式發布下載,可移植 C++ 庫
Time of Update: 2015-07-26
Ubuntu下CUDA(含GPU卡驅動)安裝過程OS:Ubuntu 12.04 (amd64)基本工具集aptitude install binutils ia32-libs gcc make automake autoconf libtool g++ g++-4.6 gawk gfortran freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa
Time of Update: 2015-07-26
Ubuntu 15.04下為Vim安裝YouCompleteMe外掛程式Linux系統:Ubuntu 15.04,為Vim安裝YouCompleteMe外掛程式,有需要的朋友可以參考下。0x00. 簡介YouCompleteMe號稱Vim的自動補全神器,YouCompleteMe: a code-completion engine for Vim,該項目在github的地址:YouCompleteMe。0x01. RequirementsVim is at least 7.3.584
Time of Update: 2015-07-24
Linux 關於Transparent Hugepages的介紹,transparent透明大頁介紹 Transparent Huge Pages的一些官方介紹資料: Transparent Huge Pages (THP) are enabled by default in RHEL 6 for all applications. The kernel attempts to allocate hugepages whenever possible and any Linux process
Time of Update: 2015-07-24
Ubuntu系統常用操作指令說明使用隨身碟拷貝壓縮檔檔案的壓縮方法詳見:3.6檔案歸檔壓縮及其釋放隨身碟直接插入機器USB介面,等待自動快顯視窗,在快顯視窗選擇“檔案->開啟終端”,開啟的終端目前的目錄預設為隨身碟所在的目錄,直接在目前的目錄進行拷貝的操作即可。該視窗不要關閉。例:>cp /home/cps/package.tar .或者>cp /home/cps/package.tar.gz
Time of Update: 2015-07-23
關閉selinux,selinux1、查看SELinux狀態:getenforce Enforcing(啟動) disable(禁用) 1、禁用SELinux(重啟後依然生效) 修改 vi /etc/sysconfig/selinux [root@developer ~]# vi /etc/selinux/config # This file controls the state of SELinux on the system. #