Search found 166 matches

by a24uall
Wed Mar 11, 2015 7:10 pm
Forum: COMPRESSION / DECOMPRESSION
Topic: How to extract a part of the compressed file
Replies: 0
Views: 4816

How to extract a part of the compressed file

How to extract a part of the big compressed file. View the files in the backup tar archive. tar -tvzf filename.tar.gz You can also grep a part root@d02-03-2-4 [/backup/cpbackup/daily]# tar -tvzf filename.tar.gz | grep mysql drwx------ root/root 0 2015-03-10 07:58:40 filename/mysql/ -rw-r--r-- root/r...
by a24uall
Sun Sep 28, 2014 10:39 am
Forum: Install Commands
Topic: Install nload
Replies: 0
Views: 4823

Install nload

For Centos 5 64 bit

Code: Select all

cd /usr/local/src/
wget http://pkgs.repoforge.org/nload/nload-0.7.4-1.el5.rf.x86_64.rpm
rpm -Uvh nload-0.7.4-1.el5.rf.x86_64.rpm
If any dependency try

Code: Select all

yum install nload-0.7.4-1.el5.rf.x86_64.rpm
by a24uall
Thu Sep 18, 2014 11:30 am
Forum: Caching Techniques
Topic: How to install memcached
Replies: 1
Views: 5400

Re: How to install memcached

Easy option to install memcached in cPanel servers and centos 6 and higher.

Open port 11211 in firewall.

Code: Select all

yum install memcached
 

Code: Select all

pecl install memcache

Code: Select all

service memcached start

Code: Select all

chkconfig memcached on
by a24uall
Mon Feb 17, 2014 8:01 am
Forum: Basic (Small scripts)
Topic: How to find all the tar.gz files and its size
Replies: 0
Views: 5045

How to find all the tar.gz files and its size

Below command will list all the tar.gz files and its size.

Code: Select all

find /home/*/ -iname '*.tar.gz' -exec du -sh {} \; > /root/backups_list.txt
by a24uall
Wed Feb 05, 2014 6:02 pm
Forum: Useful Commands
Topic: How to grep dcpumonview output?
Replies: 0
Views: 4917

How to grep dcpumonview output?

Replace "user_name" with a username you are searching for.
/usr/local/cpanel/bin/dcpumonview | grep user_name | sed 's/<[^>]*>/ /g'
by a24uall
Thu Jan 16, 2014 5:51 pm
Forum: SSH
Topic: ssh_exchange_identification connection closed by remote host
Replies: 0
Views: 4642

ssh_exchange_identification connection closed by remote host

Check if there is any attack from the log :
/var/log/auth.log
by a24uall
Wed Dec 25, 2013 11:59 am
Forum: Miscellaneous
Topic: Find list of files modified in the last X days
Replies: 1
Views: 5243

Re: Find list of files modified in the last X days

How to move files older than X days to a new folder
find /source/folder/path/ -mtime +X -exec mv {} /destination/folder/path/ \;
Example
cd /home/arun/mail/arunp.in/
find cur/ -mtime +365 -exec mv {} /home/arun/mail/arunp.in/arun/.2012/cur/ \;
by a24uall
Sat Dec 07, 2013 9:41 am
Forum: General
Topic: How to increase the default disk usage limit for the FTP.
Replies: 0
Views: 4781

How to increase the default disk usage limit for the FTP.

Normally pureftp has the disk usage limit set max to 98%.
ie if /home is 98% we cannot ftp further. To increase the limit edit the below file and make it 100 as shown.
vi /etc/pure-ftpd.conf
MaxDiskUsage 100
save and exit
by a24uall
Sat Dec 07, 2013 9:38 am
Forum: Disk Cleanup
Topic: How to find and delete error files in /home.
Replies: 0
Views: 4826

How to find and delete error files in /home.

Below command will get the list of error log which are more than 1Gb in size.
find /home -type f -name "error_log" -size +100000 > /home/1gb_error.txt
by a24uall
Sat Nov 30, 2013 4:35 pm
Forum: Errors in Terminal
Topic: Mongodb wont start ERROR: child process failed, exited with
Replies: 0
Views: 11582

Mongodb wont start ERROR: child process failed, exited with

After installation mongodb wont start and the error I receive is : Starting mongod: about to fork child process, waiting until server is ready for connections. ERROR: child process failed, exited with error number 100 Error log shows : ERROR: Insufficient free space for journal files [root@ip-172-31...

Go to advanced search