⟩ While executing a command, the shell a) Executes it in the same process (as shell) b) Creates a child shell to execute it c) Loads a special program to take care of the execution d) None of the above
b) Creates a child shell to execute it
b) Creates a child shell to execute it
For the below mentioned code int main() { int fd; fd = open("logfile", O_CREAT|O_RDWR, 0600); lseek(fd, 5, SEEK_CUR); write(fd, "Hello", 5); return 0; } What is the logfile size now if it's initially was 1024 bytes? a) 5 b) 1024 c) 1029 d) 1034
Where can I find the printer in the file structure? a) /etc b) /dev c) /lib d) /printer
Which of the following statement is true? a) The cp command will preserve the meta data of the file b) The sort command by default sorts in the numeric order c) The mv command will preserve the meta data of the file d) The command ps will display the filesystem usage
Creation of hardlinks that point across partitions a) is allowed only to root user b) Can be done by all users c) The effects are unspecified d) is not allowed
Which command is used to change permissions of files and directories? a) mv b) chgrp c) chmod d) set
If two files on same partition point to the same inode structure they are called a) Soft links b) Hard links c) Alias d) Special files
Deleting a soft-link a) Deletes the destination file b) Deletes both the softlink and the destination file c) Deletes just the softlink d) backup of the destination is automatically created
A user creates a link to a file file1 using the following command "ln file1 file2". Which of the following is not true? a) file1 and file2 have the same inode numbers b) The number of links for file1 is displayed as 1 c) The number of links for file1 is displayed as 2 d) The number of links for file2 is displayed as 2
How many links are created when we create a directory file? a) 1 b) 2 c) 3 d) 4
Which among the following allows fast file system recovery? a) Ext2 b) Journaling c) Caching d) Sysfs