| List files in a director :
ls , ls –lt , ls-ltr |
| drwxr-xr-x |
7 rdba |
rdba |
4096 Sep |
1 12:24 |
DIBON |
| -rw |
1 rdba |
rdba |
3839 Sep |
7 17:54 |
mbox |
| -rw-rw-r |
1 rdba |
rdba |
1822720 Sep |
7 19:21 |
cidfsift.tar |
| Setting Unix Prompt
|
| PS1="`hostname`($LOGNAME)>" |
| Mount CDROM |
| mount 101.34.32.29:/mnt/cdrom /mnt/cdrom |
| Search files and size |
| find . -type f -exec grep -l search_word
{} \; | xargs ls -al |
| Sed commands |
| move partitions |
| ufsdump 0f - /dev/rdsk/c0t0s0s0 |
(cd /home; ufsrestore xv -) |
| Vi editor commands |
| Check oracle instances that
are running |
| Ps –ef |grep pmon |
| Current Working Directory |
| Pwd |
| List of process running |
| Ps –ef |
| Check space in mount points |
| Df –k |
| Cpu Usage |
| Sar –u 10 8 |
| Processor Statistics |
| Mpstat 10 2 |
| Top 10 cpu users |
| ps -e -o pcpu -o pid -o user -o args
| sort -k 1 | tail -21r |