хочу сюди!
 

Natalia

43 роки, близнюки, познайомиться з хлопцем у віці 35-50 років

Замітки з міткою «cmds»

Расхождение между размером файлов и реально занятым местом

Это случается при наличии множества мелких файлов и включенной опции ext_attr

Для фикса
1) выключаем selinux (иначе он будет всегда их пересоздавать, а если запустить ядро из которого они выкомпелины, система зависнет)

cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

Дальше вырубаем расширенные атрибуты:
tune2fs -g 89 -L maildata -o bsdgroups,^user_xattr,^acl,uid16,journal_data_writeback -u 89 /dev/sda4
debugfs -w /dev/sda4 -R "features ^resize_inode ^ext_attr"                                           
e2fsck -y -f /dev/sda4                                                                              

Операцию повторяем для каждого раздела.

Распаковка RPM-а

rpm2cpio filename | cpio -i --make-directories

Добавление в стартап RedHat, Centos, etc

chkconfig --add datamanager.sh
chkconfig --list

ntsysv

Exim commands

exim -qff => flush exim queue
exim -M email-id => Force delivery of one message
exim -qf => Force another queue run
exim -qff => Force another queue run and attempt to flush the frozen message
exim -Mvl messageID => View the log for the message
exim -Mvb messageID => View the body of the message
exim -Mvh messageID => View the header of the message
exim -Mrm messageID => Remove message without sending any error message
exim -Mg messageID => Giveup and fail message to bounce the message to the Sender
exim -bpr | grep "<" | wc -l => How many mails on the Queue
exim -bpr | grep frozen | wc -l => How many Frozen mails on the queue
exim -bpr | grep frozen | awk {'print $3'} | xargs exim -Mrm => Deleteing Frozen Messages
exim -bpc => find out, how many mails are there in the mail queue
exim -bp => check the mails in the queue