Working with files and Directories Flashcards

1
Q

How to scroll down one page line by line with the command more?

A

Pressing the ENTER key.

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

How to move to the next page with the command more?

A

Pressing the Space bar key.

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

How to move to the previous page with the command more?

A

Pressing the b key.

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

How to search for a string with the command more?

A

Pressing the / key.

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

What does the tac command do?

A

Display the file content in reversed order.

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

What is the command to search something inside the text in Nano?

A

CTRL + W

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

What are the command to compare two files?

A

cmp and comm

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

What is the command to replace strings in a file without saving?

A

sed

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

How to see the size in megabytes with the df command?

A

df -m

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

What is tar used for?

A

To work with tarballs.

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

What is the command to compress a file with tar?

A

tar -zcvf [compressed file name] [file to compress]

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

What is the command to uncompress a tar file?

A

tar -zxvf [file name]

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

How to compress or uncompress zip files?

A

zip and unzip commands.

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