题目
题目

IWBS001 Quiz Seven | LA010- Requires Respondus LockDown Browser

单项选择题

Given the following script code: 1   Sort Stations.txt > SortCount.txt 2   echo "The number of words in the file:" >> SortCount.txt 3   cat Stations.txt | wc -w >> SortCount.txt 4   echo "The number of line in the file:" >> SortCount.txt 5   cat Stations.txt | wc -l >> SortCount.txt Which line of code will cause error when running the script? Assume that file Stations.txt exists and is accessible.

选项
A.Line 1
B.Line 3
C.Line 5
D.There is no error in the script
查看解析

查看解析

标准答案
Please login to view
思路分析
The task presents a small shell script and asks which line will cause an error when executed, assuming Stations.txt exists and is readable. Option 1: Line 1 - Sort Stations.txt > SortCount.txt. Here the potential issue is that the command name is capitalized as Sort. On most Unix-like systems, command names are case-sensitive and the correct lowercase form is sort. If the system uses a standard Linux/Unix environment, typing Sort wil......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!