Online Activities, Educational Games, Quizzes, Crossword Maker

Make educational games, websites, online activities, quizzes and crosswords with Kubbu e-learning tool for teachers


Alternative content for non-flash browsers:


Chapter 5

1. Which command do you use to rename files and directories?
FSH, X.500, FHS, root directory,
2. What must a user do to run cp or mv interactively and be asked if she wants to overwrite an existing file?
TRUE, FALSE, ,
3. A file has the following permissions r----x-w-. The command chmod 143 would have the same effect as the command _________. (Choose all that apply.)
rw-rw-rw- and rw-rw-rw-, rw-rw-rw- and r--r--r--, rwxrwxrwx and rw-rw-rw-, rwxrw-rw- and rwx-rw-rw-,
4. A symbolic link is also known as a soft link and is depicted by an @ appearing at the beginning of the filename when viewed using the ls –l command. True or False?
There is no choice as the new file will overwrite the old one by default., Type interactive cp or interactive mv., Type cp –interactive or mv - interactive., Just type cp or mv as they run in interactive mode by default.,
5. What are the three standard Linux permissions?
Run chgrp again listing himself as the new owner., Nothing as this is a one-way, one-time action., Have the new owner run chgrp and list the original owner as the new owner., Run chown and list himself as the new owner.,
6. What does the /var directory contain?
User1 has read and write, members of the root group have read and execute, and all others have read permissions to the file., Members of the root group have read and write, user1 has read and execute, and all others have read permissions to the file. invite students , All users have read and write, members of the root group have read and execute, and user1 has read permissions to the file., User1 has read and write, all others have read and execute, and members of the root group have read permissions to the file.,
7. Which of the following commands will change the user ownership and group ownership of file1 to user1 and root respectively?
rw-rw-rw-, rwxrw-r--, ---r--rw-, ----wx--x,
8. The default permissions given by the system prior to analyzing the umask are ___________for directories, and __________ for files.
Only the data in the file you modified is affected., Only the data in the file you modified and any hard linked files in the same directory are affected., The data in the file you modified and the data in all hard linked files are modified as they have different inodes., The data in the file you modified as well as the data in all hard linked files are modified as they share the same data and all have the same inode and file size.,
9. A user utilizes the chgrp command to give ownership of a file to another user. What must the user do to regain ownership of the file?
--w-r--rwx 1 user1 root 0 Apr 29 15:40 file1, --wx--xrwx 1 user1 root 0 Apr 29 15:40 file1, -rwxrw-r-x 1 user1 root 0 Apr 29 15:40 file1, --w-rw-r-e 1 user1 root 0 Apr 29 15:40 file1,
10. The which command _________________?
chown user1:root file1, chown user1 : root file1, chown root:user1file1, chown root : user1file1,
11. There is no real difference between the “S” and “s” special permissions when displayed using the ls –l command. One just means it is on a file and the other that it is on a directory. True or False?
various additional programs, spools and log filesweb page, temporary files class page , files that are architecture independant,
12. Hard links need to reside on the same filesystem as the target, whereas symbolic links need not be on the same filesystem as the target. True or False?
It makes a volume., It makes a directory., It moves a directory., It moves a file.,
13. When you change the data in a file that is hard-linked to three others, __________.
chmod u%2bx-r,g%2br-x,o%2bw file1, chmod u=w,g=rw,o=rx file1, chmod u-r-w,g%2br-w,o%2br-x file1, chmod u=x,g=r,o=wx file1,
14. The command chmod 317 file1 would produce which of the following lines in the ls command?
can only be used to search for executables, searches for a file in all directories starting from the root, is not a valid Linux command, searches for a file only in directories that are in the PATH variable,
15. After typing the command umask 731, the permissions on all subsequently created files and directories will be effected. In this case, what will the permissions on all new files be?
TRUE, FALSE, elearning ,
16. When applied to a directory, the SGID special permission____________________.
causes all new files created in the directory to have the same group membership as the directory and not the entity that created them, cannot be done as it is only applied to files, allows users the ability to use more than two groups for files that they create within the directory, causes users to have their permissions checked before they are allowed to access files in the directory,
17. What does the mv command do? (Choose all that apply.)
cp, mv, rn, rename,
18. 7. After typing the ls –F command, you see the following line in the output: -rw-r-xr-- 1 user1 root 0 Apr 29 15:40 file1 What does this mean?
full control, read-execute, write, read, write, modify, execute, read, write, read, write, examine,
19. Given the following output from the ls command, how many files are linked with file1? drwxr-xr-x 3 root root 4096 Apr 8 07:12 Desktop -rw-r--r-- 3 root root 282 Apr 29 22:06 file1 -rw-r--r-- 1 root root 282 Apr 29 22:06 file2 -rw-r--r-- 4 root root 282 Apr 29 22:06 file3 -rw-r--r-- 2 root root 282 Apr 29 22:06 file4 -rw-r--r-- 1 root root 282 Apr 29 22:06 file5 -rw-r--r-- 1 user1 sys 282 Apr 29 22:06 file6
1, 2, 3, 4,