command to perform safe shutdown in unix
sudo shutdown -h now
sudo
: Superuser do, allows the command to be executed with superuser privileges.shutdown
: Initiates the system shutdown process.-h
: Halts the system after shutdown.now
: Specifies that the shutdown should happen immediately.