Home / Virat Bhati / Programming MCQs Solution

Virat Bhati updated solution of these Programming language mcqs.

Q. A user runs “chmod” on a file. Which of the following statements is true?

Q. What is the command to grant execution permission on all files and subdirectories in “/home/document/mydirectory”

Q. -rwxr–r– permissions represented by the following octal value _____

Q. Effective User ID (EUID) can be defined with the following permission _____?

Q. Effective Group ID (EGID) can be defined with the following permission _____ ?

Q. What is the octal representation of these -rwx r-s r– permissions?

Q. If a file has the following permissions 764 then _____?

Q. srwxr-xrw- is a __________

Q. Which directory contains special device files?

Q. Which of the following is not a valid file type in Linux?

Q. Which of the following statements is not correct regarding file types?

Q. What are the two types of device files?

Q. Which is an example of a special file in character mode?

Q. Which one is an example of a special file in block mode?

Q. The device files are located in which directory?

Q. Running the ‘cd ..’ command at the root level results in _______ ?

Q. How do you rename the file “toto” to “tata”?

Q. The attribute information of a file is stored in which structure on the disk?

Q. Which command is used to copy files and directories?

Q. When the following command $ mv file1 file2 is executed which file inode is released?

Q. If a file is deleted under Unix using “rm” then?

Q. Which command is used to set the file size limit?

Q. Which option of the “rmdir” command deletes all directories rep1, rep2, rep3 if the path is rep1/rep2/rep3?

Q. Which one represents the user’s home directory?

Q. Which of the following times does not exist in a traditional unix file system?