kill -s 9 [PID] Also try it without the -s if it won’t go.
Entries Tagged as 'Linux Tricks'
kill a linux process that won’t die
February 3rd, 2012 by EZ linux · No Comments
Tags: Linux Commands · Linux Operating Systems · Linux Security · Linux Software / Scripts · Linux Tricks
How to search a directory for a certain search string.
January 23rd, 2012 by EZ linux · No Comments
Pretty simple, this takes minimal load and delivers the data as it’s found.
Tags: Linux Commands · Linux Software / Scripts · Linux Tricks
Manually changing an IP in Linux
December 17th, 2011 by EZ linux · No Comments
It’s pretty easy actually. Just go to this directory: /etc/sysconfig/network-scripts Then you will see a file for eachnetwork port, for example my server is: ifcfg-eth0 and ifcfg-eth1 I already have the ifcfg-eth0 set up from the install but I want to use the second one for back ups so I just opened the file and [...]
Tags: Cpanel and WHM · Hardware · Linux Drivers · Linux Operating Systems · Linux Security · Linux Software / Scripts · Linux Tricks · Ports
Tracking down the biggest folders
August 11th, 2011 by EZ linux · No Comments
du -ax –max-depth 1 /var/cpanel | sort -n | tail This is a great command to simply find what folders are the biggest in a directory. You can replace the /var/cpanel with any folder and it will list everything in there and how big they are in order. Once you find the big folder then [...]
Tags: Cheat Sheets · Cpanel and WHM · Linux Commands · Linux Security · Linux Software / Scripts · Linux Tricks
Cleaning up /var
August 11th, 2011 by EZ linux · No Comments
Cpanel and linux leaves a lot of log files in /var After several years these can add up, especially in the cpanel/bandwidth folder. So a couple quick folder moves and symlinks can clean things up. This is assuming you have a /backup partition and some room in it. Moving the log folder mv /var/log /backup/ [...]
Tags: Cheat Sheets · Cpanel and WHM · Linux Operating Systems · Linux Security · Linux Software / Scripts · Linux Tricks
Steps to Secure SSH Server
May 19th, 2011 by EZ linux · No Comments
SSH attacks are normally happened if you are running SSH on comman Port 22 . If you have simple or weak root password then chances of your server get compromised . We can secure SSH server with two methods : Method 1: A best option to secure your SSH is to run SSH on the [...]
Tags: Linux Security · Linux Tricks
Optimize MySQL DataBases
June 29th, 2010 by EZ linux · No Comments
If you are online then you should run: mysqlcheck mysqlcheck -o –all-databases If you are offline then you can run myisamchk which is a little more thorough. myisamchk –sort-index myisamchk -r tbl_name
Tags: Linux Software / Scripts · Linux Tricks
When asking about a networking issue, get these details from the server
April 5th, 2010 by EZ linux · No Comments
Kernal version uname -a Nic / Lan driver version dmesg | grep r8169 Internet controller lspci -nn | grep Ethernet Details on etho nic card sudo ethtool eth0 Module size lsmod | grep r8169 Module versions cat /proc/modules | grep r8169 Don’t worry all these commands are safe and just for reporting.
Tags: Cheat Sheets · Hardware · Linux Commands · Linux Tricks
Mod_cband the new Mod_Bandwidth
March 29th, 2010 by EZ linux · 3 Comments
I spent hours trying to get mod_bandwidth to work simply because I have used it for years. But now with Apache 2.0 times have changed and there is a better option for Linux and it’s free. The new mod to regulate bandwidth and more is called Mod_cband I’m not sure what cband means but I [...]
Tags: Cheat Sheets · Cpanel and WHM · Linux Security · Linux Software / Scripts · Linux Tricks
Raise apache 2.0 max clients hard limit in cpanel
March 23rd, 2010 by EZ linux · No Comments
Apache 2.0 makes raising the max client from the default 256 hard limit a little harder now. If you have cpanel then it’s even a little harder or I should you just need to know what to do, figuring it out is a shot in the dark. One main difference is you have raise the [...]
Tags: Cpanel and WHM · Linux Software / Scripts · Linux Tricks
