Similarly, I saw no problem withWe can usually (safely) assume that anyone reading the answer will actually read it thoroughly. It's the same reason we don't use bold to emphasize things like Ubuntu 14.04. Therefore, the transition from regular-land to container-land is already well-defined.
This concept of "prompt compression" (so, turning $user@host:~$
over aninto (actual$
) root promptis pretty common, as the additional information is almost always excessive. In LinuxWe don't need to know your username or hostname, we just need to know that we're typing this into a plainprompt somewhere.
Now, I am fully aware that $lxc
pretty much always means "thisinternally is a command meant to be run in a shell" whileroot
and will have a #
prompt. This is where clarity becomes important -- #
can mean a comment just as easily as it means a root shell. In this case, it really doesn't matter. You enter a commentcontainer, oryou get a fewroot shell automatically, no other things that I'm too tiredactions required. And, as we've already entered the container, it doesn't matter much.
We can change it to remember at#
(although that may still cause some confusion whether it's a comment or not), but we shouldn't include the momentusername/hostname, just for the sake of brevity. It's mostly justoften a stylistic choice, and one that everyone makes differently accordinggood writing practice to however they learned/are usedsay what you need to say as clearly as possible, using as few words as possible.
And regardingRegarding point 2:
That said, removing sudo
from the OP's post does change the post's intent (something edits typically shouldn't do), and therefore should be discussed (at least briefly) in the comments section about whether sudo
is (or isn't) necessary instead of leaving it up to the editors to know. See Zanna's answer on editing code. Personally, I'd consider removing sudo
to fall under the "simplification" category as opposed to an error correction.