Logo

Bash-scripting-and-commands Questions Set 6:

Quiz Mode

How many types of shell variables are there in Linux/Unix?

1
2
3
4

Solution:

How to make a script executable?

1
2
3
4

Solution:

Which option is used to create a user's login environment?

1
2
3
4

Solution:

To spawn a child of our own choice for running the script, we can use ___ command

1
2
3
4

Solution:

Which shell variable can be used to get the exit status of the last executed command?

1
2
3
4

Solution:

Which of the following options with sed is used to write selected lines to a separate file?

1
2
3
4

Solution:

When we log in, the UNIX system places us in a directory called the ______ directory.

1
2
3
4

Solution:

Which of the following comparison operators implies 'greater than' and 'less than' respectively?

1
2
3
4

Solution:

What is a directory file?

1
2
3
4

Solution:

What are positional parameters?

1
2
3
4

Solution: