Linux Flashcards

1
Q

What command compiles c++ code in Linux?

A

g++ exploit.cpp -o notepad.exe
gcc exploit.cpp -o notepad.exe

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

What UID and GUID does Root have?

A

0

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

What UID and GID does first user have?

A

500

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

What does the following command do?

crontab -e

A

Edits crontab entries to add, delete, or edit cron jobs.

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

What does the following command do?

crontab -l

A

List all the cron jobs for the current user.

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

What does the following command do?

crontab -u username -l

A

List another user’s crons.

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

What does the following command do?

crontab -u username -e

A

Edit another user’s crons

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

In cron jobs, 0 = Sunday.

True or False?

A

True.

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

What is CHNTPW used for?

A

Utility for resetting or blanking password used by Windows systems (Editing SAM db file).

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