Logo

Bash-scripting-and-commands Questions Set 2:

Quiz Mode

Option used with the grep command to delete lines?

1
2
3
4

Solution:

 To know the exit status of a command, we can use ____

1
2
3
4

Solution:

Which command duplicates its input character stream?

1
2
3
4

Solution:

Which symbol is used for finding the length of the string?

1
2
3
4

Solution:

Which of the following options displays only the filenames containing the specified pattern?

1
2
3
4

Solution:

Which command is used to get the exact number of characters present in a file in Linux?

1
2
3
4

Solution:

Which of the following is the most common type of file?

1
2
3
4

Solution:

What is the correct syntax for the grep command?

1
2
3
4

Solution:

Which of the following is the correct syntax for using the sed command?

1
2
3
4

Solution:

What does the -S option in the ls command do?

1
2
3
4

Solution: