Question 76
Which Linux command is used to remove an empty directory?
The rmdir command removes directories provided they contain no files or subdirectories.
Which Linux command is used to remove an empty directory?
The rmdir command removes directories provided they contain no files or subdirectories.
Which Linux utility searches for pattern strings matching regular expressions inside files?
grep (Global Regular Expression Print) searches line-by-line in specified files for text patterns matching regular expressions.
In operating systems, a semaphore initialized to 1 functions as a -
A binary semaphore initialized to 1 acts as a Mutex lock, allowing only one process at a time into the critical section.
Which component converts human-readable shell commands into system calls executed by the kernel?
The Shell is a user-space program that reads commands from keyboard or script and invokes appropriate system calls to execution binary programs.
Which system call allows a process to execute a new program file by replacing its memory space?
The exec() family of system calls replaces current process memory image (code, data, heap, stack) with a new executable file.