Is it okay to shutdown the laptop using poweroff button while it is booting? will it bring any damages to the file system/files?

Don’t do it, it’s too risky. Let it boot up then shut it down regularly.

In general, you should never use the power button to turn off your computer.

If you’re in the TTY, you can run:

shutdown now

If your computer freezes due to some hardware or software exception, do not power it off. Use the Magic SysRq button instead.

3 Likes