22 June 2013

Basic Linux MCQ Questions for Beginners - Set 1

37 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...

37 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. basic commands which are used to create files in Linux system, linux is the good option for open source operating sistem

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

    ReplyDelete
  10. We know that as a student you may have faced various difficulties in Programming assignments. Whether it's a project, an essay, etc. You might need someone to help you out with the research or editing. Or, you might want someone to proofread and correct your paper. sampleassignment.com is here for all your academic needs. We provide professional programming assignment help for all types of assignments and we are at the best prices. Hire us now!

    ReplyDelete
  11. Staggering posting this is from you. I'm unquestionably excited to peruse this superb post.
    https://investorsconnect.com/read-blog/3156

    ReplyDelete
  12. Thanks For sharing, Are you having trouble writing your Economics Assignment? There is no need to worry as Hello Assignment Help is here to provide you with your Economics Assignment help. Hello Assignment Help is recognized for its services in Economics Assignment help in Australia. In the current era, many students are into part-time jobs and occupations, restricting them from crafting assignments within the deadline and according to university guidelines.

    ReplyDelete
  13. Thanks for the information, Very useful
    https://srislawyer.com/bankruptcy-lawyers-near-me-chapter-7-bankruptcy-lawyers-near-me/
    chapter 7 bankruptcy virginia means test

    ReplyDelete
  14. Thanks for the post. It was very informative to read.
    also, check Linux Classes in Pune

    ReplyDelete