Kali Basic Commands Flashcards

1
Q

True of false

Linux is not case sensitive

A

False

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

What is the command which will tell you the directory you are currently in?

A

Type the command ‘pwd’

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

What is the command to move UP a directory?

A

Type the command ‘cd ..’

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

What is the shortcut to take you back to the home folder?

A

Type the command ‘cd ~’

Alternatively, you can simply type ‘cd’

Note: The symbol is the tilde

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

What is the shortcut to go back to the previous folder you were in?

A

Type the command ‘cd - ‘

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

You are in the home folder.

How would you create a new folder in the temp directory?

A

Type the command ‘mkdir /tmp/testdir

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

What is the command to get parent directories, i.e. one folder within another folder?

A

Type the command ‘mkdir -p /tmp/dir1/dir2

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

What is the command to create a new text file in the tmp directory?

A

Type the command ‘touch /tmp/newfile.txt’

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