Performing basic file management Flashcards

1
Q

What does the command ls do

A

displays a list of files and directories

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

What does the command touch do

A

modifies a files time stamp but more often used to create an empty file

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

What does the command cp do

A

makes a copy of a file

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

what does the command rm do

A

deletes a file from the system

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

What does the command mv do

A

move or rename a file

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

What does the command file do

A

determines a file type

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

What does the command cd do

A

changes the directory

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

what does the command mkdir do

A

makes a new directory

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

What does the command rmdir do

A

deletes a directory with any content

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

What does the $Path command do

A

variable that describes the directories that the currently logged in user can run applications from without specifying their full path

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

What does the command dd do

A

Copies and converts files. Often used to create files of arbitrary size and to back up disk drives

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

What does the command tar do

A

Wraps up files and folders into an archive file. This command does not provide compression on its own

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

What does the command gzip do

A

Command that creates .gz compressed files

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

What does the command gunzip do

A

extracts gz compressed files

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

What does the command bzip2 do

A

creates .bz2 compressed files

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

what does the command bunzip2 do

A

extracts .bz2 compressed files

17
Q

What does the command unx2 do

A

extracts .xz compressed files

18
Q

What does the command -name do

A

Find files based on their name

19
Q

What does the command -ctime do

A

Find all files based on the time when they were last changed

20
Q

What does the command -atime do

A

Find files based on their access time

21
Q

What does the command -empty do

A

Find files or folders that are empty

22
Q

What does the command -exec [command] {} : do

A

The exec statement for the find command that will act on the results of the find command itself

23
Q

What does the “.” do in a command

A

Matches zero or more characters

24
Q

What does the command ? do

A

Matches any single character

25
Q

What does [abc] do

A

Matches any one of the characters in the list, case sensitive

26
Q

What does [^abc] do

A

Matches any one character except those in the list, case sensitive

27
Q

What does the commands [0-9] do

A

Matches a range of numbers