LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-21-2015, 10:19 AM   #1
luckylinuxluser
LQ Newbie
 
Registered: Feb 2013
Posts: 25

Rep: Reputation: Disabled
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.
Attached Thumbnails
Click image for larger version

Name:	VjlKIW4.png
Views:	39
Size:	14.4 KB
ID:	18982  
 
Old 07-21-2015, 11:54 AM   #2
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Xubuntu, Manjaro
Posts: 757
Blog Entries: 3

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
Ehm, I'm not sure I understand your question. The command:
Code:
# apt-get install rrdtool libmailtools-perl librrds-perl libio-socket-ssl-perl
Simply installs the packages.

If you are uncertain about what the different packages are, you can always do a:
Code:
aptitude show libio-socket-ssl-perl
Best regards,
HMW
 
Old 07-21-2015, 01:36 PM   #3
luckylinuxluser
LQ Newbie
 
Registered: Feb 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
I typed in the command like this

Code:
apt-get install rddtool \ libmailtools-perl librrds-perl libio-socket-ssl-perl
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
 
Old 07-21-2015, 01:38 PM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,438

Rep: Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842
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.
 
1 members found this post helpful.
Old 07-21-2015, 01:41 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,399

Rep: Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760
Quote:
Originally Posted by luckylinuxluser View Post
I typed in the command like this

Code:
apt-get install rddtool \ libmailtools-perl librrds-perl libio-socket-ssl-perl
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] timestamp of command history doesn't show time command was executed? UprLftCstr Linux - Newbie 3 04-17-2014 12:31 PM
ShellScript executed from command prmpt but not executed from crontab or at command BMMadhav Linux - Newbie 1 11-16-2012 07:20 PM
how to see which command has been executed ? Volcano Linux - Newbie 4 12-11-2006 08:48 AM
which command executed on which terminal dsids Linux - Newbie 1 09-23-2006 08:57 AM
please help me explain what this means timberwolf Linux - Software 5 12-04-2003 11:28 AM


All times are GMT -5. The time now is 04:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration