Flashcards in Review Questions Deck (27):
Gary Kildall contributions?
Wrote an operating system for the 8080 processor, which was called Control Program for Microcomputer (CP/M)
8. What is the difference between copyright and copyleft?
Copyleft = open-source.
9. When was the first Unix operating system developed?
Unix was developed in 1969 on a PDP-7 with 8K of RAM
10. When was the first Linux operating system developed?
From 1991-present, Linux (Unix based operating system) is
becoming a popular alternative to Windows for many students and
11. From where did the word “Unix” come from?
12. From where did the word “Linux” come from?
After Bell Labs dropped out of the MULTICS project, one of its researchers, Ken Thompson (February 4, 1943), was looking around for something to do
He decided to implement a small version of MULTICS
(using assembly language) on a discarded PDP-7 minicomputer with 8K RAM
Succeeded to do so in 1969 (at age 26)
His friend, Brian Kernighan (January 1, 1942) (a Canadian CS), jokingly called this new product UNICS (UNiplexed Information and Computing Service)
Later on, the spelling was changed from UNICS to UNIX
12. based on the name of Linus Torvalds, who created it, and to sound like Unix, since it is a flavor of Unix
13. Who developed the first Unix operating system?
Ken Thompson and Dennis Ritchie
14. Who developed the first Linux operating system?
15. Who were the first to develop the first C compiler?
16. Who were the first to re-write the Unix operating system in C?
Ken Thompson and Dennis Ritchie
20. The command rmdir c.progs failed. State three possible reasons for this failure.
1) has files in it
2) it is inside a directory that does not have write permissions enabled
23. Which Unix command would you use to delete a directory called dir1 which contains some files and directories in it?
rm -r dir
27. List 5 different ways to change the current working directory to your home directory.
2) cd absolute path
3) cd ~
4) cd $HOME
5) *if you are in a folder that is in your home directory* cd ..
28. How many characters can a Unix filename be?
255 characters (255 bytes)
29. Which character(s) can’t be used in a Unix filename?
Many commands use “ ” to say there are no more options
Ex: obelix > rm -- -i
32. Explain what the following commands do: (i) rm * (ii) rm -i * (iii) rm -r * (iv) rm rm
1) removes any file in the current directory (star wildcard = any repetitions of a character = any file name
2) -i = interactive promo. Star wildcard = all files
3) rm -r * delete all directories in current directory and their contents
4) deletes a file called rm if it exists
34. What is the difference between ls and ls * Unix commands?
Nothing. The list commands list whatever argument you give it:
adf adf adf
36. How do you remove the hidden files in your current working directory?
rm -rf .*
39. Explain what the commands ls .* and ls *. display. Does it make any difference if the -d option is added?
ls -d .*
echo "The date and time are date "
echo "The date and time are `date` "
echo "The date and time are 'date' "
echo "The date and time are "date" "
The date and time are data
The date and time are Fri Oct 15.. etc..
The data and time are 'date'
The date and time are date
root directory and all its folders / contents
61. When you invoke ls -l foo, the access time of foo changes. True or false? Explain your answer.
77. Create a file in your home directory and change its permission to 444. Copy this file to another file. Compare the permissions of the two files. Are they the same or not? Explain.
444 = r--r--r--
After copying, ls -l copied file reveals:
only "r-- --- ---"
Thus, strips all permissions from G and O?
3. What happens when you execute cat > foo if foo contains data?
error because you can't direct an output into a file that has content, you can only APPEND output into a file that already has content.
20. How do you find out (i) the number of users logged in (ii) the number of directories in your home directory tree?
ls -d \/* | wc -w
33. How do you move a Unix job from the foreground to the background?
Suspend job, then resume it in the background using the bg command