Showing posts with label Linux questions. Show all posts
Showing posts with label Linux questions. Show all posts

14 March 2014

Basic Linux MCQ Questions for Beginners (Linux Processes) - Set 6

662 comments

linux Question and answer in linux
This is set 6 in the ongoing series of MCQ. Hope you have enjoyed the other parts of the series. In this set we will cover questions related to Linux processes as processes are fundamental part of the Linux system. So lets get started

1

What is ppid(parent process id) of daemon process in Linux ?

any arbitrary number

1

Answer
Option B is correct, As daemon process are initiated by init process(Pid is 1). You can see all your system daemon process by running following command
$ cd /etc/init.d && ls
See all your currently running daemon process by executing following command
$ ps -ef | awk '$3 == 1'
Read More...

05 January 2014

Basic Linux MCQ Questions for Beginners- Set 5

8 comments

linux Question and answer in linux
This is set 5 in the ongoing series of MCQ. Hope you have enjoyed the other parts of the series. In this set also, I will cover some more basic Linux questions and their answer. Hope you will like it.

1

Which of the following commands are used to display last 10 line of the file?

tail filename

tail -10 filename

Both A and B

Only B

Answer
Option C is correct, By defualt tail command displays last 10 lines of a file, So command A and B are same.
Read More...

11 July 2013

Linux MCQ Questions and Answers - Set 4

5 comments

linux Question and answer in linux
This is set 4 in the ongoing series of MCQ. Hope you have enjoyed the other parts of the series. Like other sets this set also contains some Linux questions with their answers.

1

In Linux which of following command do you use to know the purpose of a command?

which

whatis

what

purpose

Answer
Option B is correct, whatis display the purpose of a command.
$ whatis ls
ls (1) - list directory contents
LS (6) - display animations aimed to correct users who accident...
Read More...

28 June 2013

Basic Linux MCQ Questions for Beginners - Set 3

3 comments

linux Question and answer in linux
This is set 3 in the ongoing series of MCQ. Hope you enjoyed the first part and Second part of the series. Like first set and second set, this set also contain some basic Linux questions and answers for beginners.

1

Total no of run levels in a Linux system?

6

7

5

8

Answer
Total number of run level in Linux system is 7 i.e from 0 to 6.
0 = Halt
1 = Single User
2 = Multiuser without NFS
3 = Multiuser
4 = User defined
5 = Multiuser with X
6 = Reboot
Read More...

25 June 2013

Basic Linux MCQ Questions for Beginners- Set 2

4 comments

linux Question and answer in linux
This is set 2 in the series of MCQ. Hope you enjoyed the first part of the series. Like first set, this set also contain some basic Linux questions and answers for beginners.

1

Which of the following is not a valid login shell in Linux?

C shell

Net Shell

Bash Shell

Z shell

Answer
Net shell does not exist in Linux or it is not a valid login shell. You can check all the shell available in your system by typing following command
$ cat /etc/shells
Read More...

22 June 2013

Basic Linux MCQ Questions for Beginners - Set 1

45 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.
Read More...