原创 我的友情鏈接
51CTO博客開發
原创 linux 進程管理
linux 最常用的查看進程命令就是[top] 和[ps] top 與ps的主要區別就是 top 是 ongoing (時時)的; ps 是 report. top command 能夠得到 cpu 的使用率 內存的使用率 swap
原创 linux 腳本 1
1 開頭程序必須以下面的行開始(必須方在文件的第一行):#!/bin/sh符號#!用來告訴系統它後面的參數是用來執行該文件的程序。在這個例子中我們使用/bin/sh來執行程序。當編寫腳本完成時,如果要執行該腳本,還必須使其可執行。要使編
原创 coredump
Linux系統中在應用程序運行過程中經常會遇到程序突然崩潰,提示:Segmentation fault,這是因爲應用程序收到了SIGSEGV信號。這個信號提示當進程發生了無效的存儲訪問,當接收到這個信號時,缺省動作是:終止w/core。
原创 linux 查看版本
如何查看linux 版本 1 uname -aLinux localhost 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux
原创 ubuntu 安裝問題
安裝虛擬機遇到的問題問題kinit: name_to_dev_t(/dev/disk/by-uuid/bd656dcd-04b4-412f-a880-62a6553bd8b) = sda5(8,5) kinit: trying to re
原创 Schedule tasks on Linux using crontab 2
Neat scheduling tricks What if you'd want to run something every 10 minutes? Well you could do this: 0,10,20,30,40,50 *
原创 linux driver 2
1 創建module#include <linux/init.h>#include <linux/module.h>MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){pri
原创 我的友情鏈接
51CTO博客開發
原创 curl command on linux OS
curl command 名稱 curl -transfer a URL 語法 curl [options] [URL...] 描述 curl 用於上傳或是下載文件, 文檔。 支持協議:HTTP, HTT
原创 Schedule tasks on Linux using crontab 3
Mailing the crontab output By default cron saves the output in the user's mailbox (root in this case) on the local syst
原创 Network File System (NFS)
NFS server 配置 OS ubuntu9.10 1安裝 nfs server sudo apt-get install nfs-kernel-server nfs-common portmap2 配置 sudo dpkg-rec
原创 學習linux 1
1識別 processesa.struct task_structb.pid max value 32767 (PID_MAX_DEFAULT -1) /proc/sys/kernel/pid_max
原创 c++派生類
派生類執行自己的構造函數前,會自動執行父類的構造函數。 派生類執行完自己的析構函數後,會自動執行父類的析構函數。
原创 linux driver
ubuntu 9.04 創建內核樹1 uname -r 得到內核版本2 apt-cache search linux-source 查找內核src3 apt-get install linux-source-2.6.28 下載安裝 sr