As always: this is MY opinion.
The method posted by ATR could have been my answer.
- chaining commands with
&&
is all fine but it becomes rather annoying to read. - putting commands in a text file and executing it is better readable plus you can keep the commands identical to how someone posted them on the web.
How i can put all this in the terminal in one shot?
Executing a script is a "1 shot" so to me it is an answer. It is a different interpretation to the chaining with &&
but the end result is the same: 1 command to execute lots of instructions.
Your behaviour though seems to be crossing a few lines. The help states in the "be nice" sectionThe help states in the "be nice" section ...
Rudeness and belittling language are not okay. Your tone should match the way you'd talk in person with someone you respect and whom you want to respect you. If you don't have time to say something politely, just leave it for someone who does.
Be welcoming, be patient, and assume good intentions. Don't expect new users to know all the rules — they don't. And be patient while they learn. If you're here for help, make it as easy as possible for others to help you. Everyone here is volunteering, and no one responds well to demands for help.
and ...
Don't be a jerk. These are just a few examples. If you see them, flag them:
- Name-calling. Focus on the post, not the person. That includes terms that feel personal even when they're applied to posts (like "lazy", "ignorant", or "whiny").
Are you?
2 examples from comments in this topic in meta ...
"I will ask this one last time for you HOW DOES A SHELL SCRIPT ADDRESS THE QUESTION, "How to install software in terminal in one line and one time?" I don't care about your hypothetical, ust answer the bloody question or shut up."
That is not your call.
"Still did not answer my question, did you, so you know your wrong, stop being an idiot."
Sorry?!
Even if you would be correct in downvoting your subsequent behaviour is seriously lacking what I would consider to be from an upstanding user.
Sorry if this in any way ticks you off. But that is how I see it ;)