Chinaunix首页 | 论坛 | 博客
  • 博客访问: 811575
  • 博文数量: 222
  • 博客积分: 4341
  • 博客等级: 上校
  • 技术积分: 2155
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-16 13:50
个人简介

...

文章分类

全部博文(222)

文章存档

2019年(1)

2016年(9)

2015年(7)

2014年(14)

2013年(11)

2012年(10)

2011年(6)

2010年(25)

2009年(37)

2008年(21)

2007年(81)

我的朋友

分类:

2007-09-16 21:53:37

Linux All-in-One Desk Reference For Dummies, 2nd Edition

book1: linux basics

CD/DVD刻录: cdrecord/growisofs
1. 运行cdrecord-scanbus,查看输出,判断刻录机的参数
2. 进入ISO所在目录
3. ls -l 查看ISO文件名
4. 将空白光盘插入刻录机
5. # cdrecord -v -pad speed=1 dev=0,0,0(刻录机的参数) filename.iso
6. # growisofs -dvd-compat -Z /dev/scd0=filename.iso

创建X配置文件
X -configure
测试生成的配置文件
X -config ///etc/xorg.conf.new
使配置文件生效
cp ///etc/xorg.config.new /etc/X11/xorg.conf

book2: Linux Desktops



command > file #标准输出重定向
command 2> file #错误输出重定向
command > file 2>&1 #输出重定向
command <> file.out
command >> file #追加
command 2>> file
command >> file 2>&1
command <&1 command2 #将输出输入置command2

对文件内容排序
sort /etc/password > sorted.text
删除或替换字符
tr
tr -d '\015' <> filename.lin
文档切分
split -b 1440k hugefile.tar part.
合并
cat part.?? > hugefile.tar


VI
!command #执行外部命令
$ #移到文档尾部
%
+ # 下一行
+n
- #上一行
-n
.
/text/
Q #不存盘退出
r file #插入外部文档
W file #将内容另存到文件尾部
w file #另存
/string #向前搜索
?string #向后搜索


book3: networking

查看网络接口: /sbin/ifconfig
查看路由表: /sbin/route
查看网络状态: netstat -i
抓取数据包: tcpdump -a -c 1000 > tdout

book4: Internet

book5: administration
监控系统性能
top/uptime/vmstat
监控磁盘性能与空间
/sbin/hdparm -t /dev/hda
dh
查看系统信息
/proc/cpuinfo
...
lsmod
modprobe snd-card-0
modprobe -r snd-card-0
/etc/modprobe.conf
/etc/at.allow /etc/at.deny 可以使用at 的用户列表
/etc/cron.allow /etc/cron.deny



book6: security
密码安全
/etc/passwd => /etc/shadow
密码有效期
chage -l root
GPG
Tripwire
TCP wrapper ==> /etc/hosts.deny /etc/hosts.allow fi
iptables-restore < iptables.rules
securitytools: nmap/nessus
xinetd与inetd

book7:internet servers
apache/vsftp/dns/nfs/samba
阅读(678) | 评论(0) | 转发(0) |
0

上一篇:好玩的游戏

下一篇:Debian 安装备忘

给主人留下些什么吧!~~