操作
zjufirefly
这个作者很懒,什么都没留下…
展开
-
mysql常用命令
如何登陆数据库 登陆本机 mysql -u <username> -p 登陆本机某个数据库 mysql -u <username> -D <database_name> -p 登陆远程某个数据库 mysql -h <hostname> -u <username> -D <database_name> -p 登陆远程某个数据库,从特定端口 mysql -h <hostname> -P <port> -u <username> -原创 2014-11-20 19:31:27 · 739 阅读 · 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 评论 -
系统工具安装,配置
怎样开启Win7快速启动栏http://jingyan.baidu.com/article/456c463bbc1d140a583144cf.html原创 2014-09-22 21:01:00 · 546 阅读 · 0 评论 -
STL Support Tools
When you try to use GDB's "print" command to display the contents of a vector, a stack, or any other GDB abstract data structure, you will get useless results. Instead, download and install one of fol转载 2015-07-01 16:05:40 · 4848 阅读 · 0 评论 -
gdb 多线程调试
http://hi.baidu.com/hcq11/blog/item/9f5bfc6e696209d680cb4a25.html http://hi.baidu.com/litto/blog/item/759389dd198111375882dd1e.html http://blogold.chinaunix.net/u3/94700/showart_2389432.html <推荐阅读>先介转载 2015-05-27 11:34:48 · 4564 阅读 · 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 评论 -
boost安装
下载http://www.boost.org/安装文件解压在/usr/local/目录下在/usr/local/boost-*目录下,执行./bootstrap.sh在/usr/local/boost-*目录下,执行sudo ./bjam --layout=versioned --build-type=complete --toolset=gcc install 在/原创 2014-12-25 14:21:57 · 5000 阅读 · 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 评论 -
linux操作收集
制作deb包http://www.linuxsir.org/bbs/thread21456.htmlhttp://xiangyanglai.blog.163.com/blog/static/20472520220123241088439//var/cache/apt/archieve 下的都是软件的安装缓存解压http://www.cnblogs.com/eoiioe/archive/2008/09/20/1294681.html原创 2014-08-11 18:45:34 · 461 阅读 · 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 评论 -
系统工具安装,配置
ubuntu字体设置sudo apt-get install ttf-liberation 字体选择Liberation Sans Bold 9~/.gtkrc-2.0 style “gtkcompact” { GtkTreeView::vertical-separator=1 GtkTreeView::horizontal-separator=1 GtkWidget::focus-line原创 2015-07-09 09:43:01 · 5212 阅读 · 0 评论