Shell Script Does Not Exist
c@c-laptop:~$ locate /.bashrc
/etc/skel/.bashrc /home/c/.bashrc /root/.bashrc I need to edit /home/c/.bashrc However when I go to place> Home folders to go to /home/c , the file is not there. What should I do to make the file appear so that I can edit it? It is obviously a system file. |
Files whose name starts with a dot are hidden! From a terminal you can do
Code:
ls -a Code:
vi /home/c/.bashrc Quote:
|
Hi
is there a graphical interface for this? I cant seem to edit vi /home/c/.bashrc from command prompt. |
I dunno why nano works but vi does not work properly.
|
start with cd'ing into the dir, then do
Code:
ls -al .bashrc |
What does "vi does not work properly" mean? Any error message? If you need a GUI editor, try gedit (if running GNOME) or kwrite (if running KDE). They should be installed by default.
|
-rw-r--r-- 1 c c 3007 2011-07-12 21:56 .bashrc
Well I cant type words using the vi editor. Is there any difference between vi and nano? This is because this is the first time I am using vi. Is it different from any text editor? |
Quote:
|
Yes it is different and has 2 different modes. When you start it you are in command mode and as the name suggests it allows you to send commands
to the editor, some of which take you to the second mode which is insert mode and this allows you to enter text into the file. Just type - vi tutorial - into google and you will find a plethora of information. Should you wish to continue with it I would also suggest installing vim which is vi improved and is a little more user friendly. |
or just open a terminal and type vimtutor its a pretty good tutorial on vi.
|
If you want to see the files via the GUI .. There is an option in Nautilus-> View -> Show Hidden Files
|
Quote:
|
Quote:
|
First, ~/.bashrc has not to be in there, just create it yourself.
Second, any editor will do, just pick one that you like, it doesn't matter if it's GUI or text based as long as it's a plain text editor and not a word processor. |
Actually, according to post#7, it's there ...
|
All times are GMT -5. The time now is 10:37 AM. |