[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian-refcard



Quoting Holger Wansing <linux@wansing-online.de>:
In Jessie, apt-get and apt-cache are valid commands, as well as the
'/etc/init.d/file restart' constructs.
Are there changings ongoing, making that all invalid?
If yes, what are the new variants of that commands?

The new apt commands are (IMHO) nicer, esp. for new users,
not only because of the colourful output:

apt-get update       -> apt update
apt-get upgrade      -> apt upgrade
apt-get dist-upgrade -> apt full-upgrade
apt-cache show pkg   -> apt show pkg
apt-cache search str -> apt search str
apt-cache policy pkg -> apt list -a pkg
apt-get remove pkg   -> apt remove pkg

Some of the new systemd commands are (IMHO) more powerful and they
do not differ between distributions:

/etc/init.d/service start -> systemctl start "service".service
/etc/init.d/service status -> systemctl status "service".service
/etc/init.d/service stop -> systemctl stop "service".service
/etc/init.d/service restart -> systemctl restart "service".service
halt -> systemctl halt
reboot -> systemctl reboot
poweroff -> systemctl poweroff
hibernate -> systemctl hibernate
suspend -> systemctl suspend

A lot of this stuff is still missing in the refcard - yet another
reason to drop the Apache section. I wonder, whether make-kpkg or
m-a still deserve a place in the refcard?

Cheers


Reply to: