Updated: 2013-05-08 21:01 EDT
Your Final Exam schedule is posted in the ICT office. The Final Exam is closed-book, no aids, no devices.
Your Final Exam covers the entire course, with emphasis on material since the second midterm test, and on material that students did not answer well in the previous two tests.
You must read the Test Instructions before the test for important directions on how to enter your answers and the test version number on the mark-sense forms.
There may be more questions on the test than you can answer in the time allowed; answer the ones you know, first.
Review last week. Did you do everything assigned last week?
Your in-class notes go here.
56%
Keep a notebook with a List of Commands in it.
diff
command:
diff file1 file2
<
” are in the left file (file1
)>
” are in the right file (file2
)/home/me/../you/../../etc/../home/./me/../you/../me/./foo
as a simplified absolute path.b
after this: echo x >a ; ls >b
a
contains 3 lines. File b
contains 4 lines. How many lines are in file d
(not in c
) after this command line: ln a d ; ln d c ; cat a a b b d d >c
a
after all the commands in the above question?:x:
mean in /etc/passwd?/home/me
and ls -l
shows bar -> /foo
then dereference bar
as an absolute path with no symbolic links./home/me
and ls -l
shows bar -> foo
then dereference bar
as an absolute path with no symbolic links./home/me
and ls -l
shows bar -> dir/foo
then dereference bar
as an absolute path with no symbolic links./home/me
and ls -l
shows bar -> ../foo
then dereference bar
as an absolute path with no symbolic links./home/me
and ls -l
shows bar -> ../you/foo
then dereference bar
as an absolute path with no symbolic links.root
inside all four account files under /etc
.bob
to be robert
fdisk
).foo
in the current directory?HOME
environment variable?splashimage
line from your GRUB configuration file and reboot. What is different?/usr/local/bin
?/dev/sdb2
onto /mnt/test
and try this command (as root
): ln /etc/passwd /mnt/test/foo
– why does it fail? Hint: Links are made with inode numbers inside file systems. Different file systems have different sets of inode numbers. How could you make a different kind of link that would work?chkconfig
to enable a service, the service is immediately started.service
command enables a service but does not immediately start it.ext
file system?You are now logging in to multiple machines. Set your shell PS1
prompt to include the machine name, so that you don’t type the wrong command on the wrong machine!
My course notes are written using the vim
text editor in Plain Text Pandoc Markdown format and then processed automatically into HTML. I needed to know how to have Pandoc produce a formatted plain-text output file that wouldn’t lose any of the formatting information and could be re-input to Pandoc to re-generate itself exactly.
9:00am
: I go to the Pandoc Markdown web site and search the documentation for a “pandoc” output format. I don’t find anything.
9:30am
: I go to the Pandoc-Discuss online discussion forum to see if anyone has asked about a “pandoc” output format. I don’t find anything.
9:45am
: I join the Pandoc-Discuss discussion forum, using my Google account.
9:48am
: I post this question to the Pandoc-Discuss discussion forum.
11:17am
: I get a reply suggesting a partial solution from a user Dirk.
11:31am
: I explain why Dirk’s solution doesn’t work.
11:38am
: I get a reply from John MacFarline, the author of Pandoc himself, giving me the correct solution. He updates his answer again at 11:43
with a further explanation.
11:45am
: I try his solution and discover something odd. I produce a small example that shows the odd formatting.
12:12am
: I post the odd example to the forum.
12:36am
: A user Tillmann Rendel say that I’ve discovered a bug.
12:50am
: Tillmann goes to the source code of Pandoc and locates the Perl code that causes the bug.
12:52am
: Pandoc author John MacFarlane confirms the bug and fixes it. He “pushes” the new version of the Pandoc source code out to the web server so that everyone can update their own copy of Pandoc. I download and build the fixed Pandoc.
Let’s see you try doing that with a bug in Microsoft Word. :-)