- This topic has 3 replies, 2 voices, and was last updated 4 years, 2 months ago by .
Viewing 3 reply threads
Viewing 3 reply threads
- You must be logged in to reply to this topic.
› Forums › Technical support › Linux › Unable to edit .bashrc
I tried to edit ~/.bashrc to add the path. But even when I used ‘sudo vim ~/.bashrc’, I still got the error ‘can’t open file for writing’. I am wondering why this happened. Thanks!
When I tried to use the command ‘gedit ~/.bashrc’, I got the error ‘Could not find the file “/home/atlab/¬/.bashrc”.’ It seems that this file does not exist.
That error indicates that it is looking for the file /home/atlab/¬/.bashrc
. I think you are typing the incorrect tilde character. This is a special character for the shell and is expanded to your home directory, which is /home/atlab/
.
If you can’t find the correct tilde on your keyboard, either cut-and-paste it from the instructions, or use the full path to the file instead:
$ gedit /home/atlab/.bashrc
or do it from your home directory:
$ cd $ gedit .bashrc
It works now. Thank you!
Some forums are only available if you are logged in. Searching will only return results from those forums if you log in.
Copyright © 2024 · Balance Child Theme on Genesis Framework · WordPress · Log in