AlmaLinux8ではsystemctlコマンドを使用することが多々あります。Redhat6までとは大きく異るものです。
# /etc/rc.d/init.d/[tab] |
でサービス名を自動補完することができていましたが、systemctlは自動補完がデフォルトでできない設定になっているので、これをできるようにやっておきます。
# dnf install bash-completion # wget https://github.com/terralinux/systemd/raw/master/src/systemctl-bash-completion.sh -O /etc/bash_completion.d/systemctl-bash-completion.sh |
ここで一旦再起動します。
# reboot |
再起動後はtabで補完されることを確認してください。
# systemctl [tab] cancel dump isolate reload show-environment condrestart emergency kexec reload-or-restart snapshot daemon-reexec enable kill reload-or-try-restart start daemon-reload exit list-jobs rescue status default force-reload list-units reset-failed stop delete halt load restart try-restart disable is-active poweroff set-environment unset-environment dot is-enabled reboot show # systemctl start [tab] auth-rpcgss-module.service ostree-remount.service blk-availability.service proc-fs-nfsd.mount dm-event.service proc-sys-fs-binfmt_misc.mount dnf-makecache.service rc-local.service dracut-cmdline.service rescue.service dracut-initqueue.service rescue.target dracut-mount.service rpc-gssd.service dracut-pre-mount.service rpc-statd.service dracut-pre-pivot.service sshd-keygen@ecdsa.service dracut-pre-trigger.service sshd-keygen@ed25519.service dracut-pre-udev.service sshd-keygen@rsa.service ebtables.service sssd-kcm.service emergency.service syslog.socket emergency.target system-systemdx2dcoredump.slice getty-pre.target systemd-ask-password-console.service graphical.target systemd-ask-password-wall.service initrd-cleanup.service systemd-binfmt.service initrd-fs.target systemd-coredump@0.service initrd-parse-etc.service systemd-firstboot.service initrd-root-device.target systemd-fsck-root.service initrd-root-fs.target systemd-hwdb-update.service initrd-switch-root.service systemd-initctl.service initrd-switch-root.target systemd-journal-catalog-update.service initrd-udevadm-cleanup-db.service systemd-journald-audit.socket initrd.target systemd-machine-id-commit.service iscsi.service systemd-sysusers.service iscsid.service systemd-tmpfiles-clean.service iscsiuio.service systemd-update-done.service ldconfig.service systemd-update-utmp-runlevel.service libvirt-guests.service systemd-vconsole-setup.service libvirtd.service tmp.mount lvm2-lvmpolld.service udisks2.service mdmonitor.service unbound-anchor.service multipathd.service var-lib-machines.mount nfs-idmapd.service virt-guest-shutdown.target nfs-mountd.service virtlockd-admin.socket nfs-server.service virtlockd.service nfs-utils.service virtlogd-admin.socket nfsdcld.service virtlogd.service nftables.service |