md5_check.sh

#!/bin/bash

#根据md5校验码,检测文件是否被修改 
#本示例脚本检测的是/etc目录下所有的conf结尾的文件,根据实际情况,您可以修改为其他目录或文件
#本脚本在目标数据没有被修改时执行一次,当怀疑数据被人篡改,再执行一次
#将两次执行的结果做对比,md5码发生改变的文件,就是被人篡改的文件

for i in $(ls /root/*.sh)
do
  md5sum "$i" >>/tmp/md5_check.log
done
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.

验证:

[root@logstash ~]# sh md5_check.sh 
[root@logstash ~]# 
[root@logstash ~]# cat /tmp/md5_check.log 
abadded38ccb552aa2d9172ae0a57c07  /root/22.sh
077f7ff30b3007ce254c7d44cae38fc6  /root/account.sh
03cbf2d10d50746fb86e94f694aad4b2  /root/add_firewalld_rule.sh
e405bf595673bbaf42ff9f4e6de2e906  /root/auto_backup_system.sh
7e78a8d04caa8ca8f3757f926f4ba550  /root/awk.sh
089c45a871f48e68da3c7a60bb053ad8  /root/back_mysql.sh
1cb04050e0dc86392bee94cc389b50cd  /root/backup.sh
16448dbb3cc2d1b7145334dd751efc85  /root/check_rpm.sh
1cffe730bacaefa709f0d91fac9a2338  /root/chess.sh
e55364e9dbd6f7f545e978e7433b8dbc  /root/close_machines.sh
bb9e91368b934683b3a80aad445044df  /root/create_lv.sh
1b5f53b875e6ec13b5a7acf7c186c949  /root/crontab.sh
7b945b7807103a434bcd7da39750dcc9  /root/date.sh
5b5afcf02e40164bcfc757f87f2de186  /root/delete_file.sh
8e8b61930a78c7fb0639ef4c83029c02  /root/digital_file.sh
42a267fbcb4534c89f12cd8f9a432494  /root/disable_selinux.sh
80c59e472be05f5f893bc32dfcfb2f6a  /root/display_account.sh
2828df63478367db459560bccd7bc853  /root/display_cpu.sh
2614d5c2f4cb7416baa2bf91ad9d7975  /root/display_port.sh
7da454ec3a353e670aa294693923fb7f  /root/double-colored-ball.sh
0595112796702a3f0b21b1b9e6af6a72  /root/download_pic.sh
aff631987bcae9898557e81cc7a49589  /root/egrep.sh
e63f87f0ba4dcb32a047a62be8ce1e2a  /root/ens32_packet.sh
88501640262892522f94c704759ea848  /root/fibonacci_sequence.sh
1e43e8e08b2c098192c96ccdb1e8c8fa  /root/file_directory.sh
4305a47aa9f3b9174a972adc4c28943c  /root/file_limits.sh
d001522d2970095f441d4a6b3036ec69  /root/file.sh
b57d094ada003ac7e2d6a2f813716cdc  /root/generate_certificate.sh
a229be06f53405a9e20acdf1eafa20c9  /root/generate_random_code.sh
456d6d74e0161e410617354928798e2c  /root/generate_string_pass.sh
8568ee8df796d1017444569f4b78b50e  /root/generate_urandom.sh
169a4b10590f78801568d4b93d95f9d1  /root/generate_uuid.sh
f43f33189b4aedd733c0b7329dfb32b4  /root/graph.sh
9553211e8ab1b5a3ce9f91519ccc436b  /root/guess_number.sh
71479942334465095f3293f90c0c0708  /root/helloworld.sh
2bbbc99a9c0377be1166fc36f6e8d489  /root/hive.sh
404aa1e15cdcc1eb7c1d5dd8b184972c  /root/hostname.sh
51f3e35bb9e89ee05466c890485cddaf  /root/Jan-Ken-Punch.sh
1686e4f335b60709346111b8ef59df9d  /root/judge_data_type.sh
180dcfc527447eb4d9aa91267906ec78  /root/judge_leap_year.sh
5703767ef1800be6d380c7c1ef58df48  /root/judge_user_level.sh
3076afa0b954d46ece2ae942564bff75  /root/judge_user_passwd.sh
451643125b404b520332a8fc86600943  /root/judge_yes_no.sh
482ad555ef84ebc27707356ba4f860a2  /root/lamp.sh
89b393ffa1dc67f6eba3b6e662c2941e  /root/logback.sh
de23dac03b7a1605e4e8050355228299  /root/log_count.sh
9bcabaed41083d855000009665683d51  /root/lowercase_uppercase.sh
2fe3b02b3e0c5b8f8943cb681846cabf  /root/mac.sh
a494e7542e73445efb29b1b92cfb0cfa  /root/md5_check.sh
5adb4d9e4dc5fd645ef1ef19e06dbc60  /root/monitor_http.sh
2ca3d186123ef5aad4017a5a0dbcbd89  /root/multiplication_table.sh
7d51777107bd737ae13961902469b388  /root/mysql_ping.sh
7e60c8763bf2178d580a260f03f229bf  /root/parameter.sh
586b60a2a4c7b1f3ade6abc765b552ba  /root/process_bar.sh
4a64ac3f3cec2f66797d3f8c603b3977  /root/process.sh
3c65415d27bc732ed4df0dd000d03a08  /root/read.sh
4228892cc3773c218fbff0eae1203214  /root/root_count.sh
d390595fb42a38442ed3a9ab1e70a516  /root/rsyncd.sh
d773338a3f629291685be229eba690d6  /root/schedule-bak.sh
7bc4690db3d21c72500b5744e9dad4dd  /root/self-destruct.sh
4d83caa3605b09f7ea37992c31229d5c  /root/ssh_key.sh
f790df9b9e2387b1eff2903dfcf2c8cf  /root/statistic.sh
303188eccba9c4f0f7066a991a72f43a  /root/text.sh
7668d957183fe29a05830f0c8a80b563  /root/time.sh
da38a535ac71e7d4cd7c6e0f895281ec  /root/tmp.sh
ecf641da9a6440879ec7b70781bca60b  /root/tomcat_pid.sh
24160390d85b19d8e7d6d269498c09ba  /root/tomcat_restart.sh
94a1e8e7144e92845657331a574ae770  /root/tomcat.sh
cc8e3d3822571eed7ac560bb3c3cb817  /root/t.sh
ec2964730a61fa26bddf2dc356da97ae  /root/user_account.sh
08513e56cc81c307289842a7d1ac4d70  /root/user_del.sh
2997402ff8ac63e03cd14da95a779d5c  /root/user_get_passwd.sh
6f393917ff552c362d06534cb3e1420d  /root/zombie.sh
87f8ec13a80ccb2d3e8c1df86d5ba09f  /root/ztj.sh
abadded38ccb552aa2d9172ae0a57c07  /root/22.sh
077f7ff30b3007ce254c7d44cae38fc6  /root/account.sh
03cbf2d10d50746fb86e94f694aad4b2  /root/add_firewalld_rule.sh
e405bf595673bbaf42ff9f4e6de2e906  /root/auto_backup_system.sh
7e78a8d04caa8ca8f3757f926f4ba550  /root/awk.sh
089c45a871f48e68da3c7a60bb053ad8  /root/back_mysql.sh
1cb04050e0dc86392bee94cc389b50cd  /root/backup.sh
16448dbb3cc2d1b7145334dd751efc85  /root/check_rpm.sh
1cffe730bacaefa709f0d91fac9a2338  /root/chess.sh
e55364e9dbd6f7f545e978e7433b8dbc  /root/close_machines.sh
bb9e91368b934683b3a80aad445044df  /root/create_lv.sh
1b5f53b875e6ec13b5a7acf7c186c949  /root/crontab.sh
7b945b7807103a434bcd7da39750dcc9  /root/date.sh
5b5afcf02e40164bcfc757f87f2de186  /root/delete_file.sh
8e8b61930a78c7fb0639ef4c83029c02  /root/digital_file.sh
42a267fbcb4534c89f12cd8f9a432494  /root/disable_selinux.sh
80c59e472be05f5f893bc32dfcfb2f6a  /root/display_account.sh
2828df63478367db459560bccd7bc853  /root/display_cpu.sh
2614d5c2f4cb7416baa2bf91ad9d7975  /root/display_port.sh
7da454ec3a353e670aa294693923fb7f  /root/double-colored-ball.sh
0595112796702a3f0b21b1b9e6af6a72  /root/download_pic.sh
aff631987bcae9898557e81cc7a49589  /root/egrep.sh
e63f87f0ba4dcb32a047a62be8ce1e2a  /root/ens32_packet.sh
88501640262892522f94c704759ea848  /root/fibonacci_sequence.sh
1e43e8e08b2c098192c96ccdb1e8c8fa  /root/file_directory.sh
4305a47aa9f3b9174a972adc4c28943c  /root/file_limits.sh
d001522d2970095f441d4a6b3036ec69  /root/file.sh
b57d094ada003ac7e2d6a2f813716cdc  /root/generate_certificate.sh
a229be06f53405a9e20acdf1eafa20c9  /root/generate_random_code.sh
456d6d74e0161e410617354928798e2c  /root/generate_string_pass.sh
8568ee8df796d1017444569f4b78b50e  /root/generate_urandom.sh
169a4b10590f78801568d4b93d95f9d1  /root/generate_uuid.sh
f43f33189b4aedd733c0b7329dfb32b4  /root/graph.sh
9553211e8ab1b5a3ce9f91519ccc436b  /root/guess_number.sh
71479942334465095f3293f90c0c0708  /root/helloworld.sh
2bbbc99a9c0377be1166fc36f6e8d489  /root/hive.sh
404aa1e15cdcc1eb7c1d5dd8b184972c  /root/hostname.sh
51f3e35bb9e89ee05466c890485cddaf  /root/Jan-Ken-Punch.sh
1686e4f335b60709346111b8ef59df9d  /root/judge_data_type.sh
180dcfc527447eb4d9aa91267906ec78  /root/judge_leap_year.sh
5703767ef1800be6d380c7c1ef58df48  /root/judge_user_level.sh
3076afa0b954d46ece2ae942564bff75  /root/judge_user_passwd.sh
451643125b404b520332a8fc86600943  /root/judge_yes_no.sh
482ad555ef84ebc27707356ba4f860a2  /root/lamp.sh
89b393ffa1dc67f6eba3b6e662c2941e  /root/logback.sh
de23dac03b7a1605e4e8050355228299  /root/log_count.sh
9bcabaed41083d855000009665683d51  /root/lowercase_uppercase.sh
2fe3b02b3e0c5b8f8943cb681846cabf  /root/mac.sh
a494e7542e73445efb29b1b92cfb0cfa  /root/md5_check.sh
5adb4d9e4dc5fd645ef1ef19e06dbc60  /root/monitor_http.sh
2ca3d186123ef5aad4017a5a0dbcbd89  /root/multiplication_table.sh
7d51777107bd737ae13961902469b388  /root/mysql_ping.sh
7e60c8763bf2178d580a260f03f229bf  /root/parameter.sh
586b60a2a4c7b1f3ade6abc765b552ba  /root/process_bar.sh
4a64ac3f3cec2f66797d3f8c603b3977  /root/process.sh
3c65415d27bc732ed4df0dd000d03a08  /root/read.sh
4228892cc3773c218fbff0eae1203214  /root/root_count.sh
d390595fb42a38442ed3a9ab1e70a516  /root/rsyncd.sh
d773338a3f629291685be229eba690d6  /root/schedule-bak.sh
7bc4690db3d21c72500b5744e9dad4dd  /root/self-destruct.sh
4d83caa3605b09f7ea37992c31229d5c  /root/ssh_key.sh
f790df9b9e2387b1eff2903dfcf2c8cf  /root/statistic.sh
303188eccba9c4f0f7066a991a72f43a  /root/text.sh
7668d957183fe29a05830f0c8a80b563  /root/time.sh
da38a535ac71e7d4cd7c6e0f895281ec  /root/tmp.sh
ecf641da9a6440879ec7b70781bca60b  /root/tomcat_pid.sh
24160390d85b19d8e7d6d269498c09ba  /root/tomcat_restart.sh
94a1e8e7144e92845657331a574ae770  /root/tomcat.sh
cc8e3d3822571eed7ac560bb3c3cb817  /root/t.sh
ec2964730a61fa26bddf2dc356da97ae  /root/user_account.sh
08513e56cc81c307289842a7d1ac4d70  /root/user_del.sh
2997402ff8ac63e03cd14da95a779d5c  /root/user_get_passwd.sh
6f393917ff552c362d06534cb3e1420d  /root/zombie.sh
48640c19cd30834e51e9b094ea7fcd40  /root/ztj.sh
abadded38ccb552aa2d9172ae0a57c07  /root/22.sh
077f7ff30b3007ce254c7d44cae38fc6  /root/account.sh
03cbf2d10d50746fb86e94f694aad4b2  /root/add_firewalld_rule.sh
e405bf595673bbaf42ff9f4e6de2e906  /root/auto_backup_system.sh
7e78a8d04caa8ca8f3757f926f4ba550  /root/awk.sh
089c45a871f48e68da3c7a60bb053ad8  /root/back_mysql.sh
1cb04050e0dc86392bee94cc389b50cd  /root/backup.sh
16448dbb3cc2d1b7145334dd751efc85  /root/check_rpm.sh
1cffe730bacaefa709f0d91fac9a2338  /root/chess.sh
e55364e9dbd6f7f545e978e7433b8dbc  /root/close_machines.sh
bb9e91368b934683b3a80aad445044df  /root/create_lv.sh
1b5f53b875e6ec13b5a7acf7c186c949  /root/crontab.sh
7b945b7807103a434bcd7da39750dcc9  /root/date.sh
5b5afcf02e40164bcfc757f87f2de186  /root/delete_file.sh
8e8b61930a78c7fb0639ef4c83029c02  /root/digital_file.sh
42a267fbcb4534c89f12cd8f9a432494  /root/disable_selinux.sh
80c59e472be05f5f893bc32dfcfb2f6a  /root/display_account.sh
2828df63478367db459560bccd7bc853  /root/display_cpu.sh
2614d5c2f4cb7416baa2bf91ad9d7975  /root/display_port.sh
7da454ec3a353e670aa294693923fb7f  /root/double-colored-ball.sh
0595112796702a3f0b21b1b9e6af6a72  /root/download_pic.sh
aff631987bcae9898557e81cc7a49589  /root/egrep.sh
e63f87f0ba4dcb32a047a62be8ce1e2a  /root/ens32_packet.sh
88501640262892522f94c704759ea848  /root/fibonacci_sequence.sh
1e43e8e08b2c098192c96ccdb1e8c8fa  /root/file_directory.sh
4305a47aa9f3b9174a972adc4c28943c  /root/file_limits.sh
d001522d2970095f441d4a6b3036ec69  /root/file.sh
b57d094ada003ac7e2d6a2f813716cdc  /root/generate_certificate.sh
a229be06f53405a9e20acdf1eafa20c9  /root/generate_random_code.sh
456d6d74e0161e410617354928798e2c  /root/generate_string_pass.sh
8568ee8df796d1017444569f4b78b50e  /root/generate_urandom.sh
169a4b10590f78801568d4b93d95f9d1  /root/generate_uuid.sh
f43f33189b4aedd733c0b7329dfb32b4  /root/graph.sh
9553211e8ab1b5a3ce9f91519ccc436b  /root/guess_number.sh
71479942334465095f3293f90c0c0708  /root/helloworld.sh
2bbbc99a9c0377be1166fc36f6e8d489  /root/hive.sh
404aa1e15cdcc1eb7c1d5dd8b184972c  /root/hostname.sh
51f3e35bb9e89ee05466c890485cddaf  /root/Jan-Ken-Punch.sh
1686e4f335b60709346111b8ef59df9d  /root/judge_data_type.sh
180dcfc527447eb4d9aa91267906ec78  /root/judge_leap_year.sh
5703767ef1800be6d380c7c1ef58df48  /root/judge_user_level.sh
3076afa0b954d46ece2ae942564bff75  /root/judge_user_passwd.sh
451643125b404b520332a8fc86600943  /root/judge_yes_no.sh
482ad555ef84ebc27707356ba4f860a2  /root/lamp.sh
89b393ffa1dc67f6eba3b6e662c2941e  /root/logback.sh
de23dac03b7a1605e4e8050355228299  /root/log_count.sh
9bcabaed41083d855000009665683d51  /root/lowercase_uppercase.sh
2fe3b02b3e0c5b8f8943cb681846cabf  /root/mac.sh
a494e7542e73445efb29b1b92cfb0cfa  /root/md5_check.sh
5adb4d9e4dc5fd645ef1ef19e06dbc60  /root/monitor_http.sh
2ca3d186123ef5aad4017a5a0dbcbd89  /root/multiplication_table.sh
7d51777107bd737ae13961902469b388  /root/mysql_ping.sh
7e60c8763bf2178d580a260f03f229bf  /root/parameter.sh
586b60a2a4c7b1f3ade6abc765b552ba  /root/process_bar.sh
4a64ac3f3cec2f66797d3f8c603b3977  /root/process.sh
3c65415d27bc732ed4df0dd000d03a08  /root/read.sh
4228892cc3773c218fbff0eae1203214  /root/root_count.sh
d390595fb42a38442ed3a9ab1e70a516  /root/rsyncd.sh
d773338a3f629291685be229eba690d6  /root/schedule-bak.sh
7bc4690db3d21c72500b5744e9dad4dd  /root/self-destruct.sh
4d83caa3605b09f7ea37992c31229d5c  /root/ssh_key.sh
f790df9b9e2387b1eff2903dfcf2c8cf  /root/statistic.sh
303188eccba9c4f0f7066a991a72f43a  /root/text.sh
7668d957183fe29a05830f0c8a80b563  /root/time.sh
da38a535ac71e7d4cd7c6e0f895281ec  /root/tmp.sh
ecf641da9a6440879ec7b70781bca60b  /root/tomcat_pid.sh
24160390d85b19d8e7d6d269498c09ba  /root/tomcat_restart.sh
94a1e8e7144e92845657331a574ae770  /root/tomcat.sh
cc8e3d3822571eed7ac560bb3c3cb817  /root/t.sh
ec2964730a61fa26bddf2dc356da97ae  /root/user_account.sh
08513e56cc81c307289842a7d1ac4d70  /root/user_del.sh
2997402ff8ac63e03cd14da95a779d5c  /root/user_get_passwd.sh
6f393917ff552c362d06534cb3e1420d  /root/zombie.sh
48640c19cd30834e51e9b094ea7fcd40  /root/ztj.sh
abadded38ccb552aa2d9172ae0a57c07  /root/22.sh
077f7ff30b3007ce254c7d44cae38fc6  /root/account.sh
03cbf2d10d50746fb86e94f694aad4b2  /root/add_firewalld_rule.sh
e405bf595673bbaf42ff9f4e6de2e906  /root/auto_backup_system.sh
7e78a8d04caa8ca8f3757f926f4ba550  /root/awk.sh
089c45a871f48e68da3c7a60bb053ad8  /root/back_mysql.sh
1cb04050e0dc86392bee94cc389b50cd  /root/backup.sh
16448dbb3cc2d1b7145334dd751efc85  /root/check_rpm.sh
1cffe730bacaefa709f0d91fac9a2338  /root/chess.sh
e55364e9dbd6f7f545e978e7433b8dbc  /root/close_machines.sh
bb9e91368b934683b3a80aad445044df  /root/create_lv.sh
1b5f53b875e6ec13b5a7acf7c186c949  /root/crontab.sh
7b945b7807103a434bcd7da39750dcc9  /root/date.sh
5b5afcf02e40164bcfc757f87f2de186  /root/delete_file.sh
8e8b61930a78c7fb0639ef4c83029c02  /root/digital_file.sh
42a267fbcb4534c89f12cd8f9a432494  /root/disable_selinux.sh
80c59e472be05f5f893bc32dfcfb2f6a  /root/display_account.sh
2828df63478367db459560bccd7bc853  /root/display_cpu.sh
2614d5c2f4cb7416baa2bf91ad9d7975  /root/display_port.sh
7da454ec3a353e670aa294693923fb7f  /root/double-colored-ball.sh
0595112796702a3f0b21b1b9e6af6a72  /root/download_pic.sh
aff631987bcae9898557e81cc7a49589  /root/egrep.sh
e63f87f0ba4dcb32a047a62be8ce1e2a  /root/ens32_packet.sh
88501640262892522f94c704759ea848  /root/fibonacci_sequence.sh
1e43e8e08b2c098192c96ccdb1e8c8fa  /root/file_directory.sh
4305a47aa9f3b9174a972adc4c28943c  /root/file_limits.sh
d001522d2970095f441d4a6b3036ec69  /root/file.sh
b57d094ada003ac7e2d6a2f813716cdc  /root/generate_certificate.sh
a229be06f53405a9e20acdf1eafa20c9  /root/generate_random_code.sh
456d6d74e0161e410617354928798e2c  /root/generate_string_pass.sh
8568ee8df796d1017444569f4b78b50e  /root/generate_urandom.sh
169a4b10590f78801568d4b93d95f9d1  /root/generate_uuid.sh
f43f33189b4aedd733c0b7329dfb32b4  /root/graph.sh
9553211e8ab1b5a3ce9f91519ccc436b  /root/guess_number.sh
71479942334465095f3293f90c0c0708  /root/helloworld.sh
2bbbc99a9c0377be1166fc36f6e8d489  /root/hive.sh
404aa1e15cdcc1eb7c1d5dd8b184972c  /root/hostname.sh
51f3e35bb9e89ee05466c890485cddaf  /root/Jan-Ken-Punch.sh
1686e4f335b60709346111b8ef59df9d  /root/judge_data_type.sh
180dcfc527447eb4d9aa91267906ec78  /root/judge_leap_year.sh
5703767ef1800be6d380c7c1ef58df48  /root/judge_user_level.sh
3076afa0b954d46ece2ae942564bff75  /root/judge_user_passwd.sh
451643125b404b520332a8fc86600943  /root/judge_yes_no.sh
482ad555ef84ebc27707356ba4f860a2  /root/lamp.sh
89b393ffa1dc67f6eba3b6e662c2941e  /root/logback.sh
de23dac03b7a1605e4e8050355228299  /root/log_count.sh
9bcabaed41083d855000009665683d51  /root/lowercase_uppercase.sh
2fe3b02b3e0c5b8f8943cb681846cabf  /root/mac.sh
a494e7542e73445efb29b1b92cfb0cfa  /root/md5_check.sh
5adb4d9e4dc5fd645ef1ef19e06dbc60  /root/monitor_http.sh
2ca3d186123ef5aad4017a5a0dbcbd89  /root/multiplication_table.sh
7d51777107bd737ae13961902469b388  /root/mysql_ping.sh
7e60c8763bf2178d580a260f03f229bf  /root/parameter.sh
586b60a2a4c7b1f3ade6abc765b552ba  /root/process_bar.sh
4a64ac3f3cec2f66797d3f8c603b3977  /root/process.sh
3c65415d27bc732ed4df0dd000d03a08  /root/read.sh
4228892cc3773c218fbff0eae1203214  /root/root_count.sh
d390595fb42a38442ed3a9ab1e70a516  /root/rsyncd.sh
d773338a3f629291685be229eba690d6  /root/schedule-bak.sh
7bc4690db3d21c72500b5744e9dad4dd  /root/self-destruct.sh
4d83caa3605b09f7ea37992c31229d5c  /root/ssh_key.sh
f790df9b9e2387b1eff2903dfcf2c8cf  /root/statistic.sh
303188eccba9c4f0f7066a991a72f43a  /root/text.sh
7668d957183fe29a05830f0c8a80b563  /root/time.sh
da38a535ac71e7d4cd7c6e0f895281ec  /root/tmp.sh
ecf641da9a6440879ec7b70781bca60b  /root/tomcat_pid.sh
24160390d85b19d8e7d6d269498c09ba  /root/tomcat_restart.sh
94a1e8e7144e92845657331a574ae770  /root/tomcat.sh
cc8e3d3822571eed7ac560bb3c3cb817  /root/t.sh
ec2964730a61fa26bddf2dc356da97ae  /root/user_account.sh
08513e56cc81c307289842a7d1ac4d70  /root/user_del.sh
2997402ff8ac63e03cd14da95a779d5c  /root/user_get_passwd.sh
6f393917ff552c362d06534cb3e1420d  /root/zombie.sh
32e7bf722b98a20a7db0c3e27cde2f39  /root/ztj.sh
abadded38ccb552aa2d9172ae0a57c07  /root/22.sh
077f7ff30b3007ce254c7d44cae38fc6  /root/account.sh
03cbf2d10d50746fb86e94f694aad4b2  /root/add_firewalld_rule.sh
e405bf595673bbaf42ff9f4e6de2e906  /root/auto_backup_system.sh
7e78a8d04caa8ca8f3757f926f4ba550  /root/awk.sh
089c45a871f48e68da3c7a60bb053ad8  /root/back_mysql.sh
1cb04050e0dc86392bee94cc389b50cd  /root/backup.sh
16448dbb3cc2d1b7145334dd751efc85  /root/check_rpm.sh
1cffe730bacaefa709f0d91fac9a2338  /root/chess.sh
e55364e9dbd6f7f545e978e7433b8dbc  /root/close_machines.sh
bb9e91368b934683b3a80aad445044df  /root/create_lv.sh
1b5f53b875e6ec13b5a7acf7c186c949  /root/crontab.sh
7b945b7807103a434bcd7da39750dcc9  /root/date.sh
5b5afcf02e40164bcfc757f87f2de186  /root/delete_file.sh
8e8b61930a78c7fb0639ef4c83029c02  /root/digital_file.sh
42a267fbcb4534c89f12cd8f9a432494  /root/disable_selinux.sh
80c59e472be05f5f893bc32dfcfb2f6a  /root/display_account.sh
2828df63478367db459560bccd7bc853  /root/display_cpu.sh
2614d5c2f4cb7416baa2bf91ad9d7975  /root/display_port.sh
7da454ec3a353e670aa294693923fb7f  /root/double-colored-ball.sh
0595112796702a3f0b21b1b9e6af6a72  /root/download_pic.sh
aff631987bcae9898557e81cc7a49589  /root/egrep.sh
e63f87f0ba4dcb32a047a62be8ce1e2a  /root/ens32_packet.sh
88501640262892522f94c704759ea848  /root/fibonacci_sequence.sh
1e43e8e08b2c098192c96ccdb1e8c8fa  /root/file_directory.sh
4305a47aa9f3b9174a972adc4c28943c  /root/file_limits.sh
d001522d2970095f441d4a6b3036ec69  /root/file.sh
b57d094ada003ac7e2d6a2f813716cdc  /root/generate_certificate.sh
a229be06f53405a9e20acdf1eafa20c9  /root/generate_random_code.sh
456d6d74e0161e410617354928798e2c  /root/generate_string_pass.sh
8568ee8df796d1017444569f4b78b50e  /root/generate_urandom.sh
169a4b10590f78801568d4b93d95f9d1  /root/generate_uuid.sh
f43f33189b4aedd733c0b7329dfb32b4  /root/graph.sh
9553211e8ab1b5a3ce9f91519ccc436b  /root/guess_number.sh
71479942334465095f3293f90c0c0708  /root/helloworld.sh
2bbbc99a9c0377be1166fc36f6e8d489  /root/hive.sh
404aa1e15cdcc1eb7c1d5dd8b184972c  /root/hostname.sh
51f3e35bb9e89ee05466c890485cddaf  /root/Jan-Ken-Punch.sh
1686e4f335b60709346111b8ef59df9d  /root/judge_data_type.sh
180dcfc527447eb4d9aa91267906ec78  /root/judge_leap_year.sh
5703767ef1800be6d380c7c1ef58df48  /root/judge_user_level.sh
3076afa0b954d46ece2ae942564bff75  /root/judge_user_passwd.sh
451643125b404b520332a8fc86600943  /root/judge_yes_no.sh
482ad555ef84ebc27707356ba4f860a2  /root/lamp.sh
89b393ffa1dc67f6eba3b6e662c2941e  /root/logback.sh
de23dac03b7a1605e4e8050355228299  /root/log_count.sh
9bcabaed41083d855000009665683d51  /root/lowercase_uppercase.sh
2fe3b02b3e0c5b8f8943cb681846cabf  /root/mac.sh
a494e7542e73445efb29b1b92cfb0cfa  /root/md5_check.sh
5adb4d9e4dc5fd645ef1ef19e06dbc60  /root/monitor_http.sh
2ca3d186123ef5aad4017a5a0dbcbd89  /root/multiplication_table.sh
7d51777107bd737ae13961902469b388  /root/mysql_ping.sh
7e60c8763bf2178d580a260f03f229bf  /root/parameter.sh
586b60a2a4c7b1f3ade6abc765b552ba  /root/process_bar.sh
4a64ac3f3cec2f66797d3f8c603b3977  /root/process.sh
3c65415d27bc732ed4df0dd000d03a08  /root/read.sh
4228892cc3773c218fbff0eae1203214  /root/root_count.sh
d390595fb42a38442ed3a9ab1e70a516  /root/rsyncd.sh
d773338a3f629291685be229eba690d6  /root/schedule-bak.sh
7bc4690db3d21c72500b5744e9dad4dd  /root/self-destruct.sh
4d83caa3605b09f7ea37992c31229d5c  /root/ssh_key.sh
f790df9b9e2387b1eff2903dfcf2c8cf  /root/statistic.sh
303188eccba9c4f0f7066a991a72f43a  /root/text.sh
7668d957183fe29a05830f0c8a80b563  /root/time.sh
da38a535ac71e7d4cd7c6e0f895281ec  /root/tmp.sh
ecf641da9a6440879ec7b70781bca60b  /root/tomcat_pid.sh
24160390d85b19d8e7d6d269498c09ba  /root/tomcat_restart.sh
94a1e8e7144e92845657331a574ae770  /root/tomcat.sh
cc8e3d3822571eed7ac560bb3c3cb817  /root/t.sh
ec2964730a61fa26bddf2dc356da97ae  /root/user_account.sh
08513e56cc81c307289842a7d1ac4d70  /root/user_del.sh
2997402ff8ac63e03cd14da95a779d5c  /root/user_get_passwd.sh
6f393917ff552c362d06534cb3e1420d  /root/zombie.sh
32e7bf722b98a20a7db0c3e27cde2f39  /root/ztj.sh
[root@logstash ~]# md5sum -c /tmp/md5_check.log |grep -i failed
/root/ztj.sh: FAILED
/root/ztj.sh: FAILED
/root/ztj.sh: FAILED
md5sum: WARNING: 3 computed checksums did NOT match
[root@logstash ~]#
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80.
  • 81.
  • 82.
  • 83.
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 89.
  • 90.
  • 91.
  • 92.
  • 93.
  • 94.
  • 95.
  • 96.
  • 97.
  • 98.
  • 99.
  • 100.
  • 101.
  • 102.
  • 103.
  • 104.
  • 105.
  • 106.
  • 107.
  • 108.
  • 109.
  • 110.
  • 111.
  • 112.
  • 113.
  • 114.
  • 115.
  • 116.
  • 117.
  • 118.
  • 119.
  • 120.
  • 121.
  • 122.
  • 123.
  • 124.
  • 125.
  • 126.
  • 127.
  • 128.
  • 129.
  • 130.
  • 131.
  • 132.
  • 133.
  • 134.
  • 135.
  • 136.
  • 137.
  • 138.
  • 139.
  • 140.
  • 141.
  • 142.
  • 143.
  • 144.
  • 145.
  • 146.
  • 147.
  • 148.
  • 149.
  • 150.
  • 151.
  • 152.
  • 153.
  • 154.
  • 155.
  • 156.
  • 157.
  • 158.
  • 159.
  • 160.
  • 161.
  • 162.
  • 163.
  • 164.
  • 165.
  • 166.
  • 167.
  • 168.
  • 169.
  • 170.
  • 171.
  • 172.
  • 173.
  • 174.
  • 175.
  • 176.
  • 177.
  • 178.
  • 179.
  • 180.
  • 181.
  • 182.
  • 183.
  • 184.
  • 185.
  • 186.
  • 187.
  • 188.
  • 189.
  • 190.
  • 191.
  • 192.
  • 193.
  • 194.
  • 195.
  • 196.
  • 197.
  • 198.
  • 199.
  • 200.
  • 201.
  • 202.
  • 203.
  • 204.
  • 205.
  • 206.
  • 207.
  • 208.
  • 209.
  • 210.
  • 211.
  • 212.
  • 213.
  • 214.
  • 215.
  • 216.
  • 217.
  • 218.
  • 219.
  • 220.
  • 221.
  • 222.
  • 223.
  • 224.
  • 225.
  • 226.
  • 227.
  • 228.
  • 229.
  • 230.
  • 231.
  • 232.
  • 233.
  • 234.
  • 235.
  • 236.
  • 237.
  • 238.
  • 239.
  • 240.
  • 241.
  • 242.
  • 243.
  • 244.
  • 245.
  • 246.
  • 247.
  • 248.
  • 249.
  • 250.
  • 251.
  • 252.
  • 253.
  • 254.
  • 255.
  • 256.
  • 257.
  • 258.
  • 259.
  • 260.
  • 261.
  • 262.
  • 263.
  • 264.
  • 265.
  • 266.
  • 267.
  • 268.
  • 269.
  • 270.
  • 271.
  • 272.
  • 273.
  • 274.
  • 275.
  • 276.
  • 277.
  • 278.
  • 279.
  • 280.
  • 281.
  • 282.
  • 283.
  • 284.
  • 285.
  • 286.
  • 287.
  • 288.
  • 289.
  • 290.
  • 291.
  • 292.
  • 293.
  • 294.
  • 295.
  • 296.
  • 297.
  • 298.
  • 299.
  • 300.
  • 301.
  • 302.
  • 303.
  • 304.
  • 305.
  • 306.
  • 307.
  • 308.
  • 309.
  • 310.
  • 311.
  • 312.
  • 313.
  • 314.
  • 315.
  • 316.
  • 317.
  • 318.
  • 319.
  • 320.
  • 321.
  • 322.
  • 323.
  • 324.
  • 325.
  • 326.
  • 327.
  • 328.
  • 329.
  • 330.
  • 331.
  • 332.
  • 333.
  • 334.
  • 335.
  • 336.
  • 337.
  • 338.
  • 339.
  • 340.
  • 341.
  • 342.
  • 343.
  • 344.
  • 345.
  • 346.
  • 347.
  • 348.
  • 349.
  • 350.
  • 351.
  • 352.
  • 353.
  • 354.
  • 355.
  • 356.
  • 357.
  • 358.
  • 359.
  • 360.
  • 361.
  • 362.
  • 363.
  • 364.
  • 365.
  • 366.
  • 367.
  • 368.
  • 369.
  • 370.
  • 371.
  • 372.
  • 373.
  • 374.
  • 375.
  • 376.
  • 377.
  • 378.
  • 379.

-c:read MD5 sums from the FILEs and check them