Question: I've discovered the joy saving Terminator layouts and adding commands to `~/.config/terminator/config` that are run when it starts up. I've also discovered that hitting `Ctrl`+`c` to stop a watch command for a moment can't be followed by an up arrow to restart the watch because the command isn't in the history.

Here's an ugly work around that only prints the command:

```
command = (set -x; watch "date") && bash || bash

```

This allows copying the command after `Ctrl`+`c` but who has time for that? I want my up arrow to work. Hoping some bash magic can fix this.

Using terminator 1.91 in RHEL

Answer: 
The main question is - what do you mean by de-duplication? It could mean various things, but one thing that comes to mind may be "detect two files with the same content and replace one of them with a hard link to the other". The main disadvantage with that is that these two files are now essentially the same file, and if you now edit one of them - the other will also change, and this is more often than not isn't what you want.

As such, you cannot de-duplicate files on ext4 file systems, in a way that (for example) BTRFS does that makes sense: in BTRFS you can save space by having two file names point to the same extent and because Copy On Write (COW), when one is changed and should no longer be a duplicate of the other, you get two different files. So a possible correct answer may be: don't use ext4, use BTRFS.
**You can use de duplication for Ext4 and some other not supporting file systems on follow way:**

Run it inside a .qcow2 format using VM. You can create and use the .qcow2 based virtual hard disk by QEMU and VirtualBox.

Existing non .qcow VM`s can converted on follow way:

```
qemu-img convert -f vmdk -O qcow2 image.vmdk image.qcow2

```

For more formats and documentation, see:

```
https://docs.openstack.org/image-guide/convert-images.html

```

The qcow2 documentation can be found:

```
https://git.qemu.org/?p=qemu.git;a=blob;f=docs/interop/qcow2.txt

```