Shell or bash default restore

I’m playing with the butterbian-XFCE 3.2 and would like to just have the Debian Default bash shell/term back so I can modify it myself.

Is that easy to do?

Found the below with a google search, maybe @drew can verify if this will work or if he would suggest something different.

To set Bash back to its default setup on Debian 13 (Trixie), you must restore the system’s skeleton files to your home directory. [1]

  1. Back up your current files [1]

Create a backup directory and save your existing configuration files before overwriting them: [1]

bash

mkdir ~/bash_backup
cp ~/.bashrc ~/.profile ~/.bash_logout ~/bash_backup/
  1. Copy the default system files

Debian stores pure, unedited copies of user environment profiles inside the /etc/skel/ directory. Copy them directly into your home folder to replace your current setups: [1, 2, 3]

bash

cp /etc/skel/.bashrc ~/
cp /etc/skel/.profile ~/
cp /etc/skel/.bash_logout ~/
  1. Fix file ownership and permissions [1]

Ensure that your user account explicitly owns these newly copied hidden files and that they have standard read/write permissions: [1]

bash

chown $USER:$USER ~/.bashrc ~/.profile ~/.bash_logout
chmod 644 ~/.bashrc ~/.profile ~/.bash_logout
  1. Reload the shell

Force your current terminal window to apply the fresh settings immediately without requiring a full system reboot: [1]

bash

source ~/.bashrc

I found a .bashrc backup that the install process must have created. I tried restoring that and that got me back to where ls -l gave me what I’m used to.

Thanks

1 Like

Maybe what I should be asking is how do I get Drew’s butterbash to show me User and Group and not just User. A lot of my file issues are related to which group the file was created with. The background creator user is different from me but both of us should be in the same group with R/W permission. So seeing the User in ls is critical for me.

look in the ~/.config/bash/aliases.bash

alias ls='eza -alg --header --icons --group-directories-first'

1 Like

Thanks, that’s what I’m looking for.

1 Like