I wrote this question. It was down voted. I'm not upset and am not here to argue. My question here is what can I learn from this, for this or future questions? Is there something inherently wrong with the question that I should have thought about? How can I make this question better?
This is, of course, my personal opinion. I didn't vote on any of your questions.
The main issue I see is that you seem to be asking why a person is using two specific commands in a 50+ minutes YouTube video. This is likely not to be well received:
- As it has been pointed out, questions should be self-contained.
- That video is lengthy; it would take a non-negligible amount of time to locate the relevant part and properly understand it: what exactly is that person trying to illustrate? How do
chrootfit into that? And answers would then likely refer to things that are not stated in your question.
Unfortunately, while the revised question shows your effort to make it more self-contained, you don't seem to be asking about specific points from the quoted text you added. Your main question still seems to be in (emphasis mine):
... I still do not understand why you would pick one over the other in those situations.
Again pointing to the video.
How you can improve your question:
- Show that you are not asking others to digest video material for you: providing a link to it is fine, but you should reduce its content to a complete and concise example. If the snippet from
pivot_root(8)is a suitable example to you, then simply state what you find unclear in it.
The difference between
chrootisn't a well defined concept by itself. They are distinct tools, how different they can be said to be depends on the context in which they are evaluated. Thus,
Please explain the differences, an example could be great.
should probably be limited to a specific context: is it meant to be that of Docker containers? (If so, refer to my previous point). The startup process of some Linux distribution? Something else?
Especially in relation to your revised question: keep it simple. Include every definition (with quotes1) needed to make sure your readers will be aligned with you, but no more than that. Make it clear how the external material integrates with the main point you are asking about.