Finding stuff in linux

http://www.wikihow.com/Find-a-File-in-Linux find / -type f -iname “libphp5.so” find / -type d -iname “ibdata1” find / -type f -iname “*arcconf” grep -R ‘AllowNoPassword’ / egrep ‘User’ /etc/apache2/apache2.conf grep DocumentRoot /etc/apache2/apache2.conf To find files larger than 100MB, use this command: find / -type f -size +100000k -exec du -h {} \; Search within files for specific text:…

Exim relay setup

https://100tb.com/community/knowledgebase/display/HOW/Configuring+SMTP+Relay+Server Key points of trouble– Make sure the hostname on each server and relay is different and had correct DNS records. Make sure that you have added a valid SPF records for every domain as described in our article.

Diagnosing Hard Drive read

https://www.lisenet.com/2014/measure-and-troubleshoot-linux-disk-io-resource-usage/ smartctl -a /dev/sda   SMART attributes to watch out for:   ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000b 100 100 050 Pre-fail Always – 0 2 Throughput_Performance 0x0005 100 100 050 Pre-fail Offline – 0 3 Spin_Up_Time 0x0027 100 100 001 Pre-fail Always – 12029 4 Start_Stop_Count 0x0032…

Cronjobs

http://superuser.com/questions/170866/how-to-run-a-cron-job-as-a-specific-user crontab -u <username> -e 0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1 30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1 35 3 * * * /usr/local/cpanel/scripts/upcp –cron 0 1 * * * /usr/local/cpanel/scripts/cpbackup 0 2 * * * /usr/local/cpanel/bin/backup 35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check 45 */4 *…

Blacklist removal links

  Unfortunately due to the limited availability of IP addresses sometimes they are re-used from sources that have been black listed in the past. Generally blacklists are updated within 30 days of an IP not being reported for spam. However many services like Microsoft, Google, Yahoo and others, have taken to using their own systems…

Finding hard drive serial numbers in Linux and Windows

Finding hard drive serial numbers in Linux and Windows

In Linux I prefer using smartctl smartctl -i /dev/sda or hdparm -I /dev/sda | grep Serial Megacli RAid card — megacli -PDList -aALL or hdparm -I /dev/sdX | grep -i ‘serial’ Adaptec —- /usr/StorMan/arcconf getconfig 1 ================================ For Windows https://whatsonmypc.wordpress.com/2011/09/01/wmic/ If you have many hard drives like me, use this instead to help you know…

Finding stuff in linux

Finding stuff in linux

ttp://www.wikihow.com/Find-a-File-in-Linux find / -type f -iname “<file you want to find>” Examples find / -type f -iname “libphp5.so” find / -type d -iname “ibdata1” find / -type f -iname “*arcconf” grep -R ‘AllowNoPassword’ / egrep ‘User’ /etc/apache2/apache2.conf grep DocumentRoot /etc/apache2/apache2.conf To find files larger than 100MB, use this command: find / -type f -size +100000k…