# I don't know how to change bash-4.4$ in terminal

**URL:** <https://forums.rockylinux.org/t/i-dont-know-how-to-change-bash-4-4-in-terminal/11474>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-8\
**Created:** [October 4, 2023, 12:25pm UTC](https://forums.rockylinux.org/t/i-dont-know-how-to-change-bash-4-4-in-terminal/11474 "2023-10-04T12:25:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloud](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cloud](https://forums.rockylinux.org/u/cloud)\
**Post date:** [October 4, 2023, 12:25pm UTC](https://forums.rockylinux.org/t/i-dont-know-how-to-change-bash-4-4-in-terminal/11474/1 "2023-10-04T12:25:23Z")

</div>

![Screenshot from 2023-10-04 21-19-39](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/a/a4001bfea072c833bfeae9edbf6440fc0a4caafd.png)

I am new to Linux.

I deleted some files, and bash-4.4$ is displayed by default in the terminal as follows.

Can I reset and initialize OS settings?

Thank you for reading my question.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [October 4, 2023, 1:02pm UTC](https://forums.rockylinux.org/t/i-dont-know-how-to-change-bash-4-4-in-terminal/11474/2 "2023-10-04T13:02:16Z")

</div>

You may have deleted files `.bashrc` and `.bash_profile` from your home directory (although neither sets the prompt directly).

Look at output of `ls -laR /etc/skel`  
Those files/subdirectories are copied to homedir of account, when account is created. You can copy them, if you miss them.

* * *

If you have deleted files from elsewhere, files that were _installed_, then it is possible to list files that are not quite as they came packages:

```auto
sudo rpm -Va

```

Some of that may be red herrings. If it says, for example `missing /etc/profile`  
then you can ask what package it came from:

```auto
dnf provides /etc/profile

```

which tells the name of package(s). For that file “setup” and  
probably `Repo : @System`. The “System” might be something else, but the `@` tells that the package is already installed.

It is possible to reinstall a package:

```auto
sudo dnf reinstall setup

```

Which should restore removed files of that package.

---

<div class="post-metadata">

**Author:** ![cloud](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cloud](https://forums.rockylinux.org/u/cloud)\
**Post date:** [October 5, 2023, 1:16am UTC](https://forums.rockylinux.org/t/i-dont-know-how-to-change-bash-4-4-in-terminal/11474/3 "2023-10-05T01:16:52Z")

</div>

![Screenshot from 2023-10-05 10-15-21](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/3/33b727cb0235770d507415437177784d519643a0.png)

---

<div class="post-metadata">

**Author:** ![cloud](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cloud](https://forums.rockylinux.org/u/cloud)\
**Post date:** [October 5, 2023, 1:17am UTC](https://forums.rockylinux.org/t/i-dont-know-how-to-change-bash-4-4-in-terminal/11474/4 "2023-10-05T01:17:22Z")

</div>

![Screenshot from 2023-10-05 10-15-29](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/8/87f139e1600f02f36b920f4caa939c10c90d8715.png)

---

<div class="post-metadata">

**Author:** ![cloud](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@cloud](https://forums.rockylinux.org/u/cloud)\
**Post date:** [October 5, 2023, 1:17am UTC](https://forums.rockylinux.org/t/i-dont-know-how-to-change-bash-4-4-in-terminal/11474/5 "2023-10-05T01:17:57Z")

</div>

![Screenshot from 2023-10-05 10-15-34](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/9/9cde31646e667d917eea5f3832247298965e1c59.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [December 4, 2023, 1:18am UTC](https://forums.rockylinux.org/t/i-dont-know-how-to-change-bash-4-4-in-terminal/11474/6 "2023-12-04T01:18:12Z")

</div>

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