The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix or Linux Systems Admin - 24dash.com iBot UNIX and Linux RSS News 0 07-27-2007 05:30 AM
Need HPUX admin commands lost sunanda HP-UX 2 05-09-2007 04:42 PM
root/admin commands in LINUX naina UNIX for Dummies Questions & Answers 6 12-26-2005 02:24 AM
All Linux and Unix commands Links devotedsinner News, Links, Events and Announcements 0 11-07-2005 04:49 AM
unix commands in linux-red hat yls177 UNIX for Dummies Questions & Answers 4 09-18-2002 01:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 11-09-2006
pressy's Avatar
solaris cultist
 

Join Date: Aug 2003
Location: Vienna / Austria (Europe) [EARTH]
Posts: 718
try that command and you will see

Code:
fc -l 0 |awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10
mine from $HISTSIZE=1000 would be:
103 ls
99 cd
88 vi
42 rm
40 more
28 pwd
22 tar
22 awk
15 sed
13 man

regards pressy
Reply With Quote
Forum Sponsor
  #9  
Old 11-09-2006
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
You can tell this box had some disk issues

62 ls
42 cd
34 metastat
32 ptree
26 /usr/platform/`uname -i`/sbin/prtdiag
20 rm
20 cfgadm
19 format
15 ps
14 tail
Reply With Quote
  #10  
Old 11-09-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
My two cents..
1. iostat (have seen slow response too many times due to overloaded disks)
2, 3. netstat, ifconfig (know thy ip addresses and ports)
4, 5. lsof, ps (keep an eye on which process is doing what)
6. awk (to make sense of the ps and lsof)
7. grep (when awk is too powerful)
8. truss (if you have any good ol' C,C++,pro*C programs that go awry)
9. kill (-3 to get thread dumps - super useful if you have application servers on your box and sometimes you have no choice but a good '-9')
10. vxdiskadm (hate this command, never use it, but can't think of any other command that lets you do Veritas volume manager admin through a single command).

Last edited by blowtorch; 11-09-2006 at 08:31 PM.
Reply With Quote
  #11  
Old 11-10-2006
Tornado's Avatar
Registered User
 

Join Date: Nov 2006
Location: Melbourne
Posts: 244
Here's my Solaris top 10 usefull commands

egrep
prstat
ls -Alh (h flag is Sol10 only)
vim (Sunfreeware)
ps -ef
chmod
chown
showmount
prtdiag
dmesg

Last edited by Tornado; 11-10-2006 at 12:47 AM.
Reply With Quote
  #12  
Old 11-10-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,699
I am no SysAdmin.

My top 10 commands... order does not matter.

ps
make
vim
find
grep
cd
ls
diff
ctags
gdb
Reply With Quote
  #13  
Old 11-10-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
10 commands you need.

1. cp - use it before you edit a file like /etc/system
2. tar cf - use it before you edit a file/configuration/move a server
3. ufsdump - use it before you change a filesystem/file/configuration/disk/move a server
4. pwd - use it before you do that rm -r ./*
5. uname -a - use it before you do that rm -r ./* (make sure you are on that host you "know" you are on)
6. ufsrestore - won't be any good if you can't bring those ufsdumps back
7. tar xf - won't be any good if you can't bring those tar'ed files back
8. man - you can find so many more commands that will cause you to need these others to get you out of trouble
9. vi - and more importantly, :q! to get out without saving.
10. exit, logout - keeps a server safe!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0