F5F Stay Refreshed Software Operating Systems Changing .bashrc for a root user can trigger a segmentation fault.

Changing .bashrc for a root user can trigger a segmentation fault.

Changing .bashrc for a root user can trigger a segmentation fault.

A
andie20211
Junior Member
10
05-17-2020, 10:21 AM
#1
I believe I damaged my Debian installation and didn’t follow the steps carefully. I need to regain my understanding of reading commands again. I was attempting to enable color-coding in the terminal, using different colors for directories, files, exec items, etc., and modified .bashrc files by adding some text, but I’m now forgetting what I added. After trying to edit it with nano or vim, I encountered a segmentation fault and was forced back to the regular user account. I can’t access .bashrc even when opening it in those editors. Is there a solution to fix this?
A
andie20211
05-17-2020, 10:21 AM #1

I believe I damaged my Debian installation and didn’t follow the steps carefully. I need to regain my understanding of reading commands again. I was attempting to enable color-coding in the terminal, using different colors for directories, files, exec items, etc., and modified .bashrc files by adding some text, but I’m now forgetting what I added. After trying to edit it with nano or vim, I encountered a segmentation fault and was forced back to the regular user account. I can’t access .bashrc even when opening it in those editors. Is there a solution to fix this?

X
xX_IceyWolf_Xx
Senior Member
629
05-18-2020, 03:23 AM
#2
The terminal displays the current user's identity. It checks for a bashrc file at the top and, if present, sources it before running the command.
X
xX_IceyWolf_Xx
05-18-2020, 03:23 AM #2

The terminal displays the current user's identity. It checks for a bashrc file at the top and, if present, sources it before running the command.