The .bashrc file is a hidden configuration file for the Bash shell on Linux and Unix systems. It is typically located in the home directory of the user who is currently logged in. In Debian, the default location for the .bashrc file is /home/username/.bashrc, where “username” is the name of the user account.

To access the .bashrc file, you can use a text editor such as nano or vi to open the file.

but how to locate the file ?

PS: Don’t forget it is a hidden file inside your home directory (you would not be the first to do a ls -l and thinking it is not there).

Do a:

ls -la ~/ | more

There should be a .bashrc on the first page. If not just create it with:

vi ~/.bashrc

PS: To append text to a file in Linux, you can use the echo command with the >> operator to append text to the end of a file. Here is an example:

echo "This is the text to append" >> filename.txt

By Shabazz

Software Engineer, MCSD, Web developer & Angular specialist

Leave a Reply

Your email address will not be published. Required fields are marked *