Home
Current Affairs January 2024

What is the correct answer?

4

Which command is used to compare files?

A. cmp

B. diff

C. head

D. All of these

Correct Answer :

A. cmp


Related Questions

What is the correct answer?

4

What is the relation between grep & egrep

A. egrap is a mother of grep.

B. Egrap is totally difference

C. Egrap is a another version of grep.

D. None of these.

What is the correct answer?

4

Name of the kernel file in Linux is

A. lkrnl

B. vmlinux

C. linuxbin

D. none of the above

What is the correct answer?

4

Which command is used to see the content of a file

A. more

B. cp

C. cat

D. rmdir

What is the correct answer?

4

cat > abc, if the requested file does not exist, error will be given by

A. Kernel

B. Shell

C. root

D. None of the above

What is the correct answer?

4

To delete an user along with its home directory, the command is

A. userdel -d username

B. userdel -D username

C. userdel -r username

D. userdel -R username

What is the correct answer?

4

The type of shell mostly used for Linux is

A. bash

B. korn

C. bourne

D. C-shell

What is the correct answer?

4

The command for changing the permission relating to files is

A. ls-l

B. head

C. tail

D. chmod

What is the correct answer?

4

User passwords are stored in

A. /etc/password

B. /root/password

C. /etc/passwd

D. /root/passwd

What is the correct answer?

4

Which command is used for character translation?

A. td

B. vi

C. tr

D. tail

What is the correct answer?

4

User can be assigned to a group while creating the user. The command for this is

A. adduser -g

B. useradd -a

C. aduser -a

D. useradd -g

What is the correct answer?

4

While installing Linux, users can be created

A. True

B. False

What is the correct answer?

4

To remove a directory which is not empty ____ is used

A. rmdir

B. rmdir -r

C. rm -r

D. rm

What is the correct answer?

4

To change the ownership of a file use

A. chmod

B. chgrp

C. chown

D. change

What is the correct answer?

4

Samba password and user password are same

A. True

B. False

What is the correct answer?

4

Hidden file can be viewed using

A. ls -l

B. ls -a

C. ls -h

D. None of the above

What is the correct answer?

4

To get information about the Ethernet card, ___________ command is used

A. ipconfig

B. ifconfig

C. eth0

D. man Ethernet

What is the correct answer?

4

A user is logged in on a terminal; root tries to delete the user. Will the user be deleted?

A. Yes

B. No

What is the correct answer?

4

chmod 632 stuff means

A. Gives read & write& execute permission for owner write & execute for group read permission for other.

B. Gives read & write permission for owner write & execute for group Write permission for other.

C. Gives write permission for owner write & execute for group Write permission for other.

D. Gives read & write permission for owner read & execute for group Write permission for other.

What is the correct answer?

4

Which command is used to see the system date?

A. Time

B. Date

C. Month

D. None of these

What is the correct answer?

4

To give all permission to a file to all users the command is
all of the above

A. chmod a+777 file

B. chmod a+rwx file

C. chmod ugo+7 file

D. none of the above

What is the correct answer?

4

The symbol of wildcard(s) is

A. w

B. `

C. ? *

D. None of the above.

What is the correct answer?

4

_______ is used to rename files

A. ren

B. move

C. rename

D. mv

What is the correct answer?

4

To access a directory the minimum permission required is

A. r

B. w

C. x

D. All

What is the correct answer?

4

who -h is used to

A. Print column headings

B. Hide detail.

C. Hide user name.

D. All of the above.

What is the correct answer?

4

To create multiple directories in one shot ________ is used

A. mkdir

B. mkdir -a

C. mkdir -p

D. mkdir -h

What is the correct answer?

4

_______ will add contents to an existing file

A. cat > file

B. cat >> file

C. cat file | file1

D. cat file > file1

What is the correct answer?

4

What will be the output of the command 'tail sample'?

A. Last 10 lines of the file.

B. Last 15 lines of the file

C. Last 5 lines of the file

D. First 10 lines of file.

What is the correct answer?

4

ls -o is used for

A. Except Group

B. Except Owner

C. Except Size in Byte

D. None of the above

What is the correct answer?

4

mkdir - p is used for

A. Making directory under parent directory.

B. Making directory non existing parent directory.

C. Specified the mode of directory.

D. None of the above

What is the correct answer?

4

sort file, will sort the contents of the file and the effect will be reflected in the file

A. True

B. False