Lurker News
Back to discussion

Comment by api

api1 reply#
You mean that isn't how to exit 'ed'?
mcguire1 reply#
Technically, the official method of exiting ed, if you're running as root, is:

    $ed a_file
    ... (normal usage)
    r /etc/motd
    w /boot/vmlinuz-3.19.0-16-generic (replace with specific kernel)
    !reboot
The alternative of "w /dev/sda1" is also acceptable.
mcguire1 reply#
Note to those objecting to '$': I have PS1 set to '$' on every account. It just saves confusion.
iso8859-11 reply#
Don't you think it is prettier with the space?

Continue this thread — 1 reply