Archive for the ‘Unix’

A Unix/Linux “find” Command Tutorial

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


what is your 10 common linux commands?

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


List command line history with timestamp

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


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