Unix/Lunux MCQ Quiz Hub

Linux Mcqs Questions Set 2

Choose a topic to test your knowledge and improve your Unix/Lunux skills

1. Which command is used to display all the files including hidden files in your current and its subdirectories ?




2. Which of the following commands can be used to copy files across systems?




3. pwd command displays




4. Which of the following commands can be used to change default permissions for files and directories at the time of creation




5. Which tar command option is used to list the files in a tape archive format?




6. Which of the following commands will allow the user to search contents of a file for a particular pattern




7. Write the command to display the current date in the form dd/mm/yyyy.




8. The command syntax to display the file sample.txt one page at a time is




9. Which one shows the name of the operating system?




10. How do you add (append) a file file1 to the example.tar file




11. How to execute ls command inside a vi editor?




12. Which command gives the first byte where the difference is in the file1 & file2?




13. To open a file file1 with cursor at line number 4




14. sed is a command typically used for




15. What communication command provides communication to another user logged on by writing to the bottom of their terminal?




16. Which screen manipulation command sets the screen back to normal?




17. Which command will you use to see the available routes?




18. Which of the following time stamps need not exist for a file on traditional unix file system




19. Which command is used to set limits on file size




20. Which option of rmdir command will remove all directories a, b, c if path is a/b/c




21. Which represents the user home directory




22. If a file is removed in Unix using rm then




23. Executing the cd .. command when at the root level causes




24. How do you rename file new to file old ?




25. What command is used to copy files and directories?




26. When mv f1 f2 is executed which files inode is freed?




27. Any files attribute information is stored in which structure on the disk




28. When you use the ln command, which of the following occurs?




29. srwxr-xrw- is a




30. Binary or executable files are:




31. The directory file contains:




32. Which directory contain device special files?




33. Which of the following is not a valid file type on Linux




34. Which of the following is not correct statement regarding file types?




35. Which are the two types of device files?




36. Which is an example for character special file?




37. Which is an example for block special file?




38.  All device files are stored in which directory?




39. The file permission 764 means:




40. The permission -rwxr–r– represented in octal expression will be




41. Effective user id can be set using following permission




42. Effective group id can be set using following permission




43. Sticky bit can be set using following permission




44. The permission -rwSr–r– represented in octal expression will be




45. The permission -rwxr-sr– represented in octal expression will be




46. If user tries to remove (rm) a readonly file (444 permission), what will happen?




47. A user does a chmod operation on a file. Which of the following is true?




48. If the umask value is 0002. what will be the permissions of new directory




49. What is the command to set the execute permissions to all the files and subdirectories within the directory /home/user1/direct




50. The permission -rwxr-xr-t represented in octal expression will be