⟩ What are different ways of creating threads?
In a process at least one thread will always be there.
So i think, when we create a new process using fork() system, this is also a thread creation (single thread only).
In a process at least one thread will always be there.
So i think, when we create a new process using fork() system, this is also a thread creation (single thread only).
Which one of the following file contains the environment for the process? a) /proc/[PID]/environ b) /proc/[PID]/env c) /proc/[PID]/path d) none of the mentioned
What is /bin/sh? a) bourne shell b) hard or symbolic link to the real shell command c) bash shell d) both (b) and (c)
Which one of the directory does not contain binary files? a) /bin b) /sbin c) /etc d) none of the mentioned
Which one of the following package management command-line tools is the odd one out?
Indicate the right option to search for anything not a letter or number a) grep '^[a-zA-Z0-9]' b) grep '[^a-zA-Z0-9]' c) grep '[a-zA-Z0-9]' d) None of the above in Search Pattern
One of the entry of /etc/passwd file is shown below user1x11112222google/home/user1/bin/bash Which among the following will print userid and home dir in the following pattern "user1/home/user1"? a) awk `{print $1 "" $6}` /etc/passwd b) awk `{print $1 "" $7}` /etc/passwd c) awk `{print $2 "" $6}` /etc/passwd d) awk `{print $2 "" $7}` /etc/passwd
What is the command that can print lines of first file matching with second file? a) printline b) cmp c) com d) comm
How do you remove duplicate lines from the file foo using uniq? a) sort foo | uniq -u b) sort -u foo | uniq -d c) sort foo | uniq -c d) sort foo | uniq -I
who | cut -d " " -f1. What is the ouput if the who command displays like this user1 tty 0 1234? a) user1 b) user1 tty 0 1234 c) tty d) tty 0 1234
Which character to use to escape meaning of special characters in search operations? a) [] b) ^ c) . d)