1
2
4^I
5
^I6
etc tmp home sys dev aaa rsync apacheTomcat index.jsp.bak bin lib lost+found boot misc mnt srv
root file selinux proc nagios www var index sbin 1tomcat media tftpboot usr initrd opt
[root@watchout2 /]# touch /home/shell
[root@watchout2 /]# ls -t
home root file sys dev aaa rsync apacheTomcat index.jsp.bak bin lib lost+found boot misc mnt srv
etc tmp selinux proc nagios www var index sbin 1tomcat media tftpboot usr initrd opt
etc bin usr dev selinux var 1tomcat apacheTomcat initrd media mnt opt srv tmp proc index.jsp.bak
root sbin file home sys lib aaa boot lost+found misc nagios rsync tftpboot www index
[root@watchout2 /]# cat file
aaaaaaaaaaaaaaaaaaaaaaaaaa
[root@watchout2 /]# ls -ut
file root sbin dev selinux var 1tomcat apacheTomcat initrd media mnt opt srv tmp proc index.jsp.bak
etc bin usr home sys lib aaa boot lost+found misc nagios rsync tftpboot www index
[root@watchout2 /]# cd boot
[root@watchout2 /]# ls -ut
boot etc bin usr home sys lib aaa initrd media mnt opt srv tmp proc index.jsp.bak
file root sbin dev selinux var 1tomcat apacheTomcat lost+found misc nagios rsync tftpboot www index
1
1
2
2
3
3
4
4
5
5
6
1
2
3
4
5
6
[root@watchout2 ~]# uniq nu
1
2
3
4
5
6
1
2
3
4
5
6
[root@watchout2 ~]# uniq nu nu.bak (将uniq 对文件nu的处理结果输入新的文件nu.bak)
[root@watchout2 ~]# cat nu.bak
1
2
3
4
5
6
1
2
3
4
5
6
[root@watchout2 ~]#
2 1
2 2
2 3
2 4
2 5
1 6
1 1
1 2
1 3
1 4
1 5
1 6
1
2
3
4
5
6
1
2
3
4
5
6
M H:(424)2222233:250:890:102323111
Y U:(433)3334443:250:890:124234
M H:(424)4444433:250:890:12222
M H:(424)2222888:250:890:100
M H:(424)2222833:250:890:103
M H:(424)2222233:250:890:102323111
Y U:(433)3334443:250:890:124234
M H:(424)4444433:250:890:12222
M H:(424)2222888:250:890:100
M H:(424)2222833:250:890:103
[root@watchout2 ~]# sort -u datafile -u 排列并合并相同的文本行
M H:(424)2222233:250:890:102323111
M H:(424)2222833:250:890:103
M H:(424)2222888:250:890:100
M H:(424)4444433:250:890:12222
Y U:(433)3334443:250:890:124234
M H:(424)2222233:250:890:102323111
M H:(424)2222233:250:890:102323111
M H:(424)2222833:250:890:103
M H:(424)2222833:250:890:103
M H:(424)2222888:250:890:100
M H:(424)2222888:250:890:100
M H:(424)4444433:250:890:12222
M H:(424)4444433:250:890:12222
Y U:(433)3334443:250:890:124234
Y U:(433)3334443:250:890:124234
[root@watchout2 ~]# sort -r datafile -r 反向排序
Y U:(433)3334443:250:890:124234
Y U:(433)3334443:250:890:124234
M H:(424)4444433:250:890:12222
M H:(424)4444433:250:890:12222
M H:(424)2222888:250:890:100
M H:(424)2222888:250:890:100
M H:(424)2222833:250:890:103
M H:(424)2222833:250:890:103
M H:(424)2222233:250:890:102323111
M H:(424)2222233:250:890:102323111
1234
aaaa
bbbb
cccc
[root@station tmp]# sort -u test
1234
aaaa
AAAA
bbbb
cccc
CCCC
9:08:70
7:17:40
8:26:50
M H:(424)2222233:250:890:102323111
M H:(424)2222233:250:890:102323111
M H:(424)2222833:250:890:103
M H:(424)2222833:250:890:103
M H:(424)2222888:250:890:100
M H:(424)2222888:250:890:100
M H:(424)4444433:250:890:12222
M H:(424)4444433:250:890:12222
Y U:(433)3334443:250:890:124234
Y U:(433)3334443:250:890:124234
[root@watchout2 ~]# sort -t: -r +5 -6 datafile (-r 进行反向排序)
Y U:(433)3334443:250:890:124234
Y U:(433)3334443:250:890:124234
M H:(424)4444433:250:890:12222
M H:(424)4444433:250:890:12222
M H:(424)2222888:250:890:100
M H:(424)2222888:250:890:100
M H:(424)2222833:250:890:103
M H:(424)2222833:250:890:103
M H:(424)2222233:250:890:102323111
M H:(424)2222233:250:890:102323111
M H:(424)2222888:250:890:100
M H:(424)2222888:250:890:100
M H:(424)2222833:250:890:103
M H:(424)2222833:250:890:103
M H:(424)4444433:250:890:12222
M H:(424)4444433:250:890:12222
Y U:(433)3334443:250:890:124234
Y U:(433)3334443:250:890:124234
M H:(424)2222233:250:890:102323111
M H:(424)2222233:250:890:102323111
6.. rpm
mysql-4.1.7-4.RHEL4.1
/etc/logrotate.d/mysqld
/etc/rc.d/init.d/mysqld
/usr/bin/isamchk
/usr/bin/isamlog
/usr/bin/my_print_defaults
/usr/bin/myisam_ftdump
/usr/bin/myisamchk
/usr/bin/myisamlog
/usr/bin/myisampack
/usr/bin/mysql_convert_table_format
/usr/bin/mysql_create_system_tables
/usr/bin/mysql_explain_log
/usr/bin/mysql_fix_extensions
/usr/bin/mysql_fix_privilege_tables
/usr/bin/mysql_install_db
sysstat-5.0.5-1
root:/>
/etc/logrotate.d/vsftpd.log
/etc/pam.d/vsftpd
/etc/vsftpd.ftpusers
/etc/vsftpd.user_list
/etc/vsftpd/vsftpd.conf
root:/>rpm -qc iptables
/etc/rc.d/init.d/iptables
/etc/sysconfig/iptables-config
root:/>
查看系统硬件信息 dmidecode
9.. du 和 df 命令区别
du 和 df 命令区别,查看了网上的说明个人理解如下:
















