The assessment test is an excellent way to test yourself before starting to study. It gives you an idea of where you should start and why.
In an assessment test, test your current skills from beginning to advance lever for any subject or topic to check “what do you know and from where you should start learning?”
Here I have put some basic questions for Linux assessment, so you can test your Linux skill and choose right path for Linux Learning.
1. Which of the following options is used with fsck to force it to use a particular filesystem type?
2. Typing ls –ld wonderjaye reveals a symbolic file mode of drwxr-xr-x. which of the following is true? [select all that apply]
- wonderjaye is a symbolic link
- wonderjaye is an executable program
- wonderjaye is a directory
- wonderjaye may be read by all users of the system.
3. Which of the following pieces of information can df not report?
- How long the filesystem has been mounted
- The number of inodes used on an ext3fs partition
- The filesystem type of a partition
- The percentage of available disk space used on a partition
4. When should programs be configured SUID root?
- At all times; this permission is required for executable programs.
- Whenever a program should be able to access a device file.
- Only when they require root privileges to do their job.
- Never; this permission is a severe security risk.
5. What is an advantage of a journaling filesystem over a conventional (non-journaling) filesystem?
- Journaling filesystems are older and better tested than non-journaling filesystems.
- Journaling filesystems never need to have their filesystems checked with fsck.
- Journaling filesystems support Linux ownership and permissions; non-journaling filesystems don’t
- Journaling filesystems require shorter disk checks after a power failure or system crash.
6. Which of the following command would you type to give all users read access to the file myfile.txt? [Assume that you’re the owner of myfile.txt]
- chmod 741 myfile.txt
- chmod 0640 myfile.txt
- chmod u+r myfile.txt
- chmod o+r myfile.txt
7. You want to use /mnt/cdrom to access your CD-ROM drive, so you insert a CD-ROM into the drive and type mount /mnt/cdrom /dev/cdrom as root, but you receive the error message /mnt/cdrom is not a block device. Why did this happen?
- You must first prepare the mount point by typing mountpoint /mnt/cdrom; only then will the mount command succeed
- The command reverses the order of the CD-ROM device file and the mount point; it should be mount /dev/cdrom /mnt/cdrom.
- The /dev/cdrom filename is not valid; you must determine what device file is associated with your CD-ROM drive.
- The CD-ROM is defective or the CD-ROM drive is malfunctioning. Try another CD-ROM and, if necessary, replace the drive.
8. Which of the following umask value will result in files with rw-r—– permissions?
9. What is wrong with the following /etc/fstab file entry? [Select all thet apply].
/dev/hda8 nfs default 0 0
- The entry is missing a mount point specification.
- All /etc/fstab fields should be separated by commas.
- The default option may only be used with ext2 filesystems.
- /dev/hda8 is a disk partition, but nfs indicates a network filesystem.
10. You see the usrquota and grpquota in the /etc/fstab entry for a filesystem. What is the consequence of these entries?
- Quota support will be available if it’s compiled into the kernel; it will be automatically activated when you mount the filesystem.
- Quota support will be available if it’s compiled into your kernel, but you must activate it with the quotaon command.
- Quota support will be disabled on the filesystem in question unless you activate it with the quotaon command.
- Nothing; these options are malformed and so will have no effect.
11. You want to discover the sizes of several dot files in a directory. Which of the following commands might you use to do this?
- ls –la
- ls –p
- ls –R
- ls -d
12. Which of the following commands can be used to summarize the quota information on all filesystems?
- repquota –a
- quotacheck -a
13. You want to move a file from your hard disk to a floppy disk. Which of the following is true?
- You’ll have to use the –preserve option to mv to keep ownership and permissions set correctly.
- The mv command will adjust filesystem pointers without physically rewriting data if the floppy uses the same filesystem type as the hard disk partition.
- You must use the same filesystem type on both media to preserve ownership and permissions.
- The mv command will delete the file on the hard disk after coping it to the floppy.
14. You’ve installed a commercial spreadsheet program, called WonderCalc, on a workstation. In which of the following directories are you most likely to find the program executable file?
15. You type mkdir one/two/three and receive an error message that reads, in part, No such file or directory. What can you do to overcome this problem? [Select all that apply.]
- Add the –parents parameter to the mkdir command.
- Issue three separate mkdir commands: mkdir one, then mkdir one/two, then mkdir one/two/three.
- Type touch /bin/mkdir to be sure the mkdir program file exists.
- Type rmdir one to clear away the interfering base of the desired new directory tree.
16. Which of the following file-location commands is likely to take the most time to find a file that might be located anywhere on the computer?
- The find command.
- The locate command.
- The whereis command.
- They’re all equal in speed.
17. You want to create a link from your home directory on your hard disk to a directory on a CD-ROM drive. Which of the following types of links might you use?
- Only a symbolic link.
- Only a hard link.
- Either a symbolic or a hard link.
- None of the above; such links are not possible under Linux.
18. You want to track down all the files in /home that are owned by Karen. Which of the following commands will do the job?
- find /home –uid karen
- find /home –user karen
- locate /home –username karen
- locate /home karen
19. What command would you type to change the ownership of somefile.txt from ralph to tony?
- chown ralph:tony somefile.txt
- chmod somefile.txt tony
- chown somefile.txt tony
- chown tony somefile.txt
20. What can you conclude from the following interaction?
$ which man
- The only file called man on the system is in /usr/bin.
- The /usr/bin/man program was installed by system package tools.
- The /usr/bin/man program will be run by any user who types man.
- The first instance of the man program, in path search order, is in /usr/bin.
2. c, d
9. a, d
15. a, b