To see every process type: ps -A To see every process except what’s running from root type: ps -U root -u root -N
Entries Tagged as 'Cheat Sheets'
Show All Running Processes in Linux
January 21st, 2010 by EZ linux · No Comments
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.
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 [...]
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 open a shell and use simple command line unix tools on the remote machine. >telnet fred In this example, imagine you are telnetting to a machine named “fred”. Sometimes you may have to use [...]
Tags: Cheat Sheets
