EZ Linux Admin random header image

Entries Tagged as 'Cheat Sheets'

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

Linux cheat sheet

December 31st, 2007 by EZ linux · No Comments

Help on any Unix command. RTFM!

 
man {command}
Type man ls to read the manual for the ls command.

 
man {command} > {filename}
Redirect help to a file to download.

 
whatis {command}
Give short description of command. (Not on RAIN?)

 
apropos {keyword}
Search for all Unix commands that match keyword, eg apropos [...]

Click to continue →

Tags: Cheat Sheets

Unix cheat sheet

December 31st, 2007 by EZ linux · 1 Comment

Telnet Telnet allows you to login, albeit insecurely, to any remote machine running a telnet server. Telnet will allow you to [...]

Click to continue →

Tags: Cheat Sheets