Ubuntu Linux: Working with Files Flashcards

1
Q

What command prompt determines the file type?

A

[file]

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

What can you follow [cd] with to move up one directory?

A

[cd ..]

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

What command serves the purpose of creating files?

A

[touch]

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

What is used to remove files OR directories?

A

[rm]

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

What occurs when you follow [rm] command with [-i]?

A

This runs the remove command in a way that has you verify the removal of files/directories.

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

How can you utilize [rm] to remove directories?

A

You will need to follow it up with [rf] to remove a directory.

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

What is the command to copy files?

A

[cp]

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

How can you make the [cp] command function on directories?

A

Follow [cp] with -r to copy directories.

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

What can be used to move files?

A

[mv]

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

True or False: You can use the [mv] command to not only move files but also rename them in the process.

A

True, to do this, you follow the directory with the new name of file within the command

Ex: [mv file2.txt test/documents/confidential newfile2.txt]

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