Click to See Complete Forum and Search --> : Duh... How do I edit files from cl?


Landruu
12-29-2000, 02:37 PM
I've gotten to used to gui's. Anyway, I need to edit /etc/inetd.conf. But for undisclosed reasons, I need to do it at a command line.

Thanks
Landruu
(Mithaniel Marr)

BTBGuy
12-29-2000, 02:41 PM
The easiest (read: simplest) CLI editor is probably pico. I strongly recommend that you learn vi/vim *and* emacs. Just because they're available a lot more often, and they're a lot more powerful!

So...you'd need to type (at the CLI prompt)

pico yourfilename.here

That'll open it up (assuming you've got pico installed, of course...but it's pretty standard on most distros) and you can edit what you need to edit, then go out and learn vi/vim and emacs!!!

------------------
---
BTBGuy

Bob? Bob? I know no Bob!
I'm Larry-boy! Who are you?

compunuts
12-29-2000, 02:48 PM
You will get PICO with Red Hat like distribution and AE with Debian varients as the easiest editors. VI is standard across the Linux distros since I have yet to encounter a distro that doesn't come with VI installed.

Landruu
12-29-2000, 02:50 PM
I'm got Pico installed and reading the help pages now. Thanks

Landruu
(Mithaniel Marr)

Whipping Boy
12-29-2000, 06:06 PM
Oh, and if you're going to use some form of UNIX, it's not a good idea to let yourself get used to GUIs. Anything important needs to be done from the command line (and not in an Xterm or anything like that--get out of X entirely and do it from the command line).

Oh, and don't use Emacs. I hear it's pretty nice, except it doesn't have a text editor, so it's useless. Use vim.

------------------
Kurt Weber
Shell scripts? Shell scripts? We don't NEED no stinkin' shell scripts!
White, heterosexual, middle-class, and proud!
I've never understood why Bill Gates would name his company after his penis