Exercises
The following are some exercises to help you solidify your knowledge of this chapter:
- How can we use PowerShell to display just the day of the week it is today?
- We need to get a list of CPU usage and the locations of all our running processes, and we don’t want a lot of unnecessary information. How do we do that?
- Now that we’ve got our list, how can we get the path names in reverse alphabetical order?
- There’s a lot of stuff here. How do we ensure it only lists the processes that have a CPU usage of greater than 5?
- What is the most efficient way to get a list of read-only files from our home drive?
- We need to get the size of all the files in our home directory. We just want the name and the size in bytes.
- We have a file that contains a list of process names, called
processes.txt
. we need to use it to discover information about the processes on our local machine, so we will need to find a cmdlet that can get content from...