Q) What does fork system call return to parent process on success?
- 0
- 1
- -1
- Child process id
Answer: 4
Upon successful completion, fork() returns a value of 0 to the child process and returns the process ID of the child process to the parent process. Otherwise, a value of -1 is returned to the parent process, no child process is created.
Q) Which command is used to check Linux version?
- uname -a
- uname -n
- uname -s
- kernel
Answer: 1
On terminal type command uname -a will give Linux version.
Q) Which command is used to keep a process running even after logout from shell?
- nohup
- &
- bg
- cron
Answer: 1
Q) Command to create file in Linux is ______
- touch
- cat
- echo
- All the above
Answer: 4
Command to create file in Linux are cat, touch, and echo.
Q) Linux operating system supports
- Multi User
- Multi Process
- Multi-Tasking
- All of the above
Answer: 4
Q) True statement about chown command in Linux is
- Creates a thread
- Creates a child process
- Changes the mode of operation to kernel mode
- Changes the users and/or group ownership of each given file
Answer: 4
The command chown, an abbreviation of change owner, is used to change the owner of file, system files and directories.