首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
辅导program编程设计、讲解Java,Python,c/c++程序 讲解Python程序|辅导留学生 Statistics统计、回归、迭代
项目预算:
开发周期:
发布时间:
要求地区:
Linux Assessment Version 2
RULES:
1. Closed book, closed notes, closed Internet, closed people.
2. You may use the man pages using the command man and you may use the command line to test
your solutions.
3. You may ask Dave (prof Toth) questions, but you may not communicate with anybody else
about the assessment until Wednesday.
4. You have 90 minutes beginning when you look at this file, and no more. Taking additional
times is CHEATING. Your 90 minutes includes recording your answer in a .txt file you create
with vim. Uploading the file to Moodle is NOT considered part of the 90 minutes.
5. Solutions are due by 11:50 PM Tuesday March 30.
You do NOT need to copy the questions. Just number your answers!
NOTE: When I ask for a single command to do something, I mean anything you can write one a
line before hitting enter. Thus, if you need to chain multiple commands together using one or
more pipes to accomplish what I’ve asked, that would count as a single command.
1. Write a single command to terminate all instances of processes named solitaire.
2. Write a single command to output the number of lines in the file data.txt. Assume that data.txt
is in the directory you are currently in.
3. Assume that you are in the directory /home/my-name/ which contains the directory stuff. The
directory stuff contains many files and subdirectories. Write a single command to copy all the
contents of the stuff directory to a new directory /home/my-name/stuff/.
4. What command could I use to find the MAC address of my WiFi adapter?
5. I have a file called junk.txt that contains thousands of lines. Write a single command that prints
just the first 7 lines of the file.
6. I have a program called notshortenough that will need to run for many days on a remote server.
However, the server will close my connection after just 24 hours of idle time, and I can’t be
there to babysit everything for days on end, so we know my connection will get closed. Write a
single command to start that process running on the remote server (assume that I am logged into
it at the moment and the program long is in my current directory) such that it will run until it
finishes and it runs in the background.
7. My username is bill. Write a command to send the file data.txt in my current directory, which is
some subdirectory of my home directory, to my home directory (/home/bill/) on the remote
server with IP address 10.55.1.28.
8. I have a file called lost.txt in some subdirectory of my home directory /home/csc280-student/,
but I have no idea where it is. Write a single command that will locate the file and print out
where it is for me. Make no assumptions about where I currently am in the file system.
9. You own the file gold.txt in your current directory. Write a single command to make the owner
of the file dave.
10. Write a single command to “display the status of jobs that were started in the current shell
environment.” The command you give me as an answer should display “the status of all
stopped jobs, running background jobs and all jobs whose status has changed and have not been
reported by the shell.”
11. I’m currently in a directory that contains another directory called programs. Write a single
command to create a tar file called lotsa.tar in my current directory. The lotsa.tar file should
contain the programs subdirectory and everything in it.
12. I’m in the directory /home/staff/ which contains the directory housing. Write a single command
to list ALL the files and folders inside the housing directory including hidden ones (which start
with .), such that the listing shows the file permissions for each item listed and in “humanreadable”
format.
13. Write a single command to execute the command numbered 72 in my history.
14. Write a single command to print the lines of the file flights.txt that contain the string jk and only
those lines.
15. I may have multiple copies of the command pwd on my computer. Write a single command that
tells me the path of the version that will be run if I just type pwd without specifying the path to
it.
16. What command tells me where I am in the file system?
17. Write a single command that deletes all the files in my current directory whose names begin
with xyz and end with .doc.
18. I want to establish a remote terminal connection to the server with IP address 10.14.1.87. My
username on that server is sally. Write me a single command to connect to the server.
19. What does the up arrow do in the terminal window?
20. What command shows the running processes, automatically updating and refreshing the screen
by default until you hit q to quit?
21. I’m currently in a directory (/home/csc280-prof/hw/) that contains another directory called
programs. Write a single command to move the programs directory and everything inside it up
to /home/csc280-prof/.
22. I’m currently in the directory /home/bill/. Write a command to change my location to /usr/bin
using an absolute path.
23. I’m currently in the directory /home/bill/. Write a command to change my location to /usr/bin
using an relative path.
24. There’s a file data.txt on my webserver that you should download for class, and you know the
webserver’s IP address is 8.7.1.13, but you don’t have a login username/password for that
server. Write a single command that will download the file to your current directory.
25. If a command is going to give me lots more output than will fit on the screen, what are two
commands would I be able to pipe it through to allow me to scroll through the output one page
at a time?
26. I’m in /home/csc280-student/ which is currently empty. I’d like to create a directory
linux/badges/attempt1/ inside of /home/csc280-student/ with a single command. What’s that
command? HINT: you’ll need to use the man pages to figure out how to do this, as we
intentionally didn’t cover it.
27. What is the shortcut key sequence to clear the terminal window?
28. Will the command rmdir foo delete the non-empty directory foo that’s in my current directory?
29. Write a single command that lists all (and only) my previous commands that contained the word
goat.
30. I’m currently in the directory /home/csc280-student/ which contains a directory called stuff. The
directory stuff contains a directory called junk, which contains lots of files. Write a single
command to delete the directory junk and all its contents.
31. I have a just issued the command ./blah and the process blah is running. Then I suspended
it using control-z. What command will resume it running in the background?
32. Tell me a single command to stop the process circled in red in the image below. Note there are
multiple processes with the same name and I only want to stop the circled one.
33. Give a single command to change the permissions of the file temp.txt to be readable by
everybody, writable by the owner of the file, and executable for only the owner of the file and
the group for the file.
34. I have just started a process in the foreground and it’s spewing forth lots of output and I want to
stop it so I can restart it and direct all the output to a logfile instead. How do I stop it?
35. I have a file called data.txt that contains thousands of lines. Write a single command that prints
just the last 2 lines of the file.
36. I have a file temp.txt with one number per line, where the numbers are not in any particular
order. I want to create a new file ordered.txt with the numbers printed out one per line, where
the lines are ordered from high to low.
37. I want to print out the numbers from temp.txt in the previous question such that I only get a
single copy of any numbers in the file. So if there are 17 copies of the number 9 in the file, in
my output, I only want to see the number 9 once. Give me a single command to do it.
38. I want to edit a file in my current directory with vim. The file is named
abcdefghijklmnopqrstuvwxyz.txt. The only other files in that directory are abc.txt and def.txt.
Explain how I could do that (without renaming anything), without typing the whole name of the
file, and without using the wildcard character *.
39. I have a file people.txt in my current directory. The file has one person per line with the
person’s first_name:last_name:age like this
John:Doe:49
Suzy:Queue:42
Ima:Goofball:75
Write me a single command to print out all the last names in the file.
40. Given this output from the diff command diff abc.txt xyz.txt, tell precisely how the
files differ.
1c1
< Suzy Queue 123 Abstract St
---
> Suzy Stack 123 Abstract St
2a3
> Ivana Pizza 22222 Pineapple Rd
41. Give a single command using ps that lists all the running processes and lists their full
information.
42. Explain how to use fg to resume a suspended job that is NOT the one most recently suspended
or run as a background job.
43. Give me a single command to zip the subdirectory foo of my current directory into an encrypted
file called enc_foo.zip.
44. Use the table below to help answer this question. Write a single command to print the lines of
the file junk.txt that start with x and end with a. Hint: you’ll want a regular expression as part
of the solution.
软件开发、广告设计客服
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
软件定制开发网!