Syntax problem
Hi !
I want to edit fstab. Can someone please help me see what's wrong whith the syntax. [[thor@localhost thor]$ su Password: [root@localhost thor]# edit /etc/fstab bash: edit: command not found [root@localhost thor]# |
edit isn't a valid editor like what your probably use to in DOS.
Use vi, vim, pico, emacs or any other valid editor in Linux. |
Just in case you forget:
alias edit='vi' |
Thank you !
In Nautilus I can rightclick on "fstab" and choose an editor to open the file. But I can only open it as "read only". No edit is possible. How can I open the file and be able to edit it? |
Quote:
|
That's the problem. What shall I write on the command line?
I tried "edit /etc/fstab" but it doesn't work. |
alias edit='vi'
edit /etc/fstab or: vi /etc/fstab |
Quote:
vi /etc/fstab vim /etc/fstab pico /etc/fstab Substitute your non-existent command of edit with vi, vim or pico or any other command that is a valid one or a valid editor in Linux. Regards. |
Thank you !
I will leave Windows XP for now and reboot my computer into Red Hat and try. I will be back and tell you if it works. :) |
Now I suceeded. :)
"gedit /etc/fstab" took me to the editor. Now I have edited fstab so I have access to all my Windows partitions. Thank you for helping me. I was slow in understanding your advices due to my bad english. :) :) :) |
All times are GMT -5. The time now is 03:02 AM. |