Editing Files Via Shell
Hi
I want to be able to fully manage my linux server via SSH. I have Mandrake 9.2 installed with samba server. I will want to add samba shares via SSH, the only way I know of doing this is to edit the samba.conf file and restart the service, so I need to be able to edit it via the shell. I login as my user and use the command su to get root privs. Where do I go from here? Thanks in advance! Matt |
well it depends what editor you want to use ... i will use "vim" in my example ..
so your now at a root prompt you can type : vim /etc/samba/smb.conf (thats the location on my box) and basically just use your arrow keys when you get inside the file to move around or press : Code:
/ then when you get to the part you want to edit you type : Code:
i Code:
ESC Code:
SHIFT ZZ Code:
:wq vim simple commands a vim tutorial list of tutorials within the acutal HOWTO |
DrOzz
Thank you for your very detailed reply! Will give it a go and let you know how I get on. Matt |
All times are GMT -5. The time now is 10:25 AM. |