tar命令[root@linux ~]# tar [-cxtzjvfpPN] 文件与目录 ....参数:-c :建立一个压缩文件的参数指令(create 的意思);-x :解开一个压缩文件的参数指令!-t :查看 tarfile 里面的文件!特别注意,在参数的下达中, c/x/t 仅能存在一个!不可...
分类:
系统相关 时间:
2014-06-28 23:35:09
阅读次数:
514
linux下的root用户是个超级管理员,一般是不用这个用户登录进行操作的,但有时候需要root权限,又不想切换用户的话可以使用sudo命令。但是不是所有的用户都可以使用sudo命令的。首先可能会遇到下面的提示:××× is not in the sudoers file. This inciden...
分类:
系统相关 时间:
2014-06-28 21:39:15
阅读次数:
338
/* $Id: dma.c,v 1.5 1992/11/18 02:49:05 root Exp root $* linux/kernel/dma.c: A DMA channel allocator. Inspired by linux/kernel/irq.c.* Written by Henn...
分类:
其他好文 时间:
2014-06-28 21:27:02
阅读次数:
280
du与df[root@CentOS5 samba]# dumpe2fs /dev/sda3|grep "Block size" 4096字节du 内容实际大小,以字节为单位,统计文件大小相加df 占用空间大小,以块为单位,统计数据块使用情况du -s命令通过将指定文件系统中所有的目录、符号链接和文件...
分类:
系统相关 时间:
2014-06-28 21:10:08
阅读次数:
292
已经把su替换了,但还是不行,最后才发现是忘了加s属性-rwxrwxrwx root root 5416 2013-12-30 16:03 subusybox chmod u+s su-rwsrwxrwx root root 5416 2013-12-30 16:...
分类:
移动开发 时间:
2014-06-28 20:56:30
阅读次数:
251
在CentOS环境下,安装完Mysql后,root的密码为空,需要去设置密码才能使用,设置密码的方法如下:/usr/bin/mysqladmin -u root password yourpasswd注意把上述命令的yourpasswd替换为自己的密码,这个时候如果使用以下命令成功登陆Mysql终端...
分类:
数据库 时间:
2014-06-28 20:40:25
阅读次数:
272
安装前准备工作:[root@bogon src]# yum -y install bison bison-devel ncurses ncurses-devel openssl openssl-develcmake下载安装http://www.cmake.org/files/v2.8/cmake-2...
分类:
数据库 时间:
2014-06-21 13:46:44
阅读次数:
188
在某些情况下想把centos中的数据库相关安装文件全部删除掉,需要用到yum命令,具体方法如下:查找mysql相关的安装文件:[root@localhost ~]# rpm -qa | grep mysqlmysql-5.1.47-1.fc11.i586mysql-server-5.1.47-1.f...
分类:
数据库 时间:
2014-06-21 12:05:15
阅读次数:
248
01#include 02#include 03#include 04int main()05{06 json_t *entry, *root, *head, *body, *label, *value;07 char *document;08 root = json_new_object()...
分类:
Web程序 时间:
2014-06-21 12:02:30
阅读次数:
355
一、安装tkinter在Linux中python默认是不安装Tkinter模块,[root@li250-193 ~]# pythonPython 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) [GCC 4.4.7 20120313 (Red Hat 4.4.7-...
分类:
编程语言 时间:
2014-06-21 08:57:04
阅读次数:
284