Archive for April, 2011

Не удаляемые файлы.

Friday, April 15th, 2011

Как защитит наиболее важные файлы от случайного удаления или изменения (так что бы даже root не смог их удалить)? The chflags utility modifies the file flags of the listed files as specified by the flags operand.FreeBSD offers write protection, you need to to set special bit call immutable. Once this bit ...

перенос /usr или /var с / на другой диск/радел

Friday, April 15th, 2011

[sourcecode language="bash"]cd /usr tar -cvf /user/usr.tar . cd /user tar -xvpf ./usr.tar[/sourcecode]

change MAC on link freebsd

Friday, April 15th, 2011

добавляем в /etc/rc.conf [sourcecode language="bash"]ifconfig_em0="inet 192.168.1.1 netmask 255.255.255.0" ifconfig_em0_alias0="link 00:12:34:56:78:90"[/sourcecode]

exim frozen message

Thursday, April 7th, 2011

Sometimes there can be so many frozen mails in the Exim mail queue. To know the number of frozen mails in the mail queue, you can use the following command [sourcecode language="bash"]exim -bpr | grep frozen | wc -l[/sourcecode] In order to remove all frozen mails from the Exim mail queue, ...

как убить долгий запрос

Thursday, April 7th, 2011

вывод что выполняеть щаз: [sourcecode language="sql"]select * from pg_stat_activity;[/sourcecode] отменить [sourcecode language="sql"]SELECT pg_cancel_backend(pid of the postgres process);[/sourcecode]