![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| alias command within .profile | venhart | UNIX for Dummies Questions & Answers | 13 | 09-17-2009 04:04 PM |
| All alias in .profile lost when "script" command is called | amicon007 | UNIX for Advanced & Expert Users | 3 | 12-03-2008 03:22 AM |
| Alias problem | cleansing_flame | UNIX for Dummies Questions & Answers | 1 | 02-18-2008 03:44 AM |
| alias problem | Mattiax | UNIX for Dummies Questions & Answers | 5 | 10-17-2006 11:56 AM |
| alias in .profile | davinxi | UNIX for Dummies Questions & Answers | 3 | 09-23-2005 12:47 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Problem using a top command alias in my profile
Hi-
I am newish to the mac osx unix interface. I want to set up top so that it always displays the username. I can use this command to do this: top -ocpu -P ' PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE USER' -p '$aaaa ^bbbbbbbbb $cccc $wwwwwww $ee $ffff-$ggggg $hhhh- $iiii- $jjjj- $llll- $nnnnnnnn' This works great! The username displays last each time. BUT, since I always want top to act this way, I put this into my etc/profile file as an alias, just the same way: alias top="top -ocpu -P ' PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE USER' -p '$aaaa ^bbbbbbbbb $cccc $wwwwwww $ee $ffff-$ggggg $hhhh- $iiii- $jjjj- $llll- $nnnnnnnn'" This does NOT work. When I do top, I get this on each PID line: top % - - - - - ???what am I doing wrong??? This is a mac running osx 10.5 server. Thanks! Mike |
![]() |
| Bookmarks |
| Tags |
| alias, osx, top |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|