Is âinstallâ a shortcut for cp + chown + chmod, or does it do more?
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
I read man install
, and it seems that it just copies files with ownership & mode. So, is install
a shortcut for cp
+ chown
+ chmod
, or does it do more, under the hood?
software-installation file-copy chmod chown
add a comment |Â
up vote
-1
down vote
favorite
I read man install
, and it seems that it just copies files with ownership & mode. So, is install
a shortcut for cp
+ chown
+ chmod
, or does it do more, under the hood?
software-installation file-copy chmod chown
2
It does exactly what the man page says it does.
â Ignacio Vazquez-Abrams
Nov 4 '17 at 17:33
Given this, you almost certainly did not readman install
orman install
.
â JdeBP
Nov 4 '17 at 19:41
@JdeBP It is because I readman install
that I was hesitating if there are benefits of using it vs. using cp chown chmod.
â Basj
Nov 4 '17 at 19:56
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I read man install
, and it seems that it just copies files with ownership & mode. So, is install
a shortcut for cp
+ chown
+ chmod
, or does it do more, under the hood?
software-installation file-copy chmod chown
I read man install
, and it seems that it just copies files with ownership & mode. So, is install
a shortcut for cp
+ chown
+ chmod
, or does it do more, under the hood?
software-installation file-copy chmod chown
edited Nov 4 '17 at 17:41
asked Nov 4 '17 at 17:26
Basj
6181731
6181731
2
It does exactly what the man page says it does.
â Ignacio Vazquez-Abrams
Nov 4 '17 at 17:33
Given this, you almost certainly did not readman install
orman install
.
â JdeBP
Nov 4 '17 at 19:41
@JdeBP It is because I readman install
that I was hesitating if there are benefits of using it vs. using cp chown chmod.
â Basj
Nov 4 '17 at 19:56
add a comment |Â
2
It does exactly what the man page says it does.
â Ignacio Vazquez-Abrams
Nov 4 '17 at 17:33
Given this, you almost certainly did not readman install
orman install
.
â JdeBP
Nov 4 '17 at 19:41
@JdeBP It is because I readman install
that I was hesitating if there are benefits of using it vs. using cp chown chmod.
â Basj
Nov 4 '17 at 19:56
2
2
It does exactly what the man page says it does.
â Ignacio Vazquez-Abrams
Nov 4 '17 at 17:33
It does exactly what the man page says it does.
â Ignacio Vazquez-Abrams
Nov 4 '17 at 17:33
Given this, you almost certainly did not read
man install
or man install
.â JdeBP
Nov 4 '17 at 19:41
Given this, you almost certainly did not read
man install
or man install
.â JdeBP
Nov 4 '17 at 19:41
@JdeBP It is because I read
man install
that I was hesitating if there are benefits of using it vs. using cp chown chmod.â Basj
Nov 4 '17 at 19:56
@JdeBP It is because I read
man install
that I was hesitating if there are benefits of using it vs. using cp chown chmod.â Basj
Nov 4 '17 at 19:56
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
Unless $ which install
tells you that it is a shell built-in, install
shouldn't be some sort of wrapper to cp
+ chown
+ chmod
.
The man
page reveals that GNU install
has a few extra options, like -s
, which strips symbol tables to save space. I'm not sure that this can easily be achieved with cp
+ chown
+ chmod
, as this doesn't seem to be mentioned on any of their man
pages.
1
To replicate-s
you need to runstrip
, itâÂÂs not somethingcp
/chown
/chmod
can do.
â Stephen Kitt
Nov 4 '17 at 18:23
1
There are a lot more differences than even that. Don't forget the-d
option, and its subtle difference tomkdir -p
. Then with BSDinstall
there are atomic copying, all of themtree
-related functionality, and the various link-instead-of-copy modes.
â JdeBP
Nov 4 '17 at 19:25
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Unless $ which install
tells you that it is a shell built-in, install
shouldn't be some sort of wrapper to cp
+ chown
+ chmod
.
The man
page reveals that GNU install
has a few extra options, like -s
, which strips symbol tables to save space. I'm not sure that this can easily be achieved with cp
+ chown
+ chmod
, as this doesn't seem to be mentioned on any of their man
pages.
1
To replicate-s
you need to runstrip
, itâÂÂs not somethingcp
/chown
/chmod
can do.
â Stephen Kitt
Nov 4 '17 at 18:23
1
There are a lot more differences than even that. Don't forget the-d
option, and its subtle difference tomkdir -p
. Then with BSDinstall
there are atomic copying, all of themtree
-related functionality, and the various link-instead-of-copy modes.
â JdeBP
Nov 4 '17 at 19:25
add a comment |Â
up vote
1
down vote
Unless $ which install
tells you that it is a shell built-in, install
shouldn't be some sort of wrapper to cp
+ chown
+ chmod
.
The man
page reveals that GNU install
has a few extra options, like -s
, which strips symbol tables to save space. I'm not sure that this can easily be achieved with cp
+ chown
+ chmod
, as this doesn't seem to be mentioned on any of their man
pages.
1
To replicate-s
you need to runstrip
, itâÂÂs not somethingcp
/chown
/chmod
can do.
â Stephen Kitt
Nov 4 '17 at 18:23
1
There are a lot more differences than even that. Don't forget the-d
option, and its subtle difference tomkdir -p
. Then with BSDinstall
there are atomic copying, all of themtree
-related functionality, and the various link-instead-of-copy modes.
â JdeBP
Nov 4 '17 at 19:25
add a comment |Â
up vote
1
down vote
up vote
1
down vote
Unless $ which install
tells you that it is a shell built-in, install
shouldn't be some sort of wrapper to cp
+ chown
+ chmod
.
The man
page reveals that GNU install
has a few extra options, like -s
, which strips symbol tables to save space. I'm not sure that this can easily be achieved with cp
+ chown
+ chmod
, as this doesn't seem to be mentioned on any of their man
pages.
Unless $ which install
tells you that it is a shell built-in, install
shouldn't be some sort of wrapper to cp
+ chown
+ chmod
.
The man
page reveals that GNU install
has a few extra options, like -s
, which strips symbol tables to save space. I'm not sure that this can easily be achieved with cp
+ chown
+ chmod
, as this doesn't seem to be mentioned on any of their man
pages.
answered Nov 4 '17 at 17:55
Charles Diploma
666
666
1
To replicate-s
you need to runstrip
, itâÂÂs not somethingcp
/chown
/chmod
can do.
â Stephen Kitt
Nov 4 '17 at 18:23
1
There are a lot more differences than even that. Don't forget the-d
option, and its subtle difference tomkdir -p
. Then with BSDinstall
there are atomic copying, all of themtree
-related functionality, and the various link-instead-of-copy modes.
â JdeBP
Nov 4 '17 at 19:25
add a comment |Â
1
To replicate-s
you need to runstrip
, itâÂÂs not somethingcp
/chown
/chmod
can do.
â Stephen Kitt
Nov 4 '17 at 18:23
1
There are a lot more differences than even that. Don't forget the-d
option, and its subtle difference tomkdir -p
. Then with BSDinstall
there are atomic copying, all of themtree
-related functionality, and the various link-instead-of-copy modes.
â JdeBP
Nov 4 '17 at 19:25
1
1
To replicate
-s
you need to run strip
, itâÂÂs not something cp
/chown
/chmod
can do.â Stephen Kitt
Nov 4 '17 at 18:23
To replicate
-s
you need to run strip
, itâÂÂs not something cp
/chown
/chmod
can do.â Stephen Kitt
Nov 4 '17 at 18:23
1
1
There are a lot more differences than even that. Don't forget the
-d
option, and its subtle difference to mkdir -p
. Then with BSD install
there are atomic copying, all of the mtree
-related functionality, and the various link-instead-of-copy modes.â JdeBP
Nov 4 '17 at 19:25
There are a lot more differences than even that. Don't forget the
-d
option, and its subtle difference to mkdir -p
. Then with BSD install
there are atomic copying, all of the mtree
-related functionality, and the various link-instead-of-copy modes.â JdeBP
Nov 4 '17 at 19:25
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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%2funix.stackexchange.com%2fquestions%2f402534%2fis-install-a-shortcut-for-cp-chown-chmod-or-does-it-do-more%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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');
);
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');
);
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
It does exactly what the man page says it does.
â Ignacio Vazquez-Abrams
Nov 4 '17 at 17:33
Given this, you almost certainly did not read
man install
orman install
.â JdeBP
Nov 4 '17 at 19:41
@JdeBP It is because I read
man install
that I was hesitating if there are benefits of using it vs. using cp chown chmod.â Basj
Nov 4 '17 at 19:56