
Linux管理
钢都百炼生
努力奋斗的青年
展开
-
Ubuntu10.10开机启动级别
<br />/etc/init/rc-sysinit.conf文件,第14行<br /> <br /># Default runlevel, this may be overriden on the kernel command-line<br /># or by faking an old /etc/inittab entry<br />env DEFAULT_RUNLEVEL=2<br /> <br />有这个变量可以改变启动级别。<br /> 还有就是,GNOME Display Manage原创 2010-12-27 20:12:00 · 1100 阅读 · 1 评论 -
Debian 字符编码转换
UTF-8 conversionIf upstream documents are encoded in old encoding schemes, converting them to UTF-8 is a good idea. Use iconv(1) to convert encodings of plain text files.iconv -f latin转载 2013-03-14 15:45:22 · 1035 阅读 · 0 评论 -
统计网络流量
分享一个脚本统计网络流量:#!/bin/bash# Almost everything of this is shamelessly copied from# http://www.lugmen.org.ar/~conan/tmp/wmii/statuswhile true; do RX0=`/bin/grep eth0 /proc/net/dev | tr ':' ' '原创 2013-03-13 17:03:27 · 907 阅读 · 0 评论 -
grep 使用技巧
有些程序不使用 Makefile 变量定义路径,这意味着你可能需要去编辑 C 程序源代码来使他们使用正确的路径。但是到哪里去搜索,哪些才是呢?你可以通过以下的方法找到它们:$ grep -nr --include='*.[c|h]' -e 'usr/local/lib' .替换技巧 sed -i -e 's#usr/local/lib#usr/lib#g'原创 2013-03-11 16:34:08 · 757 阅读 · 0 评论 -
常用软件包列表
常用的软件包列表你可以使用sudo apt-get install XXXX 加入下列软件包的名称去安装相应的软件包openoffice.org原创 2013-03-11 11:37:39 · 851 阅读 · 0 评论 -
Linux中权限和能力
现代,Linux系统不仅有权限而且有能力。了解进程所具有的能力至关重要。capset原创 2011-09-30 08:27:08 · 554 阅读 · 0 评论 -
用户权限管理
UIDEUIDSUID用户ID分上面三类,当我们使用getuid()获得的是实际用户ID,而setuid()是设置有效用户ID(EUID),但是如果你的有效用户ID(UID)是0即如果你是root用户身份(不一定是root),原创 2011-09-25 15:14:39 · 432 阅读 · 0 评论 -
两台主机共享文件
通过ssh复制远程主机中的文件,这样方便在两台计算机中复制文件。命令格式如下:scp user@hostip:/home/user/filename 复制,远端主机中/home目录中的/user目录中的filename文件。实例说明scp linux@原创 2011-09-24 12:50:13 · 467 阅读 · 0 评论 -
Ubuntu挂载
分区挂载 sudo mount -t 文件系统类型 设备路经 访问路经 <br />#常用文件类型如下: iso9660 光驱文件系统, vfat fat/fat32分区, ntfs ntfs分区, smbfs windows网络共享目录, reiserfs、ext3、xfs Linux分区<br />#如果中文名无法显示尝试在最後增加 -o nls=utf8 或 -o iocharset=utf8 <br />#如果需要挂载後,普通用户也可以使用,在 -o 的参数後面增加 ,umask=02原创 2011-05-13 08:35:00 · 657 阅读 · 0 评论 -
Ubuntu 使用技巧
清除所有已删除包的残馀配置文件 dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P <br />原创 2011-05-13 08:10:00 · 401 阅读 · 0 评论 -
ubuntu 环境变量
<br />sudo gedit /etc/environment<br /> <br />java 程序的路径是,<br /> /usr/lib/jvm/<br /> <br />原创 2011-03-04 14:27:00 · 389 阅读 · 0 评论 -
linux看chm文档
sudo apt-get install xchm可以看chm文档了,原创 2011-01-05 16:34:00 · 628 阅读 · 0 评论 -
Linux系统备份工具收罗
之前接触过Linux系统备份,因为项目上需要,但是Linux系统的备份技术尚不成熟,都是以零散的备份工具存在着,如果需要成稳的备份系统需要购买第三方独立软件。收集一些备份相关的工具以便大家交流使用。duplicity工具,是一个老黑客提出来的,后来我搜索出来,看看man手册如何介绍: http://duplicity.nongnu.org/duplicity.1.html目前更新了1个工具。后续再原创 2015-09-07 14:07:13 · 408 阅读 · 0 评论