Linux - Study Mode

[#121] Command used to determine the path of an executable file is
Correct Answer

(A) which

[#122] Code snippets str1=”45678

str2=”123

f1 = fopen(file1,RDWR,RWX)
f2 = dup(f1)
write(f1,str1,len_str1)
write(f2,str2,len_str2)

o/p:
Correct Answer

(D) 45678(newline)123(newline)

[#123] If we do not specify the executable file name at the compilation time in GCC, then in linux the compiler creates executable named as
Correct Answer

(A) a.out

[#124] How can you search for blank line in a file?
Correct Answer

(B) $ grep "^$" file

[#125] A communication end-point is identified by
Correct Answer

(C) both IP address and port number