Score:-2

What is the difference between "systemctl hibernate" and "hibernate" commands?

it flag

I configured hibernate function by the instruction here for Ubuntu 20.04.

Then I tried systemctl hibernate and hibernate commands and both are working fine.

By description from man, help and because of different locations of systemctl and hibernate (fromwhereis, which) it seems that this commands have different implementation.

What is the difference between them? Which one should be used?

Related question: Difference of pm-hibernate and systemctl hibernate

Score:0
it flag

hibernate command was replaced by systemctl hibernate. It is recommended to use systemctl hibernate. hibernate command is still available in the system for compatibility reasons.

In most Ubuntu and similar Linux distributions, the systemctl tool has replaced power management commands that were used in previous releases. The following commands for instance have been replaced by systemctl as shown below : halt → systemctl halt poweroff → systemctl poweroff reboot → systemctl reboot …. For compatibility reasons however, the old commands are still available in the system, but it is recommended to rely on systemctl.

Source: How to shut down, restart, suspend and hibernate Linux

How power management commands work: Shutdown, Reboot, Suspend and Hibernate a Linux System

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.