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.

If apt-get finds any out-of-date packages, it will let you know which ones

and ask you to confirm the upgrade, then away it goes to download and

update your system. Keeping your system up to date in this way is critical to

close any security vulnerabilities that might be lurking on your system.

vi

You will sometimes need to edit raw text files in macOS and Linux, and vi is

the default text editor, built-in to macOS and most distros of Linux. Figuring

out how to edit a file (or even just exit) with vi in some ways is a rite of

passage. Only after your have mastered vi’s non-intuitive and perhaps even

downright weird interface can you truly start to think of yourself as a UNIX

Terminal Jedi master. Well, maybe not a Jedi master, but the fact that vi is

almost always available will make you want to know how to use it. Let’s get

started with vi by creating a new text file called “fred”:

mike@server:~$ vi fred

You’ll now be in the vi text editor, staring at a blank file as shown in

Figure 15-17.

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

Saved successfully!

Ooh no, something went wrong!