Linux
Search files with specific keyword
While you are using LINUX as a development server you will might come across in such a situation and alter or modify files which has a specific keyword. In such situation you can use the below commands to find out the files which has a specific word or keyword.
..
Facts of iphone
Memory Space and Battery:
The real iPhone has no memory space or card slots. It comes with one SIM card slot on top, and the batteries are not replaceable by the user, means the battery is not easy to take of from the iPhone with a sliding door. If any ..
New bioinformatic applications
The creation of many new bioinformatic applications is largely a response to the biological community aggregating types of knowledge and developing new experimental techniques. The development of bioinformatic applications can be broken down into two main tasks: data management and biological analysis. The first task generally involves aggregating sequences (strings ..
SVN download particular revision
SVN: Download a specific version or revision of file
Command to download a specific version or revision of a file from the server repository
# svn co filename.txt -r 1
The above command will download version 1 of filname.txt file
SVN is a version control, from which we can check-in ..
Linux find hardware details
I was searching on internet to find hardware details of my linux server. I made this handy commands, so that it can be used to find the firmware version, servers serial number and hardware information of a server.
FInd ethernet driver, driver version, firmware version
# /sbin/ethtool -i eth0
OUTPUT:
driver: bnx2
..
Change and copy users home directory
The default home directory for creating a user is /home
# HOME=/home
Change and copy users home directory
# usermod -m -d /path/to/new/home/dir userNameHere
Some time we would like to change users home directory, where a user is alredy created. If the user have already start using the home directory and if ..
Missing uuid or uuid.h in redhat
When I was working with the deployment team today to install some c++ modules. We tried to run the command 'make' and it told us that it could not find uuid.h. This happened on a redhat 5.5 or redhat 6 operating system. When I did the deployment on the ubuntu ..
Find server model and processor used
How to find load averace from /proc virtual filesystem?
How to find number Server model?
How to find how many number of processor is added in linux server?
Linux command to find load average from /proc
# cat /proc/loadavg
0.09 0.06 0.06 1/176 30622
Linux command to find the Server model
# cat /proc/cpuinfo ..
Increase upload_max_filesize to import file
When you try to import files fore than 10 MB, the xampp will not allow you to import such database or it will allow to upload more than 10MB. To increase the upload or import option you have to edit php.ini option.
Step 1: In terminal,
# vi /opt/lampp/etc/php.ini
Step 2: To ..
How to view the message locked in queue
Most of the linux servers use, exim mail server. In exim mail server how to view the message locked in queue? You can view the exim mail queue by using the below command.
Command to view message body
# exim -Mvb
Command to view message header
# exim -Mvh
..
Tc command example
To check if there is no traffic shaper run the command tc class show dev eth0
# tc class show dev eth0
If there is no output the traffic shaper is disabled.
How to stop traffic shaper in paralles
# service vz shaperoff
tc command helps you to shape or control, HTTP Outgoing ..
Error - Running Transaction Test
When I was running trying to install or update a new package through yum, YUM was getting hang or the yum enters into sleep state with out installing the package. The yum program hungs when it was executing Transaction Test. How to resolve this running transaction test error.
yum command works ..
How Many Volt Consumed by linux laptop
In linux you can find, how many voltage is consumed by your laptop,
Goto /proc/acpi/battery directory and go to directory name based on your battery type (i.e. C1AC)
# cd /proc/acpi/battery/C1AC
Cat the content of state file and grep only the voltage
# cat state | grep "present voltage"
Now you will ..
How to find top ten biggest files
How to find top ten biggest file in a directory or sub directories?
Dealing with log files are critical always, In production server you will be getting problems when the log makes your filesystem full.
Command to find top ten biggest file
# find /var/log -type f -print0 | xargs -0 ..
Monitor all the process with specific name
As a linux admin we will monitor only a specific process with specific name. Normally system admins use ps, pgrep command to find the process using particular command. In such situation to grep the process with specific name you can use the top command along with pgrep to grep only ..