Portal Home > Knowledgebase > Server Administration
/tmp Partition Full
/tmp Partition Full
Via command line run:
ls /tmp | grep sess | xargs rm
This will empty...
Ban IP
Ban an IP Address From The Server
1) Login to the server as and su - to root.
2) If you are...
Check for Spam
SSH:
Create Script #1
#!/bin/sh
SPAMWORDS="Verify Your PayPal Account"
for SPAMMER in `ls...
Check Port Usage
To check a specific port's usage (processes using a specific port), run this command
netstat...
Disk Space Usage
How do I check disk space usage?
Run this via command line (linux only) inside
any directory...
Egrep
Egrep
While many people use the grep command through a pipe | there are more efficient ways...
High Server Load
High Server Load
MySQL Load
==========
In ssh run the following commands
top (check...
IP Network Fix
IP Network Fix
To reset IP addresses, run this via command line (ssh)...
Linux Bash Commands
Linux Bash Commands
An A-Z Index of the Linux BASH command line
alias Create an alias
awk...
Login to Root SSH
Login to Root SSH
We recommend free ssh software called Putty. Download here...
Mount Secondary Drive
How to Mount Secondary Drive
fdisk /dev/sdb
n
p
1
enter
enter
w
mkfs.ext3 -L /backup...
O/S Info
To get operating system information via command line, do the following:
cat...
PID Details
PID Details
To get full details of a running process (PID) run this command via ssh:
lsof...
Postgresql
Postgresql
Alter schema:
psql
alter role dbusername createdb;
create database...
Rsync
Rsync
Rsync is another very powerful command that is used to sync 2 directories between...
Server Crash / Down
Server Crash
HELP! My server is constantly crashing!
There are a lot of things that may...
Server Load Explanation
Server Load Explanation
How to check the servers load?
There are a few different ways to...
SSH Command List
ls
Displays everything in the current directory
ls -a
Displays all files, including hidden...
Trace Perl Process
Trace Perl Process
Run these via command line:
/usr/sbin/lsof -p
(replace [pid] with...
Update VPS Quota
Update VPS Quota
Via command line run:
quotacheck -cugvmf -F vfsv0 /
Wheelgroup User
Wheelgroup User
If you want a new user to be able at some point to change to rootuser you...
Where to Find Logs?
Where to Find Logs?
Exim: - /var/log/exim_mainlog -/var/log/maillog -/var/log/exim_paniclog...