Module 5 bulk 2 Flashcards
what does Get-Process do without options?
give you process information for each running process in the system, or on a remote computer.
how would you display the top processes in powershell using the most cpu?
Get-Process | Sort CPU -descending | Select -first 3 -Property ID,ProcessName,CPU
what does the command
Sort CPU -descending
do?
feeds piped input into the sort command, which sorts the input based on the CPU column, in descending order from least to greatest.
the Get-Process command is singular in its name, but can it get many processes?
yes.
computer idea:
the ergolap: a computer or computer-holding or adapting device that is as portable as a laptop, but allows you to move the screen to be eye-level height, and to use a keyboard that can be pulled out and ergonomically manipulated from by the screen.
ideally, the device would be able to be molded to fit multiple shapes and still allow rapid keypad entries.
I wonder if this is being made or has been.
what does the
Format-List *
cmdlet do?
displays all available properties * of the piped input.
How many mb is requested for the command
Where-Object {$_.WorkingSet -gt 20000000}
20
learn about Get-Process
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-process?view=powershell-5.1#syntax
what is the Google DNS IP address?
8.8.8.8
what should you set for the DNS server addresses?
208.67.222.222
66.228.116.179
those are opendns, and you can also use
8.8.8.8
and
8.8.4.4
which belong to Google
what command in Linux will show you what your system utilization looks like? Shows the top processes that are using the most resources on the machine, total tasks running or idle, CPU usage, memory usage, more.
top.
what are the common things people look at in the top command?
%CPU, %MEM. what CPU and what memory usage a single task is taking up
how do you get out of the top command?
q
what is one of the most common reasons for a user’s computer to be running slow?
overuse of hardware resources
what is a potential solution to the problem of overuse of hardware resources?
upgrade your usage, get rid of bloat, free up storage, close processes and programs.
what should you do if you find that a process in top is taking up a lot of resources?
check what the process is doing, terminate as needed to get back the resources the process was using.
What Linux command shows information about the current time, how long your system has been running, how many users are logged on, and what the load average of the machine is.
uptime
what metric shows the average CPU load in 1, 5, and 15 minute intervals?
load average, linux
when are load averages useful?
when you need to see how your machine is doing over time
lists open files and what processes are using them. you can track down processes that hold files open.
LSOF command
what is a use case for the LSOF command?
troubleshooting the:
device or resource busy
error.
USB ejection, find what processes are open.
why could it be a good idea to do resource monitoring for specific metrics, one sort at a time?
hardware maintenance of specific aspects of your system, multiple machine maintenance in general.