Anda di halaman 1dari 4

# Linux midterm

1. A “copyleft provision” in a software license means:


*If you redistribute the software, you must distribute the source to any changes
you make
2. The largest difference between the GPLv2 and BSD licenses is:
- BSD has no copyleft provision
3. Which of the following licenses was made by the FSF?:
- GPLv3
4. Linux is distributed under which license?
- GPLv2
5. Who founded the Open Course Initiative?
- Eric Raymond
- Bruce Perens
6. A generic term for Open Source and Free Software is:
- Floss
7. Which are the examples of permissive software licenses?
- MIT
- BSD
8. Creative Commons Licenses allow you to:
- Specify whether or not people may distribute changes
- Specify whether or not changes must be shared
- Allow or disallow commercial use
9. If a podcast is shared under the CC BY-ND license you may:
- Post it to your website
- Share it as long as you give credit to the author
10. The difference between the GPL and LGPL licenses are:
- LGPL allows linking to non GPLed software
11. Permissive free software licenses:
- Are bot approved by the FSF
- Can allow software to be used inside closed source software
- Don’t have a copyleft provision
12. The Creative Commons version of public domain licensing is:
- No Rights Reserved
13. Your company makes a hardware firewall that runs a custom Linux kernel. What
are your obligations under GPLv2?
- You must make the source to your kernel available

---
14. In graphical mode, you can get to a shell by running which applications?
- terminal
- xterm
15. Two components that provide the ability to implement a firewall include:
- iptables
- gufw
14. Which of the following is a tool that helps you anonymize your Internet
browsing?
- The onion router
---
16. Select the command that can report the location of a command:
- Which
17. To execute the same command as previously executed five commands ago, you would
type:
- !-5
18. GNU = Gnu’s not Unix
19. The command man -k is the same as the command apropos
20. The directory where additional documentation for software packages most likely
can be found is:
- /usr/share/doc
21. Section 5 of the manual page covers:
- File Formats
22. Which option for the man command should you use if you intend to send the
output of the command to a printer
- -t
23. What key should be used while working in the man command if you want to go to
the end of the document?
- G
24. To get help on using the info command, execute:
- info info
- man info
25. In order to search an info page, the first key to press is:
- s
24. After performing a search you can use the _____ key to return to a previously
found match
- N
---
25. The first character in a long listing ls -l indicates:
- If something is a file, directory or symbolic link
26. The command ls -S will sort files:
- By size, largest to smallest
27. Which options can be used to prevent cp from overwriting existing files?
- -n
- -I
28. The command rm -r will:
- remove a directory along with any files and subdirectories
29. Which option can be used with the rm command to prompt before deleting?
- -I
30. Which of the following commands can be used to rename a file?
- mv
---
31. Compression of a file works by:
- Rmeoving redundant information
32. In general, for which of the following would you want to use lossless
compression?
- A log file
33. You type gzip my file.tar. What happens?
- my file.tar id removed
- my file.tar.gz holds a compressed version of myfile.tar
34. How would you obtain output similar to the following?
- gzip -l tags
35. Which command would you use to archive the Documents directory and compress it
with gzip compression?
- tar -cjf documents.tbz Documents
36. Which flag would you pass to tar in order to have it make a new file?
- -c
37. Which command will show that is inside the compressed tarsal with a name of
foo.tar.gz?
- tar -tzf foo.tar.gz
38. In the command tar -cvjf foo.tbz a b c, what are a,b and c?
- File names to be added to the archive
39. Given the command tar -cvjf homedirs.tbz /home, which of the following are
true?
- The command will print out each filename as it is processed
- The output file will be compressed
40. You archived you users’ directories onto a file called backup, tar.gz. You then
view the archive and see the filenames follow this convention
Home/username/somefile.
How will you extract just the files for Fred?
- tar -xzf backup.tar.gz home/fred
41. Which of the following commands will create a zip file with the contents of
your Documents folder?
- zip -r medics.zip Documents
42. How can you see what’s inside the zip file without extracting it?
- unzip -l documents.zip
43. Which of the following commands can be used to compress a file?
- bzip2
- zip
- gzip
44. The three main modes of tar are:
- List
- Extract
- Create
---
45. Error messages generated by commands are sent where by default?
- STDERR
46. Which of the following will direct error messages tot he file error.log?
- li /root 2>error.log
47. Pipe allows you to
- send the output from one command to another
48. Channel 2 is:
- STDERR
49. Which of the following commands will append its output to output file?
- echo Testing>>output.file
50. Which command can be used to sort fthe lines of list.file alphabetically and
display it on the screen?
- sort < list.file
- cat list..file| sort
51. The grep command...
- will display all the lines in a file containing the specified Regular
expression
52. Which of the following commands will display lines that contain either start or
end?
- egrep ‘start|end’ file.txt
53. Which of the following commands scans the file to determine file locations?
- find
54. Which option for the cut command is used ti specify a delimiter?
- -d
55. Which command can be used to print line numbers?
- nl
---
56. A file begins with #!/bin/csh. This means:
- running the script will invoke /bin/csh to interpret the rest of the file
57. What information is held inside $?
- The previous command’s exit code
58. The if is looking for exit code 0 to be true;
# Midterm
* Which two commands do the same thing?
* tar -c foo | gzip > foo.tar.gz
* tar -czf foo.tar.gz foo
- Apple OS X is:
- Only compatilble with Apple hardware
- Derived from FreeBSD
- Certified as Unix compatible
- Other commercial Unixes:
- Are tied to their vendors hardware
- Are unix certified
- The difference between GPL and LGPL:
- LGPL allows linking to non GPLed software
- Permissive free software licenses:
- Can allow software to be used inside closed source software
- Are not approved by FSF
- Don;t have a copyleft provision
- The Creative Commons version of Public Domainn licensing is:
- No rights reserved
- Which of the following is a tool that helps you anony,ize your internet
browseing?
- The onion router
-

Anda mungkin juga menyukai