首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
辅导program编程、讲解Java,CS程序语言、c++,Python编程辅导 讲解数据库SQL|讲解数据库SQL
项目预算:
开发周期:
发布时间:
要求地区:
Linux Coursework
For the Linux coursework, you must write a Linux script that will complete a set of tasks.
This is worth 5% of this module and is open book. There should be sufficient time in the labs
to complete the task, but if you are finding it difficult, then you may need to work on it in
your spare time. Note that this is a coursework and will be different from the normal lab
sessions in that it is expected that this will be your own work. The lab assistants will still be
there to answer general questions but will not be able to help you with the script itself. You
can still discuss the problem with your classmates, but in the end, the solution must be your
own. REMEMBER you must save your script outside of the lab machine in each lab as your
data may be lost if you don’t make a more permanent copy.
Task 1 (39 marks)
The task set for this year’s Linux coursework is to sort and process a collection of files. In the
Unix section on Moodle in the Coursework folder, you will find a zip file called un_
sorted_files.zip containing multiple files of many different types. You must first download
this file and copy it across to your home directory in the Linux virtual machine. I would also
advise creating a scripts directory as in Lab part 4.
Processing the Files
From here onwards, all tasks (in this Task 1 section) must be completed by your Linux
Script ONLY. Unzip the file using the unzip command. You will need to look up the options
for this command yourself using the techniques that you have learned in the labs. Your task
is to write a script called process_files that will accept from the user as command line
arguments a series of 3 strings representing file types. You must then create 4 directories –
one for each file type and one for any files that do not match any of the file types - and
separate the files into these new directories then return some information about these files
to the user. For example if the user types
process_files jpg gif docx
Your script will sort the jpg/jpeg, gif and doc/docx files into their appropriate directories
and the remaining files into a miscellaneous directory, before processing them. Note: All
jpg/jpeg should be in the same jpg directory, all doc/docx in the same docx directory.
Output
Your script needs to output 5 different files. In each of the directories that you create, you
should create a file that contains a list of all the files in that directory sorted by size order.
Also, in the main directory, your script should output a file that contains a label for each
directory and the files in each directory sorted in reverse alphabetical order. This file should
look something like this
…. These are the jpg files….
last_file_alphabetically.jpg
next_ last_file_alphabetically.jpg
…. All the gif files ….
last_file_alphabetically.gif
next_ last_file_alphabetically.gif
….. all the docx files …..
etc.
This is a difficult file to construct, so full marks will go in this section to replicating that file
format. You might need to create several temporary files to complete the task. You will still
get some marks for this section by creating a summary file of some description.
Your final scripting task is to provide a separate clean-up script that will remove the files and
directories that you created from the virtual machine (make sure you have a backup copy of
your files and scripts before testing it).
Describe Your Code and Personal Reflection
Using the comment keyword # in your script allows you to add a comment that the
interpreter ignores. This lets you add a more human-readable dimension to your script. ie.
cp file123 directory20 # This line copies file123 into directory20
The text after # adds no functionality but explains what the command does. Comment your
script to describe how it works. Finally, at the bottom of your script include comments, that
is a single paragraph of a) some personal reflection on the working state of your script, b)
how you approached the task, c) what you have learned and d) how this would affect how
you would approach a similar task in the future.
Task 2 (11 marks)
a) Install and Configure Apache Web Server on Ubuntu. Follow all the steps in the link
provided on Moodle (you may use different resources if you wish). Take a screenshot
of each step. Make sure your name is visible on the screenshots. When you set up
your domain name, make sure the html file includes a title message such as
“Welcome to the Programming and System development Course!” Also make sure to
include a message in the body that displays your name and student ID.
b) Enable SSH on your Ubuntu system. Verify that the installation was successful and
SSH service is running. Again, make sure you take screenshots of each step to include
in your file.
Saving and uploading your files
You must upload a zipped folder (your_name.zip, for e.g Mireilla_Bikanga_Ada.zip)
containing 4 files on Moodle. The first file is your main script and personal reflection
(process_files). The second file is the clean-up script (clean-up). The third file is a word
document (your_name1.docx for e.g. Mireilla_Bikanga_Ada1.docx) containing screenshots
of your outputs when the script is run (Task 1) – displays content of the directories and
content of the files. The fourth file is a word document (your_name2.docx for e.g.
Mireilla_Bikanga_Ada2.docx) containing all the screenshots for Task 2 a) and b). The
screenshots must show your name (see example below).
Marking
The Coursework will be marked out of 50 with the distribution of marks as below
Task 1 (39 marks)
A) Unzip the file and make directories for each of the file types requested and a miscellaneous
directory.
4
B) Use of command line arguments for file types 2
C) Separate the files into their appropriate directory. 4
D) Provide a list of all the files in each directory sorted by size 5
E) Provide a labelled summary file of all the files in each directory sorted in reverse alphabetical
order
8
F) Provide a separate script to clean up all the files from the zip file 3
G) Personal reflection paragraph 4
H) Comment your code to explain the process 4
I) Style and presentation for Task 1 3
J) Screenshots demonstration of Task 1 2
Task 2 (11 marks)
k) Install apache sever 1
L) Configure apache server 6
m) Enable and verify SSH on your Ubuntu system 2
n) Screenshots demonstration of Task 2 (a and b) 2
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代写dts207tc、sql编程语言代做
2024-12-25
cs209a代做、java程序设计代写
2024-12-25
cs305程序代做、代写python程序...
2024-12-25
代写csc1001、代做python设计程...
2024-12-24
代写practice test preparatio...
2024-12-24
代写bre2031 – environmental...
2024-12-24
代写ece5550: applied kalman ...
2024-12-24
代做conmgnt 7049 – measurem...
2024-12-24
代写ece3700j introduction to...
2024-12-24
代做adad9311 designing the e...
2024-12-24
代做comp5618 - applied cyber...
2024-12-24
代做ece5550: applied kalman ...
2024-12-24
代做cp1402 assignment - netw...
2024-12-24
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!