Fork me on GitHub

About The 'lcd' Command

The '/usr/local/sbin/lcd' command allows you to navigate the backup tree. It will allow you to cd into a backup directory and then move forwards or backwards though the snapshots.



Configuring the 'lcd' Command

You must run the 'lcd' command in conjunction with using the built-in 'source' command.
It is recommended that you edit the bash startup file (listed below) and create an alias called lcd which calls /usr/local/sbin/lcd via the built-in source.

  • ~/.bashrc
  • ~/.profile (only called during login)


To do this add the following snippit to your shell startup file and then reload the shell.

alias lcd="source /usr/local/sbin/lcd"



Helpful Links

  • lcd manual (online manual page for the lcd command)