3.
What is the output of this program?
#include<stdio.h>
#include<fcntl.h>
#include<errno.h>
#include<sys/stat.h>
#include<sys/mman.h>
 
int main()
{
    int s_id;
    s_id = shm_open("shared_memory",O_TRUNC,0666);
    if(s_id == -1)
        perror("shm_open\n");
    return 0;
}

6.
What is /proc/[PID]/root?

7.
What is the main role of the regular files in the sysfs?

10.
What is the output of this program?
#!/bin/bash
test_var="Example"
echo "$test_var"
echo '$test_var'
echo '"$test_var"'
echo "'$test_var'"
echo \$test_var
exit 0

Read More Section(Linux)

Each Section contains maximum 100 MCQs question on Linux. To get more questions visit other sections.