41. Which of these is the correct method for appending "foo" in /tmp/bar file?
42. Which one of the following is not true?
43. Libsysfs is a
44. What is /bin/sh ?
45. 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_mem",O_CREAT|O_RDWR,0666);
if(s_id != EACCES)
perror("Permission granted\n");
return 0;
}
#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_mem",O_CREAT|O_RDWR,0666);
if(s_id != EACCES)
perror("Permission granted\n");
return 0;
}
46. A server which is handling one client at a time is called as
47. Which of the following represents an absolute path?
48. This program will print the
#include<stdio.h>
#include<unistd.h>
int main()
{
long int value;
value = sysconf(_SC_OPEN_MAX);
printf("%ld\n",value);
return 0;
}
#include<stdio.h>
#include<unistd.h>
int main()
{
long int value;
value = sysconf(_SC_OPEN_MAX);
printf("%ld\n",value);
return 0;
}
49. Single user mode shell runs as
50. Write the command to display the current date in the form dd/mm/yyyy.
Read More Section(Linux)
Each Section contains maximum 100 MCQs question on Linux. To get more questions visit other sections.