Q) What does fork system call return to parent process on success?
- Child process id
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
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?
Q) Command to create file in Linux is ______
- All the above
Command to create file in Linux are cat, touch, and echo.
Q) Linux operating system supports
- Multi User
- Multi Process
- All of the above
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
The command chown, an abbreviation of change owner, is used to change the owner of file, system files and directories.