Name 10 commands every Linux and Unix admin should know


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Name 10 commands every Linux and Unix admin should know
# 8  
Old 11-09-2006
try that command and you will see Smilie

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
# 9  
Old 11-09-2006
You can tell this box had some disk issues Smilie

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
# 10  
Old 11-09-2006
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 11:31 PM..
# 11  
Old 11-10-2006
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 03:47 AM..
Tornado
# 12  
Old 11-10-2006
I am no SysAdmin.

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

ps
make
vim
find
grep
cd
ls
diff
ctags
gdb
# 13  
Old 11-10-2006
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 Smilie
9. vi - and more importantly, :q! to get out without saving.
10. exit, logout - keeps a server safe!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

What is the best way to remember UNIX / Linux Commands?

Hi all, I'm new to UNIX world and new to this forum. As I observed there are lot of commands that needs to be remembered in UNIX programming. I'm into DevOps and can anyone please tell me what are all the important commands that are useful for DevOps Engineer. NOTE: Please correct me if my... (3 Replies)
Discussion started by: maxlink
3 Replies

2. What is on Your Mind?

Regarding Admin life either as DBA or UNIX Linux admin

I am planning to choose my career as Unix/Linux Admin or a DBA. But I have come to know from forums and few admins like the job will be 24/7. I have few questions on that. Can we get "DAY" shifts in any one of the admin Job ? Can't we have shift timings in any company ? Eventhough the... (7 Replies)
Discussion started by: Jacktts
7 Replies

3. UNIX for Dummies Questions & Answers

Unix and Linux Commands

Hi All I have found that few basic commands in unix have the same syntax in linux as well. I need those commands which differ on Linux platform, with some more advanced options.. For example... awk, sed, tr ... and some more commands with advanced options. I am trying to search on the linux... (1 Reply)
Discussion started by: vee_789
1 Replies

4. What is on Your Mind?

Most deadly commands on Unix/Linux !!

lets list the most deadly commands on Unix/Linux and what they do.... > sudo rm -rf / (27 Replies)
Discussion started by: Rahulpict
27 Replies

5. HP-UX

Need HPUX admin commands lost

Hi All Please somebody send me list of admin commands used for HPUX. Thanks Sunanda (2 Replies)
Discussion started by: sunanda
2 Replies

6. UNIX for Dummies Questions & Answers

root/admin commands in LINUX

Hi I am working on LINUX shell scripting. I have root privileges and I know some basic root/admin commands like user creation, modification and so on. Till last week i was able to create users but now i am not able to create users or groups. When I give the command i got an error as ... (6 Replies)
Discussion started by: naina
6 Replies

7. News, Links, Events and Announcements

All Linux and Unix commands Links

http://www.computerhope.com/unix.htm http://www.linuxdevcenter.com/linux/cmd/ (0 Replies)
Discussion started by: devotedsinner
0 Replies

8. UNIX for Dummies Questions & Answers

unix commands in linux-red hat

hi, can i have a unix like environment where i can do things like chmod, shell scripts and etc.. in redhat instead of the GUI that redhat ofters? (4 Replies)
Discussion started by: yls177
4 Replies
Login or Register to Ask a Question