Forrest logo
tool overview
On this page you find all important commands for the CLI tool etckeeper. If the command you are looking for is missing please ask our AI.

etckeeper

Etckeeper is a command line tool used to track changes made to the /etc directory in Linux-based systems.

  1. It is primarily used for version control and backup purposes, keeping track of any modifications made to system configuration files.
  2. Etckeeper is compatible with various version control systems (VCS) such as Git, Mercurial, Bzr, and Darcs, depending on user preference.
  3. By default, it uses Git as its VCS, providing a reliable and robust method for tracking changes in /etc.
  4. When a change is made to a configuration file, etckeeper automatically commits the modifications, creating a detailed history of all alterations.
  5. It simplifies the process of reverting changes by allowing users to roll back to a previous state of the configuration files.
  6. Etckeeper also facilitates quick comparisons between different versions of configuration files, aiding troubleshooting and identifying problematic modifications.
  7. It can integrate with package managers like apt or yum, automatically creating VCS commits when package installations or updates modify /etc files.
  8. Etckeeper provides peace of mind by ensuring system administrators have a secure backup of all critical system configuration files.
  9. It supports various system distributions, including Debian, Ubuntu, Fedora, CentOS, and Arch Linux.
  10. The tool is straightforward to set up and configure, typically requiring minimal user input to start tracking changes in /etc.

List of commands for etckeeper:

  • etckeeper:tldr:04889 etckeeper: Run arbitrary Git commands.
    $ sudo etckeeper vcs ${status}
    try on your machine
    explain this command
  • etckeeper:tldr:42b53 etckeeper: Check if there are uncommitted changes (only returns an exit code).
    $ sudo etckeeper unclean
    try on your machine
    explain this command
  • etckeeper:tldr:6f7d0 etckeeper: Set up a Git repo and perform various setup tasks (run from `/etc`).
    $ sudo etckeeper init
    try on your machine
    explain this command
  • etckeeper:tldr:f335f etckeeper: Commit all changes in `/etc`.
    $ sudo etckeeper commit ${message}
    try on your machine
    explain this command
  • etckeeper:tldr:ff050 etckeeper: Destroy existing repo and stop tracking changes.
    $ sudo etckeeper uninit
    try on your machine
    explain this command
tool overview