219 Midterm Prep (quiz questions) Flashcards

1
Q

Where can we find Linux?

Quiz 1

A

Basically everywhere lol if he asks this question click all of the above. The specific examples provided include:
Smart TV Systems
IoT Devices
NAS
Web Servers

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

What command is used to clear the terminal screen?

Quiz 1

A

clear

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

What linux shortcut combo breaks a currently running process?

Quiz 1

A

Ctrl-C

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

What command lists the content of the current folder in human-readable file size?

Quiz 1

A

ls -lh

ls: This command lists the folders in your current directory
-lh This portion of the command edits the output to be in human readable size.

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

What command is used to show the help file of the echo command?

Quiz 1

A

help echo

The “help” portion of the command opens the help file
The echo portion of the command specifies which help file to open up
Normally, the help file comes AFTER the command (for example ls –help), but in this specific case, it goes before hand to avoid being included as part of the echo coomand.

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

What command is used to bring up the commands that have been recently used?

Quiz 1

A

history

If you would like to bring up a specific number of previously used commands, prepend the history command with a number
example: history 7 will show the last 7 commands used.

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

What command is used to show the content of a specific file?

Quiz 1

A

cat (followed by specified file path)

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

What command is used to turn off a Linux computer?

Quiz 1

A

shutdown

You can add other commands after shutdown to affect when, and how the computer shuts off.
The example given in the quiz is shutdown 60 which turns the computer off after an hour

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

What command shows users currently logged in, including system users?

Quiz 1

A

“who” is used to show the users logged into the computer
-a added on to the coomand adds the system users to the output.

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

What command is used to display the calendar?

Quiz 1

A

cal is used to display the calendar
you can prepend the command with additions to change the output to a specific date / range of dates

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

What command allows you to execute commands as the root?

Quiz 1

A

sudo allows you to run commands as the root user (basically as administrator)

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

Q

How do you change to the root directory in Linux?

Quiz 1

A

cd /

cd changes to the directory specified in the second half of the command
/ signifies the beginning of a file path, also known as the root of the device

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