man hdparm
will answer all your questions.
As you seem to be new to Linux, this is another resource that will help you tremendously: