EZ Linux Admin random header image

Entries Tagged as 'Cheat Sheets'

Change the language on Linux with a command

June 7th, 2012 by EZ linux · 1 Comment

It’s easy just run this command and than choose a language: system-config-language

Click to continue →

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

Named backup or transfer files

June 5th, 2012 by EZ linux · No Comments

Most of the files are in the etc folder.

Click to continue →

Tags: Cheat Sheets · Cpanel and WHM · Linux Back Up · Linux Operating Systems · Linux Security

Setting up Cpanel over Centos 6 minimal

June 5th, 2012 by EZ linux · No Comments

Set up networking: vi /etc/sysconfig/network-scripts/ifcfg-eth0 hit “i” to insert text. Make the file look like this: DEVICE=”eth0″ HWADDR=”leave the same” NM_CONTROLLED=”yes” ONBOOT=”yes” IPADDR=66.249.*.* BOOTPROTO=none NETMASK=255.255.255.* GATEWAY=66.249.*.* DNS1=66.249.*.* DNS2=66.249.*.* DNS3=66.249.*.* USRCTL=yes Then click the esc key Then click control : Then type x and hit enter to save. Then restart your nic card: /etc/init.d/network restart or [...]

Click to continue →

Tags: Cheat Sheets · Cpanel and WHM · Installing Linux · Linux Operating Systems

How do I restart Linux network service?

May 14th, 2012 by EZ linux · No Comments

RedHat Linux command to reload or restart network (login as root user): # service network restart OR # /etc/init.d/network restart To start Linux network service: # service network start To stop Linux network service: # service network stop Debian Linux command to reload or restart network: # /etc/init.d/networking restart To start Linux network service: # [...]

Click to continue →

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

VI basic basics

May 14th, 2012 by EZ linux · No Comments

Starting: vi filename          edit filename starting at line 1 vi -r filename     recover filename that was being edited when system crashed Exiting: :x<Return>     quit vi, writing out modified file to file named in original invocation :wq<Return>     quit vi, writing out modified file to file named in original invocation :q<Return>    [...]

Click to continue →

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

How to Tell What Type of Memory Your Linux PC Has Installed

May 6th, 2012 by EZ linux · No Comments

Here it is, the magic code. Just run this as root and it will give you the ddr, mhz, and much more. sudo dmidecode –type memory

Click to continue →

Tags: Cheat Sheets · Cpanel and WHM · Hardware · Linux Tricks

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 [...]

Click to continue →

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/ [...]

Click to continue →

Tags: Cheat Sheets · Cpanel and WHM · Linux Operating Systems · Linux Security · Linux Software / Scripts · Linux Tricks

Clearing Your DNS Cache

July 19th, 2011 by EZ linux · No Comments

Clearing Your DNS Cache Your DNS cache stores the locations (IP addresses) of pages you have recently viewed. If the location of the page changes before the entry in your DNS cache is updated, you will be unable to access the page. If you are encountering a high number of HTML 404 error codes, you [...]

Click to continue →

Tags: Cheat Sheets · Cpanel and WHM

Path to date

May 24th, 2010 by EZ linux · No Comments

The server path to date can very for different servers, you will need to run this command to find it: which date For most servers it is: /bin/date This is the same for perl and php

Click to continue →

Tags: Cheat Sheets · Linux Commands · Linux Operating Systems