Basic command prompt Flashcards

1
Q

pwd

A

print working directory - shows the current directory

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

cd

A

change directory

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

ls

A

shows the list of the directory

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

reading files

A

cat web.log20201002

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

searching directories/files

A

| at the end of the comand

grep ‘text’

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

text editor

A

nano php.ini

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

sudo

A

superuser keyword

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

checking last lines of the file (for reading logs)

A

tail -f web.log.20201002

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

history

A

searching hsitory (| grep can be a modifier)

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

What does “/” , “./”, “../” represent while giving path?

A

/ is the root of the current drive;
./ is the current directory;
../ is the parent of the current directory.

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