Files Flashcards

Know all files types with explanations

1
Q

what are listing file example ( 4)

A

ls
ls -a
ls -lh
ls -r

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

How do you change directory

A

cd <dir></dir>

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

How do you return to the home directory

A

cd

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

how do you move two directories

A

cd ../..

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

difference between absolute and relative file paths

A

absolute is a full file path whereas relative is only from where the user is in the directory structure

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

how do you copy, remove, move and create a directory

A

copy = cp
remove = rm
move = mv
create a directory = mkdir

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

what does the “man” command mean

A

displays all information about the command

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

what does this command do cat <filename></filename>

A

finds the name and contents of the file

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

What does the grep command mean

A

searches for patterns and can also be the output for a file

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

what does the find command mean

A

finds/ searches for files

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

what does pwd command mean

A

prints the current file

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

what is the crucial factor about the chmod command

A

it uses octal instead of hexadecimal

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

what does the read number stand for

A

4

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

what dfoes the write number stand for

A

2

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

what does the execute number stand for

A

1

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

what does this symbol mean <

A

takes the input from a file

17
Q

what does this symbol mean >

A

takes the output from a file

18
Q

what does this symbol mean |

A

joins commands together

19
Q

what are the two m ost common types of editors

A

VI
Nano

20
Q
A