|
|
you can use watch command directly like this
watch –interval=1 “ps aux|grep xinetd”
to watch xinetd at a 1 second interval.
or you can define a script like this,
vi /bin/wh
press i to enter insert mode. And write
watch –interval=1 $1
then write :wq to save file
change executable attribute with chmod 755 /bin/wh
use it like this
wh “ps uax|grep xinetd”
Related posts:
- How to change ‘ls’ command color @ linux terminal First change ls commands color attribute to auto alias ls=’ls...
- High CPU usage solution for vmware on linux (files on NTFS) If you have high cpu usage problem for your vmware...
- MBR backup with dd command @ LINUX MBR is the master boot record of your disks. It...
- Disk Usage Information The CLI way The df utility displays the disk space...
- Sample Linux Driver (module) I am generally writing linux drivers for embedded systems for...
Comments
Trackback