---
title: Writing Your Shell Scripts
slug: writing-your-shell-scripts
createdAt: 2019-07-18T18:18:40.000Z
---

Shell scripts uploaded to our system your entrypoint is the `/tmp` directory. Anything in here will be deleted when the image baking has completed so be sure to move any persistent files that are downloaded to the instance with your shell script to a persistent location.&#x20;





```shell
#!/bin/sh

cp relevant_file.txt /persistant/file/location/...
mv relevant_file.txt /persistant/file/location/...

```

