Augeas

Overview

  • Edit configuration files on the command line

Printing

  • All known config files an values

augtool print
  • One value of a config file

augtool print /files/etc/ssh/sshd_config/MaxSessions

Add / change a value

augtool -s set /files/etc/ssh/sshd_config/MaxSessions
  • To change the third title in grub.conf

augtool -s set /files/etc/grub.conf/title[3] "Arch Linux"

Remove an entry

augtool -s rm /files/etc/ssh/sshd_config/MaxSessions