22 June 2013

Basic Linux MCQ Questions for Beginners - Set 1

12 comments

linux Question and answer in linux
This set contains questions which test your basic knowledge about Linux. It might be useful for the beginners who are just starting with Linux and want to test their knowledge.

1

Maximum how long can a Linux filename be?

128 bytes

255 bytes

32 bytes

64 bytes

Answer
In Linux filename length can be upto 255 bytes.

2

Which combination of keys is used to exit from terminal?

Ctrl + t

Ctrl + z

Ctrl + d

Ctrl + e

Answer
Ctrl + d can be used to exit from terminal

3

Which command(s) is/are used to get help about a command in Linux?

info

man

None of these

Both a and b

Answer
man and info both commands will help to get syntax and options for commands. info is the default format for documentation inside the GNU project, man is the much older traditional format for UNIX.

4

Which of the following OS is not based on Linux?

Ubuntu

Redhat

CentOs

BSD

Answer
Berkeley Software Distribution(BSD) is a Unix based OS.

5

Which command is used to get the kernel version in Linux?

uname -r

kernel

uname -n

uname -s

Answer
$ uname -r
3.2.0-32-generic

6

Which command is used to list all the files in your current directory(including hidden)?

ls -l

ls -t

ls -a

ls -i

Answer
ls -a is used to list all files in a given directory.

7

Which command is/are used to remove directory in Linux?

rmdir

rm -r

only b

Both a and b

Answer
rm -r and rmdir both are used to remove directory.

8

Which key combination is used to see all the hidden files in Nautilus file manager?

Ctrl + Shift + h

Ctrl + h

Ctrl + Alt + h

None of the above

Answer
Ctrl + h is used to see all the hidden file in nautilus.

9

Which of the following command is used to create file in Linux?

touch

cat

echo

All of the above

Answer
You can use all of the above command to create file in Linux. For example
$ touch [filename]
$ cat > [filename]
$ echo [content of the file] > [filename]

10

In Linux everything stored as a

file

directory

executables

None of the above

Answer
In Linux everything is stored as file. In Linux "everything is considered as a file".

That's it.
Hope you Enjoyed the post. Give your valuable feedback :).


If You Liked This Post Please Take a Time To Share This Post

You May Also Like...

12 comments:

  1. #9's logic is flawed. By the same logic, "rm", "iptables", "fdisk", "ls", "fsck", "poweroff" and others can also create files in Linux.

    ReplyDelete
  2. ya i know that but these are most basic commands which are used to create files in Linux system

    ReplyDelete
  3. Very good Admin, I like the way you have presented the question. Can I know how you did it ?

    ReplyDelete
  4. I am really grateful to you for this Big App Shopping Days amazing post which you have given here, its really nice and fantastic.

    ReplyDelete
  5. A nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    CAT coaching in chennai

    ReplyDelete
  6. This helped me lot to improve my knowledge of Linux and it also helped me to Pass my MCQ Exams :)

    Thanks

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. Hello I am preparing for competitive exams I am weak in Time and Work MCQ Questions. Can you please help me out by providing direct link from where I can practice on my weak points.

    ReplyDelete
  9. basic commands which are used to create files in Linux system, linux is the good option for open source operating sistem

    ReplyDelete