This program will print the
#include<stdio.h>
#include<sys/time.h>
#include<sys/resource.h>
int main()
{
struct rlimit limit;
getrlimit(RLIMIT_FSIZE,&limit);
printf("%lu\n",limit.rlim_cur);
printf("%lu\n",limit.rlim_max);
return 0;
}
#include<stdio.h>
#include<sys/time.h>
#include<sys/resource.h>
int main()
{
struct rlimit limit;
getrlimit(RLIMIT_FSIZE,&limit);
printf("%lu\n",limit.rlim_cur);
printf("%lu\n",limit.rlim_max);
return 0;
}A. soft limit of the size of the file in bytes that can be created by the process
B. hard limit of the size of the file in bytes that can be created by the process
C. soft 7 hard limit of the size of the file in bytes that can be created by the process
D. none of the mentioned
Answer: Option C
Related Questions on Linux
What command is used to count the total number of lines, words, and characters contained in a file?
A. countw
B. wcount
C. wc
D. count p
E. None of the above
What command is used with vi editor to delete a single character?
A. x
B. y
C. a
D. z
E. None of the above

Join The Discussion