15.01.2024 Views

CompTIA A+ Certification All-in-One Exam Guide

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

number of ways to access previously typed commands. Type the dir

command at a command prompt. When you get back to a prompt, press F1,

and the letter d appears. Press F1 again. Now the letter i appears after the d.

Do you see what is happening? The F1 key brings back the previous

command one letter at a time. Pressing F3 brings back the entire command at

once. Now try running these three commands:

Now press the UP ARROW key. Keep pressing it till you see your original

dir command—it’s a history of all your old commands. Now use the RIGHT

ARROW key to add /w to the end of your dir command. Windows command

history is very handy.

NOTE macOS and Linux shells come with their own sets of special keys,

many of which match those in Windows. Actually, Windows copied many of

the handier keys, like the history feature, from the UNIX world. macOS and

Linux take the command history one step further and remember it even if you

close the terminal or reboot the machine—useful if you accidentally closed

the terminal. macOS and Linux shells don’t use the function keys as

Windows does but instead have many hotkeys that use the CTRL key. For

example, you can search your history with the CTRL-R keystroke. This can pay

for itself if you have been working with a long, complex command one day

and need to use it again two weeks from now!

PowerShell

Microsoft’s PowerShell is a powerful replacement for the traditional

Windows Command shell. PowerShell enables you to do all the typical

command-line activities, such as dir, cd, md, and so on, but brings a series of

vastly more powerful tools called cmdlets that enable you to accomplish

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

Saved successfully!

Ooh no, something went wrong!