Week 3 Comprehension Flashcards

1
Q

The more command supports the use of arrow keys to navigate while less command does not.

True
False

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which line will NOT be displayed with the following command?

$ grep tio* file1

  • Options are also taken from
  • Notice that this message
  • Repeat previous command
  • version is especially primitive
A

-Repeat previous command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which command is NOT used to display the content of a text file?

  • cat
  • dog
  • head
  • tail
A

-dog

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which command was entered at ____________________? (Select two)

[user1@localhost gdm]$ pwd

/etc/gdm

[user1@localhost gdm]$ ____________________

[user1@localhost share]$ pwd

/usr/share

cd ../../root/usr/share
cd ../../usr/share
cd ../usr/share
cd /usr/share

A

cd ../../usr/share

cd /usr/share

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Find the match for vi editor operations.
i

O

dd

:wq

  • Enters the insert mode and opens a new line above the current line
  • Enters the insert mode and places the cursor before the current character
  • Saves changes to the file and terminates vi
  • Removes the current line
A

i= Enters the insert mode and places the cursor before the current character

O= Enters the insert mode and opens a new line above the current line

dd =Removes the current line

:wq =Saves changes to the file and terminates vi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which one is NOT a popular text editor on Linux?

  • vi
  • Emacs
  • Python
  • nano
A
  • Python
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Identify the relative path names. (Select two)

  • ../../bin
  • /bin
  • Download
  • /root
A
  • ../../bin
  • Download
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which command was given for the output below?

2019-10-14.png (see image in link below)


ls -a
ls -l
ls -F
ls -R

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Find the match.

~
.
..
/

The root directory

Current directory

Home directory

Parent directory

A

Home directory = ~

Current directory =.

Parent directory =..

The root directory =/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What command was given for the following output?

[root@localhost dev]# __________

tty6 tty60 tty61 tty62 tty63

  • ls tty6?
  • ls tty6*
  • ls tty6[0-3]
  • ls tty6[0123]
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly