26th May 2010
in
Command
The find command is used to locate files on a Unix or Linux system. find will search any set of directories you specify for files that match the supplied search criteria. You can search for files by name, owner, gro[...]
No Comments
20th May 2010
in
Tip
What is your regular command you use? I am sure you must thinking of ls and cd. Yeah, they are common for every users, but how about the rest of them? I have construct a combos of commands to help you identify your top t[...]
No Comments
20th May 2010
in
Tip
History is a common command for shell to list out all the executed commands. It is very useful when it comes to investigation on what commands was executed that tear down the server. With the help of last command, you be[...]
No Comments
11th March 2010
in
Tip
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[...]
No Comments
1st February 2010
in
Tip
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[...]
No Comments
1st February 2010
in
Vmware
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[...]
1 Comment
29th January 2010
in
Unix
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[...]
1 Comment
21st November 2009
in
Unix
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[...]
Tags: Linux Top Command
No Comments
11th November 2009
in
Unix
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[...]
Tags: Find large files Linux
No Comments
9th November 2009
in
Session, Unix
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[...]
Tags: Killing Oracle Sessions
No Comments