免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 711 | 回复: 2
打印 上一主题 下一主题

考考大家,, 这是我 (真实) 的毕业试题 2/2 (初级linux) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-05-03 13:23 |只看该作者 |倒序浏览
CIS 130 Final Exam
Part 2 of 2
2 Points Each
PERIODICALLY SAVE YOUR WORK ON A FLOPPY DISK
(In Linux, use Red Hat - system tools - disk management to mount and unmount your floppy disk).
Create a LINUX batch file to accomplish the following:

1 Clear the screen
2 Display the current time and date
3  Ask the user for the name of a path Hint: Try using read var. Remember, in Linux, a system variable is substituted by using a dollar sign (e.g., $var) 4 instead of encapsulation with % marks (e.g., %var%) as in DOS.
5 Ask the user for the name of a root directory
6 Create the root directory using the target path
7 Ask the user for the name of a first subdirectory
8 Create the first subdirectory in the root directory
9 Ask the user for the name of a second subdirectory
10 Create the second subdirectory in the first subdirectory directory
11 Ask the user to enter a first filename
12 Ask the user to enter some text for the first file
13 Create the first file in the first subdirectory using the text the user entered
14 Ask the user to enter a second filename
15 Ask the user to enter some text for the second file
16 Create the second file in the second subdirectory using the text the user entered
17 Display the directory contents of the directory structure you created above
18 Display the contents of each file
19 Display to the user text to allow the user to choose a choice of times: choice 1 is 9:10, choice 2 is 9:30, choice 3 is 9:40
20 Ask the user to make a choice
21 Display the user's choice
22 Create a different batch file to display the user's choice of time. (Do not use cron to schedule a task).
23 Run the choice display batch file from your main batch file
24 Remove the files you created
25 Remove the directories you created
26 Remove any system variables you created


Linux的
大家能做出几题?
要求全部写在一个能运行的文件里

论坛徽章:
0
2 [报告]
发表于 2004-06-02 13:20 |只看该作者

考考大家,, 这是我 (真实) 的毕业试题 2/2 (初级linux)

看不懂。

论坛徽章:
0
3 [报告]
发表于 2004-06-02 13:23 |只看该作者

考考大家,, 这是我 (真实) 的毕业试题 2/2 (初级linux)

呵呵,不会是套答案的吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP