Linux

Download list of url

How to dowload urls from a file

How to download a list of url's freom a files? # cat urls.txt | wget -i- -T 10 -t 3 --waitretry 1 # cat urls.txt | xargs -n1 curl -O --max-time 10 --retry 3 --retry-delay 1 # wget -i urls.txt -T 10 -t 3 --waitretry 1 --waitretry=seconds:If you don't want Wget to wait between  ..

Difference between opt and usr local

Why use /opt for installation

When we frequently install multiple software, different questions might arise in our mind like, What is the difference between /opt and /usr/local directories? Why some of the third party softwares are installed in /opt? why we install packages in /usr/local? /opt is for third-party applications that don't rely on any dependencies outside the scope  ..

How to find running java process linux

Jps tool to view all running java process

In linux machine you can view all the running Java processes in a local machine using jps command # jps -v OUTPUT 1733 -Xms512M -Xmx1024M -Djava.endorsed.dirs=../common/endorsed -verbose abort 2892 Jps -Dapplication.home=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0 -Xms8m Jps is a sime utility which is used to view all the running java process in linux machine.  ..

How to install nginx

NGINX - JSP servers

Nginx is commonly used by hosting providers to execute multiple tomcat daemon on same server. Below steps will provide you an simple idea to install the scripts on server. Login to SSH and do this cd /usr/local/src wget http://nginxcp.com/latest/nginxadmin.tar tar xf nginxadmin.tar cd publicnginx ./pythonfix ./nginxinstaller install Its Done, Now go to  ..

How to install configure unicode font

Steps to install other fonts in Linux

How to Install and configure Unicode TrueType fonts in Linux? Uncompress the downloaded font archive to a directory and add it to the font path, a list of directories containing fonts: 1. Uncompress the archive # tar xvzf utf8.tar.gz or # tar xvjf arial.tar.bz2 2. Create a directory for new fonts # mkdir  ..

Simple understanding of dns

How does dns works

How does the DNS works? 1) A User opens a web browser and tries to connect to www.google.com. The operating system not knowing the IP Address for www.google.com, asks the ISPs DNS Server for this information. 2) The ISPs DNS Server does not know this information, so it connects to a Root  ..

Nagios error command check nrpe not defined

Error NRPE: Command check_nrpe

The error "NRPE: Command 'check_nrpe' not defined" is received, if we have not added the required entry in "/usr/local/nagios/etc/nrpe.cfg" in the server being monitored. Edit the file in the server which is to be monitored and add a line as below command[check_dns]=/usr/local/nagios/libexec/check_dns -H localhost and restart the xinetd daemon . To restart xinetd  ..

Error critical could not interpret output from ping

Ping command error

Nagios monitoring for ping may result in the following error # /bin/ping -n -U -w 10 -c 5 localhost CRITICAL - Could not interpret output from ping command The above error is received because the ping command may not have permission to be executed by a user. You can execute the ping  ..

How to set java home for all users

To set JAVA_HOME for all users

In general JAVA_HOME is only set for specific users in linux servers, but sometimes there might be situations to set JAVA_HOME PATH for all the users in linux development servers. Below is the simple trick to set the JAVA_HOME PATH for all the users in linux server. To set JAVA_HOME for  ..

Nagios handy commands examples

Commands used in nagios clients nrpe.cfg

Below are some of the handy commands which are used in nagios client configuration. Nagios clients file monitors the client and it send report to server. Below commands are few useful tips which will be very much useful when you configure the nagios. nagios is one of the best monitoring  ..

Nagios could not parse argument dns check

Error check_dns: Could not parse arguments

Some time we might get the following error "check_dns: Could not parse arguments" in nagios monitoring server when you try to monitor a host abc, it means proper that arguments for the command is not set in "/usr/local/nagios/etc/nrpe.cfg" for the check_dns command Command[check_dns]=/usr/local/nagios/libexec/check_dns -H localhost You would have missed -H  ..

Command to find postfix mail queue size

Syntax to find mail queue size

You can use the below command to find the mail queue size in postfix # postqueue -f When there is critical issue in mail server, you can use the above command to ensure the queue size of mail server. This command will help you to find the size of mail  ..

How to configure n add svn user

Installing sub version on linux server

The below example shows simple configuration of svn server on linux server, most of the server has same kind of configuration or setup Login as root and install required svn modules # su # yum install mod_dav_svn subversion Apache Modules tobe enabled for SVN LoadModule dav_svn_module modules/mod_dav_svn.so   ..

Usr bin find argument list too long

Unable to remove files list too long

When I was trying to find and remove particular files from a directory, I was unable to remove those files from directory and I received the error as /usr/bin/find argument list too long. I executed the below command. # find ./ -name '*.log' -mtime +10 -exec rm {} \; This error  ..

How to find firmware version

Linux command to find hardware firmware version

How to find out the firmware version in linux? Linux has given you various option to find out the firmware version. Linux is an wonderful operating system and many peoples love who are using it in their daily life. The firmware version can be easily checked out in Linux by using  ..

Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Next >

Tech Bluff