EZ Linux Admin random header image

Entries Tagged as 'Cheat Sheets'

Calm down rsync if it overloads your IO memory or CPU

March 3rd, 2010 by EZ linux · No Comments

The trick is to limit I/O bandwidth for rsync.
The –bwlimit option limit I/O bandwidth. You need to set bandwidth using KBytes per second. For example, limit I/O bandwidth to 10000KB/s (9.7MB/s), enter:
rsync –delete –numeric-ids –relative –delete-excluded –bwlimit=10000 /path/to/source /path/to/dest/?
10 megs a second is plenty of speed and will keep the server running smoothly when your [...]

Click to continue →

Tags: Cheat Sheets · Linux Commands · Linux Security · Linux Software / Scripts · Linux Tricks

Default MYSQL port

February 9th, 2010 by EZ linux · No Comments

The default MYSQL port is:
3306

Click to continue →

Tags: Cheat Sheets · Linux Security · Ports

Show All Running Processes in Linux

January 21st, 2010 by EZ linux · No Comments

To see every process type:
ps -A
To see every process except what’s running from root type:
ps -U root -u root -N

Click to continue →

Tags: Cheat Sheets · Linux Commands · Linux Tricks

Change root or user password on a Linux server

January 18th, 2010 by EZ linux · No Comments

Simple when logged in with the user type:
passwd
Then enter the new password twice to save it.
To change the root password on a Linux server you have to be logged in as root.

Click to continue →

Tags: Cheat Sheets · Linux Security

How to reduce or free space in /usr partition

January 13th, 2010 by EZ linux · 1 Comment

1. Restart the httpd service. This might free a little space some times.
2. Check for apache logs like error_log, access_log , suexec_log in /usr/local/apache/logs . These can either be cleared off or if you need the logs then you can take a zipped copy and keep it aside.
3. Same can be done for the files [...]

Click to continue →

Tags: Cheat Sheets · Linux Tricks

301 redirect

October 12th, 2009 by EZ linux · No Comments

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^dwhs.com [nc]
rewriterule ^(.*)$ http://www.dwhs.com/$1 [r=301,nc]
This will redirect dwhs.com to www.dwhs.com (change dwhs.com to your domain name)
Step by step for DWHS Customers:

log into your cpanel: www.your-main-domain.com/cpanel/
Click file manager and click the option to see hidden files
Make sure your in the folder public_html or www
Then create a new file called:  .htaccess
Then in edit [...]

Click to continue →

Tags: Cheat Sheets · Linux Tricks

Apache error log settings

September 29th, 2009 by EZ linux · No Comments

This directive adjusts the verbosity of the messages recorded in the server’s error logs (see the ErrorLog directive). The following levels are available, in order of decreasing significance: emerg (emergencies: system is unusable); alert (action must be taken immediately); crit (critical conditions); error (error conditions); warn (warning conditions); notice (normal but significant condition); info (informational [...]

Click to continue →

Tags: Cheat Sheets · Linux Software / Scripts · Linux Tricks

Change default Linux text editor from VI to Pico

June 18th, 2009 by EZ linux · No Comments

If only for the session just run this: export EDITOR=/usr/bin/pico
If you want to change it so every time it will use Pico do this:
Open the server command line
Run:

export EDITOR=/usr/bin/pico
pico ~/.bashrc

Add this line at the bottom of the file:

export EDITOR=/usr/bin/pico

Save the file and your done.
This changes the server to always use Pico no matter when it’s [...]

Click to continue →

Tags: Cheat Sheets · Linux Software / Scripts · Linux Tricks

Linux Cheat Sheet

May 28th, 2009 by EZ linux · No Comments

We are re-doing this page…
Arrow Up: scrolls and edits the command history, press enter to activate.
Shift+pgup: scrolls terminal output up
Shift+pgdown: scrolls terminal output down
CTRL-ALT+DEL reboots the system
Shutdown -h now turns the system off
CTRL C kills the current process
CTRL S Stops the tranfer to the terminal
CTRL Q Resumes the transfer to the terminal
CTRL Z Puts the [...]

Click to continue →

Tags: Cheat Sheets

Another Linux cheat sheet

December 31st, 2007 by EZ linux · No Comments

General help
[command] –help – gives syntax for using that command
man [command] – brings up the manual page for the command, if it exists
man [command] > file.txt – dumps the manual page(s) for the command into ‘file.txt’
whatis [command] – gives a short description of the command.
help – gives a list of commands (GNU Bash).
help [command] – [...]

Click to continue →

Tags: Cheat Sheets