What is eject ?
4 eject examples
Syntax and Options
Related Commands
What is eject ?
eject command is mainly used to eject the CD / DVD tray. You can also close the tray using certain options.
eject command can be used to eject floppy disk, tape, or JAZ or ZIP disk. eject command can also be used to control the eject options.
If the device is mounted while trying to eject, it will be unmounted first before ejecting.
[click to continue…]
What is iostat?
4 iostat examples
Syntax and Options
Related Commands
What is iostat?
Iostat command reports CPU and I/O statistics. iostat command is used during performance analysis to narrow down the problematic areas in the system.
Sample output of iostat command and its explanation:
$ iostat
Linux 2.6.31-17-generic (sathiya-laptop) 05/25/10 _i686_ (1 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
25.99 0.78 7.43 12.77 0.00 53.03
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 27.40 797.19 201.27 800902 202208
sr0 0.03 1.24 0.00 1248 0
The first line displays general information — Linux kernel version, hostname etc.,
Next two lines displays CPU statistics, in which the first 3 column displays average CPU usage. The 4th column displays the percentage of time the CPU were idle and waited for I/O response. 5th column displays percentage of waiting time of virtual CPU. 6th column displays the percentage of time the CPU is idle.
Remaining line displays the device utilization report. First line in that is headers, such as number of Transfer per second, number of blocks read per second, blocks write per second, total block reads, total block writes.
[click to continue…]