etckeeper is a tool that tracks changes made to the configuration files in the /etc directory using a version control system (VCS) such as Git. It allows you to keep a history of changes made to the configuration files and easily revert to a previous version if necessary. The tool automatically commits changes to the repository on a regular basis, such as when the package manager updates packages, or when the system is shut down. It also includes some additional features such as hooks that can be used to automatically run scripts before or after a commit. By using etckeeper, you can easily track and manage the changes made to your system configuration, making it easier to rollback or understand changes made over time.
If you encounter the below error while running the command etckeeper:
etckeeper: command not found
you may try installing the below package as per your choice of distribution:
Distribution | Command |
---|---|
Debian | apt-get install ncbi-entrez-direct |
Ubuntu | apt-get install ncbi-entrez-direct |
Kali Linux | apt-get install ncbi-entrez-direct |
Raspbian | apt-get install ncbi-entrez-direct |
etckeeper Command Examples
1. Search the pubmed database for selective serotonin reuptake inhibitor:
# esearch -db pubmed -query "selective serotonin reuptake inhibitor"
2. Search the protein database using a query and regexp:
# esearch -db protein -query 'Escherichia*'
3. Search the nucleotide database for sequences whose metadata contain insulin and rodents:
# esearch -db nuccore -query "insulin [PROT] AND rodents [ORGN]"
4. Display [h]elp:
# esearch -h