Useful shell/kernel commands

Some useful commands you can issue from shell, to change some kernel/system parameters. Guess there gonna be more later, but now some I use very often.

echo "scheduler_name" > /sys/block/"device_name"/queue/scheduler
changes ioscheduler for block device "device_name" (e.g. sda, xvda, hda), to "scheduler_name", where "scheduler_name" could be: noop, anticipatory, deadline or cfq.

To rescan SCSI device use:
echo "1" > /sys/bus/scsi/drivers/sd/"device_address"/rescan where "device_address" is something like 0:2:0:0.

Subscribe to RSS - kernel

Main menu

by Dr. Radut