[SOLVED] Can someone explain what this example command means and how it should be executed?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can someone explain what this example command means and how it should be executed?
Please see the attached image.
I tried just typing it out exactly, but it didn't work so I'm thinking maybe the author of this article meant something else with the "" part.
so far i've just executed the "sudo apt-get install rrdtool" but I want to make sure I get all the packages I need to continue on with this tut.
I'd also appreciate any links to articles or threads about distros, ubuntu packages or tutorials for aspiring network engineers if you got them. my searches just ended up with people suggesting using the most popular distros or whatever.
I was wondering why the author of the tutorial i'm following used a backslash. What I wound up doing was just issuing the apt-get install command 4 times to install each package, but I suppose you can just separate different packages with a space and they'll install in succession?
Last edited by luckylinuxluser; 07-21-2015 at 01:41 PM.
Reason: spelling
If you look closely at the example you will see it is over 2 lines. The backslash is there to escape the new line that would normally be at the end of the line and tell the command, apt-get,
that the information is on more than a single line.
I was wondering why the author of the tutorial i'm following used a backslash. What I wound up doing was just issuing the apt-get install command 4 times to install each package, but I suppose you can just seperate different packages will a space and they'll install in succession?
The '\' can be followed by a carriage return and the rest of the command can go after it. It is used in things like the tutorial so that lines are broken at more convenient points for screenshots but, in my opinion, it is a bad idea to include in such tutorials as this thread demonstrates. Installing each package separately will do the same job though so don't worry.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.