adplus-dvertising
frame-decoration

Question

In Unix, how do you check that two given strings a and b are equal?

a.

test $a -eq $b

b.

test $a -equal $b

c.

test $a = $b

d.

both a and c

Answer: (d).both a and c

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In Unix, how do you check that two given strings a and b are equal?

Similar Questions

Discover Related MCQs

Q. The directory structure used in Unix file system is called

Q. Which statement  is not true about process 0 in the Unix operating system?

Q. Which or the following commands would return process_id of sleep command?

Q. What does the following command do ?
grep − vn  "abc" x

Q. The Unix Kernel maintains two key data structures related to processes, the progress table and the user structure. Which of following information is not the part of user

Q. A Unix file may be of the type :

Q. Match the following for Unix system calls:

List – I List – II

(a) exec (i) Creates a new process

(b) brk (ii) Invokes another program overlaying memory space with a copy of an executable file

(c) wait (iii) To increase or decrease the size of data region

(d) fork (iv) A process synchronizes with termination of child process

code:
a b c d

Q. WOW32 is a :

Q. The Unix command :

$ vi file1 file2

Q.  _______ maintains the list of free disk blocks in the Unix file system.

Q. A part of Windows 2000 operating system that is not portable is

Q. Match the following with reference to Unix shell scripts : 

List-I                                                     List-II

a. $?                                 i.  File name of the current script

b. $#                                ii.  List of arguments

c. $0                                 iii. The number of arguments

d. $*                                  iv. Exit status of last command

Codes:
a       b       c       d

Q. The output generated by the LINUX command :
                     $ seq 1 2 10 
will be

Q. In UNIX, ______________ creates three subdirectories: 'PIS' and two subdirectories 'progs' and data from just created subdirectory 'PIS'.

Q. Which statement is not correct about “init” process in Unix?

Q. Unix command to change the case of first three lines of file “shortlist” from lower to upper

Q. Match the following vi commands in Unix:
List-I                   List-II
a.   :w        i. saves the file and quits
editing mode
b.   :x         ii. escapes unix shell
c.   :q         iii. saves file and remains
in editing mode
d. :sh       iv. quits editing mode and
no changes are saved to
the file

Codes:
     a   b  c  d

Q. The Unix Operating System Kernel maintains two key data structures related to processes, the process table and the user structure. Now, consider the following two statements:

I. The process table is resident all the time and contain information needed for all processes, even those that are not currently in memory.
II. The user structure is swapped or paged out when its associated process is not in memory, in order not to waste memory on information that is not needed.

Which of the following options is correct with reference to above statements ?

Q. Consider the following operations to be performed in Unix:

“The pipe sorts all files in the current directory modified in the month of “June” by order of size and prints them to the terminal screen. The sort option skips ten fields then sorts the lines in numeric order.”

Which of the following Unix command will perform above set of operations?

Q. Which of the following statement(s) is/are True regarding ‘nice’ command of UNIX?

I. It is used to set or change the priority of a process.
II. A process’s nice value can be set at the time of creation.
III. ‘nice’ takes a command line as an argument.