Separate names with a comma.
Discussion in 'Mac Basics and Help' started by tidyboy, Dec 15, 2006.
how do I edit a file in a terminal. What is the command?
Depends on what text editor you want to use. Personally I use vi, but it's a bit UNIX-y for traditional Mac folks.
Command would either be "vi <filename>" or "sudo vi <filename>" for system config files.
You can also use the Open command to open TextEdit, although that's not strictly in the Terminal, it just opens TextEdit from within it. "Open /Applications/TextEdit.app <filename>" will do the biz there.
If you prefer an editor that isn't used to spell 'evil', then try using pico.
sudo pico /etc/named.conf
tidyboy, since you have been asking about terminal commands, you may find this site valuable as you learn. Its just a bunch of man pages for the various commands.
Or this one if you're new to command line life, a Darwin specific tutorial: