Archive for the ‘Unix’

vi Quick Reference

This table is taken from Sun Microsystems' User's Guide: Getting Started (. Starting vi vi filename open or create file vi +18 filename open to line 18 vi +/"mustard" filename open file to first occur[...]


RedHat5 rpmdb-redhat

Place all the rpm packages in one local sub-directory (lets say RHEL5) which does not have and sub-directorires and do; rpm -ivh createrepo*.rpm createrepo /RHEL5 Then in the /etc/yum.repos.d directory place a file named[...]


Adding a new disk to a VMWare Virtual Machine in Linux

I’ve been using VMWare for a while now and I always get asked some common questions about it. One of those is how to add a new virtual disk to a Linux virtual machine. So in response to that, here are the steps to addi[...]


Linux Commands – A practical reference

This is a linux command line reference for common operations. Examples marked with • are valid/safe to paste without modification into a terminal, so you may want to keep a terminal window open while reading this so yo[...]


How do I Use the Linux Top Command?

The Unix top command is designed to help users determine which processes are running and which applications are using more memory or processing power than they should be. The top command is very easy to use but you shoul[...]


Find all large files on a Linux machine

Finds all files over 20,000KB (roughly 20MB) in size and presents their names and size in a human readable format: find / -type f -size +20000k -exec ls -lh {} \; 2>/dev/null|awk '{print $NF ": " $5}'|sort -nrk 2,2 f[...]


Killing Oracle Sessions

Sessions can be killed from within oracle using the ALTER SYSTEM KILL SESSION syntax. First identify the offending session as follows: SELECT s.sid, s.serial#, s.osuser, s.program FROM v$session s[...]


Top memory consuming processes

You can check for top memory consuming processes by issuing the following commands: we use the following ps commands in order to check for performance probelms 1) Displaying top CPU_consuming processes: ps aux | head -1[...]


Purge old files using “find” command

I’ve noticed that one of our interface directories has a lot of old files, some of them were more than a year old. I checked it with our implementers and it turns out that we can delete all files that are older tha[...]


You Ads Here!


3 visitors online now
3 guests, 0 members
Max visitors today: 5 at 06:56 am CET
This month: 8 at 03-12-2010 05:51 pm CET
This year: 13 at 02-28-2010 05:55 am CET
All time: 14 at 12-23-2009 11:57 am CET