With the terminal: Hide a file inside another

We already saw how to hide a file inside another using SilentEye and now we will see how to do the same through the terminal.

The advantage of this method is that we are not forced to use a specific extension for the final result as it happens with SilentEye, besides that it is more comfortable for me.

1- We take the file that we want to hide and compress it. Let's suppose it's called hidden_file.rar.

2- We look for an image (we will call it img_original.jpg) and put it in the same folder as hidden_file.rar.

3- Now we open a terminal and put.

$ cd /home/usuario/ruta_de_la_carpeta
$ cat img_original.jpg fichero_oculto.rar > img_falsa.jpg

4- If we execute img_falsa.jpg we will see the image perfectly img_original.jpg, but if you look, the size is larger than the original.

Now to see the hidden file, we just have to rename img_falsa.jpgBy img_falsa.rar and unzip it.

Please note: I tried compressing the hidden file in .tar and the trick didn't work for me.


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

2 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   aer0 said

    works perfect with .7z compression format

    1.    elav <° Linux said

      Thank you very much for the information 😀