15.01.2024 Views

CompTIA A+ Certification All-in-One Exam Guide

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Just in case you want to know what each piece of that string in the cmdlet

means, here’s the scoop: Get-ChildItem is the main command. The dot (.)

indicates the current directory, while –Include tells the command to fetch the

file type indicated next, in this case *.jpg. –Recurse means go into every

subdirectory, and –Force retrieves hidden and system files too. It’s like dir on

steroids!

This is just scratching the surface with what you can do with PowerShell.

If you want to give it a try yourself, simply type powershell in the Search bar

and press ENTER. Good luck!

Assorted macOS and Linux Commands

macOS and Linux have a massive number of built-in command-line utilities

and probably hundreds of thousands of easily accessed and installed thirdparty

tools that work amazingly well. In fact, one of the most interesting

challenges to Terminal is that for almost any job, there is more than one tool

for the job (see the vi command, later). What you are going to see here are the

commands listed by the CompTIA A+ objectives—you could spend the rest

of your life learning all of the Terminal commands!

NOTE The first and second commands below are ifconfig and iwconfig,

very network-specific Terminal commands. If you don’t have a good grasp

on networking yet, skip these commands until after you read Chapters 18

through 21. Then come back to them.

ifconfig

The ifconfig command enables you to view and change the settings for your

network connections. Running ifconfig shows the following output (yours

will certainly be different):

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!