Advertisement
hjaltiatla

ETCKeeper cheatsheet

Nov 8th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #ETCKeeper cheatsheet
  2. #https://www.digitalocean.com/community/tutorials/how-to-manage-etc-with-version-control-using-etckeeper-on-centos-7
  3.  
  4. #Example: Commit after changing an /etc file
  5. #sudo etckeeper commit "First commit of my /etc directory"
  6.  
  7. #Example: list the commits you’ve made so far
  8. #sudo git log --pretty=oneline
  9.  
  10. #Example: roll back /etc/hosts
  11. #sudo etckeeper vcs checkout 76c19 /etc/hosts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement