linux watch command & example usage
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...
- MBR backup with dd command @ LINUX MBR is the master boot record of your disks....
- Backup entire disk (mbr included) with dd (linux command) and gzip BACKUP DISK dd if=/dev/sdX | gzip > a.gz RESTORE...
- Linux Shared Lib Creation, Compilation & Usage Shared library file b.c #include void b_printer () {...
- Disk Usage Information The CLI way The df utility displays the disk...
