网络编程技术实验指导书
11页1、 网络编程技术实验指导书董黎刚信息与电子工程学院浙江工商大学10/3/2006 2:24:00 PM Content1. Operation of Linux (操作性)11.1 Purpose11.2 Content11.3 Hints22. C Programming Practice(设计性)32.1 Purpose32.2 Content32.3 Grading33. Simple Socket Programming(验证性)43.1 Purpose43.2 Content43.3 Hints44. Concurrency Socket Programming(验证性)54.1 Purpose54.2 Content54.3 Hints55. Windows Socket Programming(验证性)65.1 Purpose65.2 Content65.3 Hints66. Advanced Socket Programming (设计性)76.1 Purpose76.2 Content76.3 Grading8Experiments of Network Program
2、ming Last updated: 10/3/20061. Operation of Linux (操作性)Name: No.: Class: Grading:1.1 PurposeReview the operation of Linux, in particular shell commands (bash).1.2 ContentEach student is required to finish all of the following tasks. Part I Programming 1) Use “vi” to construct a program “helloworld.c” that can print“hello world”. Compile and run it. (hint: gcc helloworld.c, ./a.out)Part II File/Directory2) Make a new sub-directory in current directory, then move “helloworld.c” into this new sub-d
3、irectory. (hint: mkdir source, mv old_file new_file)3) Change the access permissions of “helloworld.c” to -rw-r-xrw-. (hint:chmod 656 helloworld.c)4) Find a file named “emacs” in hard disk. (hint: find / -name emacs)5) Make a hard link, which is called “helloworld1.c”, of “helloworld.c”. (hint: ln old_file new_file); 6) Make a symbolic link, which is called “helloworld2.c”, of “helloworld1.c”. Then remove helloworld1.c. (hint: ln s old_file new_file) Check the output of “ls l” to compare the har
4、d link and soft link.7) Make a copy of “helloworld.c”. The new file is “helloworld3.c”. (hint: cp source_file destination_file) 8) Archive and compress all the files inside a sub-directory. (hint: tar cvf new_file.tar *, gzip old_file)Part III Text9) Show the first 10 line of helloworld.c in reverse order. (hint: head helloworld.c | sort -r)10) Print the number of bytes, words, and lines of helloworld.c to a file called “info.txt”. (hint: wc helloworld.c info.txt)11) Merge helloworld.c and info.
《网络编程技术实验指导书》由会员ni****g分享,可在线阅读,更多相关《网络编程技术实验指导书》请在金锄头文库上搜索。
仓储部的职能
浙江省杭州市七校-高一上学期期中联考化学试题
生猪菜牛菜羊家禽购销合同
高校教材管理系统方案
服装实习报告
教案一年级语文下册第八单元测试题人教版2
脑供血不足-住院病历
助理工程师申请书10篇
咨询工程师《工程项目组织与管理》考试历年真题汇编(精选)含答案95
东北财经大学22春《基金管理》综合作业一答案参考93
长治硅片设计项目商业计划书
公司实习生试用期工作总结最新
妇产科床旁教学法的应用
《就任北京大学校长之演说》读书报告
混凝土搅拌记录文本
财务个人年终总结(3篇).doc
中元节的来历和传说故事相关内容
xx年小学五年级(下)数学期末试题(数学)
申论热点:优化营商环境助力高质量发展
单位评优推荐材料
2023-09-23 13页
2023-05-11 2页
2022-12-02 4页
2024-02-11 37页
2023-12-23 10页
2023-08-12 4页
2023-09-01 4页
2023-10-03 18页
2024-01-15 2页
2023-09-10 4页