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.

NOTE Make sure that the prompt points to the directory in which you want

to make the new subdirectory before you execute the md command.

Then run the md command to make the files directory:

md files

When you’re finished, type dir to see the new files subdirectory. Just for

fun, try the process again and add a games directory under the practice

directory. Type dir to verify success.

Creating folders in macOS and Linux is again identical, but you must use

the mkdir command. Here is the same example just given but done on my

Ubuntu system:

mike@server:~$ mkdir practice

You can see the results by running the ls command:

Don’t forget that Linux is case sensitive. Check out the results of these

three different folders, all different capitalizations of “files”:

Removing Directories: The rd/rmdir Command

Removing subdirectories works exactly like making them. First, get to the

directory that contains the subdirectory you want to delete, and then execute

either the rmdir or rd command. Both of these commands are functionally

identical, but where they work is important. The rmdir command works

equally well in Windows, macOS, and Linux, but the rd command only

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

Saved successfully!

Ooh no, something went wrong!