Why is âboot-repairâ listed twice in the ubuntu documentation?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
5
down vote
favorite
I'm new to Ubuntu and I'm going through the official documentation. Can someone explain why the command sudo apt-get install -y boot-repair && boot-repair
lists "boot-repair" twice?
boot-repair
add a comment |Â
up vote
5
down vote
favorite
I'm new to Ubuntu and I'm going through the official documentation. Can someone explain why the command sudo apt-get install -y boot-repair && boot-repair
lists "boot-repair" twice?
boot-repair
2
Obviously becauseboot-repair
is twice as important as the other commands (joke)
â Baldrickk
Feb 20 at 11:57
add a comment |Â
up vote
5
down vote
favorite
up vote
5
down vote
favorite
I'm new to Ubuntu and I'm going through the official documentation. Can someone explain why the command sudo apt-get install -y boot-repair && boot-repair
lists "boot-repair" twice?
boot-repair
I'm new to Ubuntu and I'm going through the official documentation. Can someone explain why the command sudo apt-get install -y boot-repair && boot-repair
lists "boot-repair" twice?
boot-repair
boot-repair
asked Feb 20 at 1:32
![](https://i.stack.imgur.com/R8jPW.jpg?s=32&g=1)
![](https://i.stack.imgur.com/R8jPW.jpg?s=32&g=1)
Gabriel Fair
98115
98115
2
Obviously becauseboot-repair
is twice as important as the other commands (joke)
â Baldrickk
Feb 20 at 11:57
add a comment |Â
2
Obviously becauseboot-repair
is twice as important as the other commands (joke)
â Baldrickk
Feb 20 at 11:57
2
2
Obviously because
boot-repair
is twice as important as the other commands (joke)â Baldrickk
Feb 20 at 11:57
Obviously because
boot-repair
is twice as important as the other commands (joke)â Baldrickk
Feb 20 at 11:57
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
12
down vote
accepted
The last line contains two commands.
The first part installs boot-repair
. (sudo apt-get install -y boot-repair
)
The "&&" characters is a delimiter like ";" is, however its conditional on success, ie. the command following it is only to be run IF the first command had no errors.
The 'second' boot-repair
is the one that runs it.
If you used a ";" and the install command worked; the result would be the same as it'd install, then run. If however the install failed you'd get errors for the install failing, followed by more errors asboot-repair
couldn't be found... The && conditional parameters reduces the errors (if they occur) as they [errors] can scare users (what did i do wrong? did i break it?..)
â guiverc
Feb 20 at 1:40
1
oh of course, that makes sense. Thank you. I was thinking that it was trying to install it twice.
â Gabriel Fair
Feb 20 at 1:50
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
12
down vote
accepted
The last line contains two commands.
The first part installs boot-repair
. (sudo apt-get install -y boot-repair
)
The "&&" characters is a delimiter like ";" is, however its conditional on success, ie. the command following it is only to be run IF the first command had no errors.
The 'second' boot-repair
is the one that runs it.
If you used a ";" and the install command worked; the result would be the same as it'd install, then run. If however the install failed you'd get errors for the install failing, followed by more errors asboot-repair
couldn't be found... The && conditional parameters reduces the errors (if they occur) as they [errors] can scare users (what did i do wrong? did i break it?..)
â guiverc
Feb 20 at 1:40
1
oh of course, that makes sense. Thank you. I was thinking that it was trying to install it twice.
â Gabriel Fair
Feb 20 at 1:50
add a comment |Â
up vote
12
down vote
accepted
The last line contains two commands.
The first part installs boot-repair
. (sudo apt-get install -y boot-repair
)
The "&&" characters is a delimiter like ";" is, however its conditional on success, ie. the command following it is only to be run IF the first command had no errors.
The 'second' boot-repair
is the one that runs it.
If you used a ";" and the install command worked; the result would be the same as it'd install, then run. If however the install failed you'd get errors for the install failing, followed by more errors asboot-repair
couldn't be found... The && conditional parameters reduces the errors (if they occur) as they [errors] can scare users (what did i do wrong? did i break it?..)
â guiverc
Feb 20 at 1:40
1
oh of course, that makes sense. Thank you. I was thinking that it was trying to install it twice.
â Gabriel Fair
Feb 20 at 1:50
add a comment |Â
up vote
12
down vote
accepted
up vote
12
down vote
accepted
The last line contains two commands.
The first part installs boot-repair
. (sudo apt-get install -y boot-repair
)
The "&&" characters is a delimiter like ";" is, however its conditional on success, ie. the command following it is only to be run IF the first command had no errors.
The 'second' boot-repair
is the one that runs it.
The last line contains two commands.
The first part installs boot-repair
. (sudo apt-get install -y boot-repair
)
The "&&" characters is a delimiter like ";" is, however its conditional on success, ie. the command following it is only to be run IF the first command had no errors.
The 'second' boot-repair
is the one that runs it.
answered Feb 20 at 1:36
![](https://lh4.googleusercontent.com/-weQLu1Im8es/AAAAAAAAAAI/AAAAAAAABEg/4bXLPukGRgA/photo.jpg?sz=32)
![](https://lh4.googleusercontent.com/-weQLu1Im8es/AAAAAAAAAAI/AAAAAAAABEg/4bXLPukGRgA/photo.jpg?sz=32)
guiverc
3,72811422
3,72811422
If you used a ";" and the install command worked; the result would be the same as it'd install, then run. If however the install failed you'd get errors for the install failing, followed by more errors asboot-repair
couldn't be found... The && conditional parameters reduces the errors (if they occur) as they [errors] can scare users (what did i do wrong? did i break it?..)
â guiverc
Feb 20 at 1:40
1
oh of course, that makes sense. Thank you. I was thinking that it was trying to install it twice.
â Gabriel Fair
Feb 20 at 1:50
add a comment |Â
If you used a ";" and the install command worked; the result would be the same as it'd install, then run. If however the install failed you'd get errors for the install failing, followed by more errors asboot-repair
couldn't be found... The && conditional parameters reduces the errors (if they occur) as they [errors] can scare users (what did i do wrong? did i break it?..)
â guiverc
Feb 20 at 1:40
1
oh of course, that makes sense. Thank you. I was thinking that it was trying to install it twice.
â Gabriel Fair
Feb 20 at 1:50
If you used a ";" and the install command worked; the result would be the same as it'd install, then run. If however the install failed you'd get errors for the install failing, followed by more errors as
boot-repair
couldn't be found... The && conditional parameters reduces the errors (if they occur) as they [errors] can scare users (what did i do wrong? did i break it?..)â guiverc
Feb 20 at 1:40
If you used a ";" and the install command worked; the result would be the same as it'd install, then run. If however the install failed you'd get errors for the install failing, followed by more errors as
boot-repair
couldn't be found... The && conditional parameters reduces the errors (if they occur) as they [errors] can scare users (what did i do wrong? did i break it?..)â guiverc
Feb 20 at 1:40
1
1
oh of course, that makes sense. Thank you. I was thinking that it was trying to install it twice.
â Gabriel Fair
Feb 20 at 1:50
oh of course, that makes sense. Thank you. I was thinking that it was trying to install it twice.
â Gabriel Fair
Feb 20 at 1:50
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1007878%2fwhy-is-boot-repair-listed-twice-in-the-ubuntu-documentation%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
Obviously because
boot-repair
is twice as important as the other commands (joke)â Baldrickk
Feb 20 at 11:57