[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nano, vi, vi materials ... Re: Assisting Elise S with editing grub.cfg
- To: BerkeleyLUG <berkeleylug@googlegroups.com>
- Subject: nano, vi, vi materials ... Re: Assisting Elise S with editing grub.cfg
- From: "Michael Paoli" <Michael.Paoli@cal.berkeley.edu>
- Date: Tue, 14 Jul 2020 23:57:49 -0700
- Arc-authentication-results: i=2; gmr-mx.google.com; spf=neutral (google.com: 198.144.192.42 is neither permitted nor denied by best guess record for domain of michael.paoli@cal.berkeley.edu) smtp.mailfrom=Michael.Paoli@cal.berkeley.edu
- Arc-authentication-results: i=1; gmr-mx.google.com; spf=neutral (google.com: 198.144.192.42 is neither permitted nor denied by best guess record for domain of michael.paoli@cal.berkeley.edu) smtp.mailfrom=Michael.Paoli@cal.berkeley.edu
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent :content-disposition:mime-version:in-reply-to:references:subject:to :from:date:message-id:sender:dkim-signature; bh=t3fN/n+sqUUHOdNfgqMpgsuDjq+nqWJgG1qL5sy5UNM=; b=C4q0S9MVAjoCKdBerJihISxRXUxtbGxAj7lRzK6zipKZgBLOKy0hnqszEO2Ws87Vc3 J+Ex4weVzAL+hIVGaUQAV5tlvRIpwjhtoHq1LrsQS3ozF11dEV1v5OnVhX7usHQO4+Bn FW9miU+saqMUlXxxvfxcdh4Pvg7aVE0rYb6yo7DVzr+8CTddUpGWMJL6gujZlUDl8ZDK CiB26gi4tcV4Ceo/7wtFDJ3iLNoAcDdAY06l5S1/d6mHu+lI+qULQ7dnZWxGxN48dctv d/3+krdu2gzvxr0LpoGWuYdB10hhN9rkSTYwhG76dBRhdVIW2QcYAJsruYd4eLOz/rGj Fe5g==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-transfer-encoding:content-disposition :mime-version:in-reply-to:references:subject:to:from:date:message-id; bh=UoDTThxI+uNpUNTghKVS6SkOQo3lH3+GJCgxXMJ4vKM=; b=i7q/23dQ/OVHN5Uhq3tV0b+9ldmNer7kTWG5XXqYZaTQN2sM+9vm3M1jUByOM7y3dd aToKAIKDuZls/47IivzcLyUScoob1k0IH57JomUuTl+d6klT4rCKCfu6wf2cN4hbKIr0 CglbFZc7WyaiPSaCOhj9LV1oFvYx8q6OnB5lNbel8e1Ax8Cw6qJlcnhskueee5+2MeYj MSbtL5ZjVAWa5wD5yuvqlyVWyVn4NAD/iLKR74MEwwn8mal2Y2wDSxsW3C8GtWZ9gH8k bk6bq6iVRQpxaO/9irKf37JkNyANRnCGyQn3QskYlCQiJbCdNGvDVSgxH3Hzc0bONhGH S/aA==
- Arc-seal: i=2; a=rsa-sha256; t=1594796270; cv=pass; d=google.com; s=arc-20160816; b=wwIFH9/86M5bJHeVLvjTsMj0iw0jtqK3SXAkIHCLYxFyisKEdxAgN2ACHWG5I2Rhif +noVH0/4JmrYsq+vHpiM2X5i4txO6PthQrG2d3wiGVK4kF0gc3K6pz/zJ+2rsa84t2kt aew5MC/MB7irCuewogEG/MwAy/LSnTJfDSbX2E1JiX9ZB/Yc+N5ZOWLbaVUIu5K61xv6 MN5A0Nqf20ozwzsEl9aswV+cV9NC/1Hbtq0uPSCtJihLDwmTCj/YDOeUBFETQOqQXvQg rW8JLWmx4BjFmO+qz4cAsA0iJtlpfd8haacLHai4avLa7KH2ZIJGjoHajw7k5hlCPtC7 mKJw==
- Arc-seal: i=1; a=rsa-sha256; t=1594796270; cv=none; d=google.com; s=arc-20160816; b=vu3g2UEDN3URbEaGqmHFPqhjTjD4gtFtGjhMw0ajBdWGXvtExXrSSk3x9jhu6uJJ7+ p+V9aUPqjfBIGFRp6G5CSg9ghdID9aMwtLCnH877SFhUDlN2yEKfjVl6dOHwv3gxogGi V0MNbSaztt8FpTx+UTau4bZ56YYmoKhtUskHUa6e8trqURSEX2B0fnpiye7leZKlPMBA ZiE2wH9fI+XC3oN1rLqcFyvTFAxhEwOBfce8DqwNjlmWnTxhk739hqGovE2ZGVscRfZy 6dO85NnVJSdQbEno3taMTXHBCY1V0m9Dz5cHobesFzS9Jmel1b/d84YSEy7Nzk37u/uB I3hg==
- Delivered-to: historian@entropia.netisland.net
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:message-id:date:from:to:subject:references:in-reply-to :mime-version:content-disposition:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=t3fN/n+sqUUHOdNfgqMpgsuDjq+nqWJgG1qL5sy5UNM=; b=L/p0/iA9o5iAXdp5EOXKvQB/C5BU1nVKbbjSvoQ0+0du9A20KySFgYAPKLPCUObiYW 7ryc+IDEE6C8Xzn05U79oTrzQr3Kc4zxwpJlYicgjawwTDnQkjz9tAHFS2/X5VrNxaoR DeE/786E5rPaoK/qo6lC2NYDRtKTCVJZrnHr0JzuzyESsBbsdlWENyDD1YEi0whcKeSw xg2oFT9BhKiqcDYa3g8grVBKz6jnz3wkmAjL5JQtn0gF1lNwIJdoa/1sSjaYRjfLuJvB rILO8phtHgyr1t0/r7krjgrIcpa36ACMMDLf323UhVZbdTSU1xAAfMrVaVeXRCA8LvAM j83Q==
- In-reply-to: <b1c7099b-be35-4be0-a6ea-98e1da701fffo@googlegroups.com>
- List-archive: <https://groups.google.com/group/berkeleylu>
- List-help: <https://groups.google.com/support/>, <mailto:berkeleylug+help@googlegroups.com>
- List-id: <berkeleylug.googlegroups.com>
- List-post: <https://groups.google.com/group/berkeleylug/post>, <mailto:berkeleylug@googlegroups.com>
- List-subscribe: <https://groups.google.com/group/berkeleylug/subscribe>, <mailto:berkeleylug+subscribe@googlegroups.com>
- List-unsubscribe: <mailto:googlegroups-manage+61884646931+unsubscribe@googlegroups.com>, <https://groups.google.com/group/berkeleylug/subscribe>
- Mailing-list: list berkeleylug@googlegroups.com; contact berkeleylug+owners@googlegroups.com
- References: <b1c7099b-be35-4be0-a6ea-98e1da701fffo@googlegroups.com>
- Reply-to: berkeleylug@googlegroups.com
- Sender: berkeleylug@googlegroups.com
- User-agent: Internet Messaging Program (IMP) H3 (4.2.1-RC1)
So, yeah, sure there's nano(1):
NANO(1) General Commands Manual NANO(1)
NAME
nano - Nano's ANOther editor, an enhanced free Pico clone
SYNOPSIS
nano [options] [[+line[,column]] file]...
DESCRIPTION
nano is a small, free and friendly editor which aims to replace Pico,
the default editor included in the non-free Pine package. On top of
copying Pico's look and feel, nano also implements some missing (or
disabled by default) features in Pico, such as "search and replace" and
"go to line and column number".
And sure, it can be used to get folks up to editing files on, e.g. Linux,
quite quickly - very easy to learn/use, etc.
However, too ... vi(1) - it's the standard Linux(/Unix/BSD) text editor.
As I often say of vi:
optimized for ease of use and speed by those proficient at it
not optimized for ease of learning it
So ... it's definitely not the easiest to learn, but after becoming
reasonably proficient at it, it's highly efficient and well optimized.
E.g. my highly experienced vi fingers do stuff so fast and efficiently in
vi, that if I have to stop and slow down and try to explain what I did and
what I typed in and the command or sequence of commands I used to do
what I did - or so much as think about it in any detail - that slows me
way down. Also, often even working alongside coworkers that are quite
experienced in vi (like 3+ years using vi), not too uncommonly they'll
still see what I did on screen and how quickly and are still like:
"Wow! How'd you do *that*! Show me!"
And, I've even known folks that have been using EMACS for many years and
are highly proficient at it ... then take the time to learn vi, and
after a while end up concluding that vi is the superior text editor
for use (e.g. complaining about all the EMACS keystroke inefficiencies
of all the needed reaches for the Meta key all the dang time).
Or, as is oft said, EMACS is a perfectly good operating system that
just lacks a good text editor (EMACS is loaded with stuff and huge).
So, yeah, I couldn't navigate my way through nano very quickly at all.
I'd almost always pick vi - or even ex or ed - over nano.
And for those wondering, ex and vi are the same program - just different
modes (and one can switch between those modes within the program),
and ed is somewhat similar to ex in ex mode - ed being a bit simpler
(no visual mode) and well predates ex.
Anyway, vi(1) - I'm a relative expert in it. And have given presentations
and training sessions on vi(1) ... numerous times even.
And, oooh, materials! :-)
For the latest, have a look here:
http://www.mpaoli.net/~michael/unix/vi/
Probably start by having a peek at the README file(s) within,
that quite well explains what's there.
Oh, also ...
http://www.mpaoli.net/
... not exactly a high availability site. So, if one finds it down
or inaccessible or whatever, probably just try again another hour
or another day or something like that.
From: goossbears <acohen36@gmail.com>
Subject: Assisting Elise S with editing grub.cfg
Date: Sun, 12 Jul 2020 13:25:10 -0700 (PDT)
During today's BerkeleyLUG meetup on Jitsi, Rick M. and Michael P. (and one
or two others?) were assisting Elise S. with her splash screen bootup issue
on Ubuntu (yes, could've been Xubuntu or Lubuntu.)
IIRC, this involved assisting Elise with editing her computer's
/boot/grub/grub.cfg startup file as the root/superuser ('sudo') so that
she and others could view the startup messages present when the computer
starts loading X/L/Ubuntu.
Instead of using the slightly more difficult to use 'Vi' editor, might I
suggest that 'Nano' is and would have been a better choice to use in this
case? For the one or two of you reading this who weren't aware of this
already, "Nano <https://www.nano-editor.org/> is the default terminal-based
text editor <https://itsfoss.com/command-line-text-editors-linux/> in
Ubuntu and many other Linux distributions" [1].
~~~~~~~~~ quoting [2] ~~~~~~~~~~~
[Nano is] part of a family of text editors that includes the more robust
(but significantly more complex) vi and emacs. For most uses, nano is easy
to use and it doesn't require a significant learning curve. Just as with
the 1980s-era text-based word processors like WordStar, nano offers a
dynamic two-line command reference at the bottom of the terminal window.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using 'nano' likely also fulfills the role (again, in the particular case
with Elise's simpler editing tasks) of the KISS Principle (see [3], [4],
[5] and similar references.)
-Aaron
References/excerpts
[1]https://itsfoss.com/nano-editor-guide/
[2]https://www.lifewire.com/beginners-guide-to-nano-editor-3859002
[3]http://principles-wiki.net/principles:keep_it_simple_stupid
[4]https://people.apache.org/~fhanik/kiss.html
[5]https://www.interaction-design.org/literature/article/kiss-keep-it-simple-stupid-a-design-principle
--
You received this message because you are subscribed to the Google Groups "BerkeleyLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to berkeleylug+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/berkeleylug/20200714235749.10434utvm7abnk84%40webmail.rawbw.com.