# Title: Accidentally overwrote simple\_patrol.bash file in Linux Basics

**URL:** <https://get-help.theconstruct.ai/t/title-accidentally-overwrote-simple-patrol-bash-file-in-linux-basics/42392>\
**Category:** ROSDS Support\
**Created:** [September 2, 2026, 10:34am UTC](https://get-help.theconstruct.ai/t/title-accidentally-overwrote-simple-patrol-bash-file-in-linux-basics/42392 "2026-09-02T10:34:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rave](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@Rave](https://get-help.theconstruct.ai/u/Rave)\
**Post date:** [September 2, 2026, 10:34am UTC](https://get-help.theconstruct.ai/t/title-accidentally-overwrote-simple-patrol-bash-file-in-linux-basics/42392/1 "2026-09-02T10:34:55Z")

</div>

**Body:**

Hi,

I’m working on the “Linux Basics for Robotics” rosject (Part 2 — Create Programs to Control the Robot). While trying to move two provided files (`robot_interface.py` and `simple_patrol.bash`) from `~/ros2_ws/src/` into my package folder `~/ros2_ws/src/linux_basics_project/src/`, I made a mistake with the `mv` command and accidentally overwrote `simple_patrol.bash` with the contents of `robot_interface.py`.

I was able to recover `robot_interface.py` by renaming it back, but the original content of `simple_patrol.bash` is now lost. There is no git repository in the workspace to restore it from (`git status` returns “not a git repository”).

Could someone please help me restore the original `simple_patrol.bash` file (the sample bash script for the Simple Patrol program), or point me to where I can download it again?

Thank you!

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [September 2, 2026, 10:36am UTC](https://get-help.theconstruct.ai/t/title-accidentally-overwrote-simple-patrol-bash-file-in-linux-basics/42392/2 "2026-09-02T10:36:36Z")

</div>

> [@Rave](#):
>
> simple\_patrol.bash

How did you get the contents on this file to begin with? How did you create it? You can just follow the same process again to recreate it.

---

<div class="post-metadata">

**Author:** ![Rave](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@Rave](https://get-help.theconstruct.ai/u/Rave)\
**Post date:** [September 2, 2026, 10:40pm UTC](https://get-help.theconstruct.ai/t/title-accidentally-overwrote-simple-patrol-bash-file-in-linux-basics/42392/3 "2026-09-02T22:40:37Z")

</div>

> [@bayodesegun](#):
>
> How did you get the contents on this file to begin with? How did you create it? You can just follow the same process again to recreate it.

It makes sense.Thank you

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [September 12, 2026, 10:41pm UTC](https://get-help.theconstruct.ai/t/title-accidentally-overwrote-simple-patrol-bash-file-in-linux-basics/42392/4 "2026-09-12T22:41:09Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
