Re: crontab



Jan Panteltje wrote:
Just as root use:

crontab -l > myconfig

Why "as root"? Perhaps he's editing his own (user's) crontab.

Then use any editor to edit 'myconfig'.

(I use joe as editor, vi sucks, joe is a full screen editor).
<space for flames>

LOL :)


Few things about Vi:

- some distros have elVIs instead of VIm

- Vi has two modes: command and edit
- when you run it, it's in command mode:
- press A to append text or I to insert
- press ESC to leave edit mode and go back to command mode
- in command mode: press "x" to delete a character
- to delete line, press "d" key twice
- in command mode type :w and hit Enter to save
- :q to exit
- :q! to exit even if you made changes
- :wq to save and exit

That should be enough for beginners who don't want to learn Vi, but need to use it few times in their life.

--
Milan Babuskov
http://njam.sourceforge.net
http://swoes.blogspot.com
.



Relevant Pages

  • Re: [opensuse] help! How did EDITOR=/usr/bin/joe get set and how do I get vi back -- permane
    ... a blue screen editor appeared and I had no idea how to get out of it so I just hit ctrl+c to exit. ... Further investigation revealed that "joe" was now my default editor? ... I exit a shell, su to reopen another, and the thing is set to joe again. ...
    (SuSE)
  • Re: Great SWT Program
    ... In command mode, one is typing commands; ... It's having sequences analogous to typing commands at a shell prompt, ... in while your back was turned makes the editor do nothing when the 'e' ... And then learning the wacky bindings of vi or emacs is ...
    (comp.lang.java.programmer)
  • Re: Sony CDs are not safe to play in a Windows computer
    ... - force quit:wq - save and quit:wq! ... And all of these, presumably, work only if you're in command mode. ... against the editor, how to get from - 'edit' mode? ... yet is that there doesn't seem to be a way to tell it either "open a new buffer which is not associated with a file" or "associate this non-file buffer with a file". ...
    (rec.arts.anime.misc)
  • Re: Sony CDs are not safe to play in a Windows computer
    ... - back into command mode; I also, more to the point, don't like the notion of the inconvenience of having to switch modes every time I want to start doing complicated things or start editing text again. ... requires me to climb a learning curve, I'd go to what is reputedly the most powerful of all: emacs. ... noticed yet is that there doesn't seem to be a way to tell it either "open a new buffer which is not associated with a file" or "associate this non-file buffer with a file". ... These facts have baffled me ever since I first noticed them, since they're essential to two of the most common things I know of that people do with a text editor, and yet the most legendary editor in existence doesn't seem to support them even in design terms. ...
    (rec.arts.anime.misc)
  • Re: Problem setting up NFS on Ubuntu
    ... > It's a very good way to screw up the system. ... You can't trust any other editor ... "helpfully" chooses to show or interpret. ... To me it seems entirely natural that there be a command mode that is ...
    (comp.os.linux.setup)