linux
zjufirefly
这个作者很懒,什么都没留下…
展开
-
flashcache
flashcache源码详细分析http://blog.csdn.net/liumangxiong/article/details/11643473http://blog.csdn.net/liumangxiong/article/details/11681787http://blog.csdn.net/liumangxiong/article/details/11726651ht原创 2014-09-22 20:22:53 · 589 阅读 · 0 评论 -
git操作命令
配置 配置用户信息 git config --global user.name "John Doe" git config --global user.email johndoe@example.com 配置文本编辑器 git config --global core.editor vim原创 2014-11-08 20:18:43 · 1256 阅读 · 0 评论 -
设置系统路径
增加.so搜索路径export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/liheyuan/soft/lib增加.a搜索路径LIBRARY_PATH=$LIBRARY_PATH:/home/liheyuan/soft/lib增加bin搜索路径export PATH=$PATH:/home/liheyuan/soft/bin增加GCC的include文件搜索路径ex原创 2015-07-08 09:44:04 · 4967 阅读 · 0 评论 -
linux文件夹打包压缩
.tar 解包:tar xvf FileName.tar 打包:tar cvf FileName.tar DirName (注:tar是打包,不是压缩!).gz 解压1:gunzip FileName.gz 解压2:gzip -d FileName.gz 压缩:gzip FileName .tar.gz 解压:tar zxvf FileName.tar.gz 压缩:tar zcvf转载 2015-05-06 18:01:17 · 4749 阅读 · 0 评论 -
vim常用配置
vi ~/.vimrcset nocompatible " 关闭 vi 兼容模式 syntax on " 自动语法高亮 colorscheme evening " 设定配色方案 set number " 显示行号 set cursorline " 突出显示当前行原创 2014-10-27 19:59:46 · 484 阅读 · 0 评论 -
linux命令
压缩文件夹tar -cvzf <filename.tar.gz> <dirpath>文件夹中查找单词grep <findword> <dirpath> -n -r文件夹中查找文件find <dirpath> -name <filename>切换账号sudo -i -u root查看磁盘uuidls /dev/disk/by-uuidblkid原创 2014-08-12 17:19:38 · 865 阅读 · 0 评论 -
vim-ctags-taglist-netrw
vim配置在~/.vimrc文件中配置如下内容,或者在/etc/vim/vimrc中进行全局配置,常用配置如下:syntax onset tabstop=4set nuset smartindentset cursorlineset rulerset shiftwidth=4set softtabstop=4set hlsearchset autoind原创 2014-10-29 20:01:49 · 997 阅读 · 0 评论 -
blktrace
blktrace 深度了解linux系统的IO运作http://blog.yufeng.info/archives/751Linux下Fio和Blktrace模拟块设备的访问模式http://blog.yufeng.info/archives/1112IO模式调查利器blkiomon介绍http://blog.yufeng.info/archiv原创 2014-09-22 20:38:44 · 1468 阅读 · 0 评论 -
iSCSI
IETcat /proc/net/iet/session查看targetid 和target name对应关系cat /proc/net/iet/volume查看导出的lun和本机块设备对应关系open-iscsi查看服务状态service iscsi statusinitiator查看ISCSI启动状态chkconfig iscsi on;原创 2014-12-22 19:25:40 · 1151 阅读 · 0 评论 -
SystemTap
安装sudo apt-get install build-essentialsudo apt-get install elfutilssudo apt-get install libdw-devwget wget https://sourceware.org/systemtap/ftp/releases/systemtap-2.4.tar.gztar -xzvf systemt原创 2014-12-22 19:09:08 · 793 阅读 · 0 评论 -
linux下coredump的使用
临时性打开coredumpecho “core.%e.%p” > /proc/sys/kernel/core_patternulimit -c unlimited%% 单个%字符%p 所dump进程的进程ID%u 所dump进程的实际用户ID%g 所dump进程的实际组ID%s 导致本次core dump的信号%t core dump的时间 (由1970年1月原创 2014-12-24 17:44:07 · 5210 阅读 · 0 评论 -
性能测试命令字段解释
vmstat 查看系统状态、硬件和系统信息等$ vmstat 1procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff cache si so bi bo in cs us sy id wa st原创 2014-10-15 19:52:46 · 730 阅读 · 0 评论 -
cgroups
CGROUPS官方解析,用户空间如何监控http://blog.chinaunix.net/uid-16763274-id-2103750.htmlcgroups概念http://baike.baidu.com/view/9448980.htm?fr=aladdinLinux Cgroups详解(一)http://www.cnblogs.com/lisperl/ar原创 2014-11-13 19:29:45 · 740 阅读 · 0 评论 -
valgrind内存检查
安装apt-get install valgrind测试程序#include #include int*Test(void){ int* x = malloc(10 * sizeof(int)); delete x;// problem 1: heap block overrun, problem 2: memory leak --x not free,原创 2014-12-25 15:09:39 · 4834 阅读 · 0 评论