Search found 166 matches
- Fri Nov 29, 2013 7:49 am
- Forum: Webservers Installation
- Topic: How to install nodejs
- Replies: 0
- Views: 7038
How to install nodejs
How to install node. Install compilers For 64 bit arch use the below command : yum install gcc gcc-c++ compat-gcc-64 compat-gcc-64-c++ For 32 bit arch use the below command : yum install gcc gcc-c++ compat-gcc-32 compat-gcc-32-c++ Install git yum install git git clone git://github.com/ry/node.git [r...
- Tue Nov 19, 2013 10:48 am
- Forum: Disk Cleanup
- Topic: How to find and delete tar.gz backup files in /home.
- Replies: 0
- Views: 3394
How to find and delete tar.gz backup files in /home.
find /home/ -name '*.tar.gz' > /root/backupfiles.txt
- Sat Nov 09, 2013 9:42 am
- Forum: Basic (Small scripts)
- Topic: How to cut/sort a specific part of the log file
- Replies: 1
- Views: 2752
Re: How to cut/sort a specific part of the log file
How to SORT the result we have cut just now. tail -100 /var/log/messages | awk {'print $5'} | sort root@server [~]# tail -100 /var/log/messages | awk {'print $5'} | sort kernel: kernel: kernel: kernel: kernel: kernel: kernel: kernel: kernel: kernel: kernel: kernel: kernel: kernel: kernel: named[2252...
- Sat Nov 09, 2013 9:40 am
- Forum: Basic (Small scripts)
- Topic: How to cut/sort a specific part of the log file
- Replies: 1
- Views: 2752
How to cut/sort a specific part of the log file
tail -100 /var/log/messages | awk {'print $3'}
Code: Select all
root@server [~]# tail -100 /var/log/messages | awk {'print $3'}
21:42:06
21:42:06
21:42:10
21:42:10
- Sat Nov 09, 2013 7:52 am
- Forum: Basic (Small scripts)
- Topic: How to print contents of a text file using for loop
- Replies: 0
- Views: 3224
How to print contents of a text file using for loop
for i in `cat cloudflare.txt`; do echo $i; done root@server [~]# for i in `cat cloudflare.txt`; do echo $i; done 204.93.240.0/24 204.93.177.0/24 199.27.128.0/21 173.245.48.0/20 103.21.244.0/22 103.22.200.0/22 103.31.4.0/22 141.101.64.0/18 108.162.192.0/18 190.93.240.0/20 188.114.96.0/20 197.234.240...
- Wed Nov 06, 2013 1:56 pm
- Forum: MYSQL ERRORS
- Topic: This user exists in the database! + cpanel
- Replies: 0
- Views: 6962
This user exists in the database! + cpanel
Login to Mysql and try to delete the user mysql> DROP user gautham_osc2@localhost; Try to create the database again and if it still throws the above error, open the below file and delete any instance of the database user. vi /var/cpanel/databases/users.db mysql> use mysql; mysql> select User, Host f...
- Tue Oct 15, 2013 7:13 pm
- Forum: Basic Commands
- Topic: TOP command study.
- Replies: 0
- Views: 7363
TOP command study.
%si --- > network io
- Mon Oct 14, 2013 8:31 am
- Forum: Disk Cleanup
- Topic: How to find and delete core dump files in /home.
- Replies: 0
- Views: 3268
How to find and delete core dump files in /home.
use the below command to fing the core dumb files.
find /home -type f -regex ".*/core\.[0-9]*$"
- Wed Sep 25, 2013 9:02 am
- Forum: DOS
- Topic: Ddos on dns
- Replies: 0
- Views: 6838
Ddos on dns
Shows the number of denied dns queries to the server from the specific external Ip address grep -i named /var/log/messages | grep -i Sep\ 23| grep denied | awk '{ print $7 }'| cut -d \# -f 1 | sort | uniq -c | sort -n -r | head -n 5 Top denied queries sorted by domains: grep named /var/log/messages ...
- Fri Aug 30, 2013 10:47 am
- Forum: cPanel Scripts
- Topic: How to update phpmyadmin squirrelmail horde & roundcube
- Replies: 0
- Views: 6820
How to update phpmyadmin squirrelmail horde & roundcube
cPanel scripts to update phpmyadmin squirrelmail horde & roundcube
/usr/local/cpanel/bin/update-squirrelmail --force
/usr/local/cpanel/bin/update-horde --force
/usr/local/cpanel/bin/update-roundcube --force
/usr/local/cpanel/bin/updatephpmyadmin --force