早教吧作业答案频道 -->英语-->
linuxfind命令中-exex命令语法find.-typef-userroot-execchownslynux{}\;这条语句中的\;有什么作用,书上只解释了{}的作用
题目详情
linux find命令中-exex命令语法
find .-type f -user root -exec chown slynux {} \;
这条语句中的 \;有什么作用,书上只解释了{}的作用
find .-type f -user root -exec chown slynux {} \;
这条语句中的 \;有什么作用,书上只解释了{}的作用
▼优质解答
答案和解析
-exec command ;
Execute command; true if 0 status is returned.All following
arguments to find are taken to be arguments to the command until
an argument consisting of `;' is encountered.The string `{}'
is replaced by the current file name being processed everywhere
it occurs in the arguments to the command,not just in arguments
where it is alone,as in some versions of find.Both of these
constructions might need to be escaped (with a `\') or quoted to
protect them from expansion by the shell.
Execute command; true if 0 status is returned.All following
arguments to find are taken to be arguments to the command until
an argument consisting of `;' is encountered.The string `{}'
is replaced by the current file name being processed everywhere
it occurs in the arguments to the command,not just in arguments
where it is alone,as in some versions of find.Both of these
constructions might need to be escaped (with a `\') or quoted to
protect them from expansion by the shell.
看了 linuxfind命令中-e...的网友还看了以下:
某刑事案件的六个嫌疑分子A,B,C,D,E,F交待了以下材料:AB与F作案;BD与A作案;CB与E 2020-05-16 …
某刑事案件的六个嫌疑分子A,B,C,D,E,F交待了以下材料:某刑事案件的六个嫌疑分子A,B,C, 2020-05-16 …
D具有酸性,F具有中性,在D和F中加酸和高锰酸钾共热时,都被氧化放出CO2,求D和F的结构式,D和 2020-06-12 …
某同学用显微镜观察洋葱鳞片叶内表皮细胞时看到了如图所示几幅图象,这几幅图象在操作过程中出现的顺序依 2020-07-01 …
CP是等边△ABC外角∠ACE平分线,点D在射线BC上,以D为顶点、DA为一边作角ADF=60°, 2020-07-17 …
某刑事案件的六个嫌疑分子A,B,C,D,E,F交待了以下材料:某刑事案件的六个嫌疑分子A,B,C, 2020-07-29 …
已知,在△ABC中,AB=AC,D为AB边上一点,过点D作DF∥AC交BC于F,过F作FE∥AB交A 2020-11-03 …
求解多元一次不等式的编程47a-b-c-d-e-f-g>047b-a-c-d-e-f-g>023c- 2020-12-14 …
如图,在等边△ABC中,过A,B,C三点在三角形内分别作∠1=∠2=∠3,三个角的变相互教育点D,E 2020-12-25 …
作用在物体上的力F,它的两个分力为F1和F2,则下列说法正确的是()A.F的作用效果与F1和F2共同 2020-12-26 …