Finding Files

With so many files stored on the Linux system, it can often become difficult to find the files you’re looking for. Fortunately, Linux provides a few different file-searching features for us to help out. This chapter takes a look at the ones you’ll most likely use and run into on the Linux Essentials exam.

The which Command

You can use the which command to find where programs and utilities are stored. This can come in handy if you have two versions of a program installed on your system, or if you’re not sure if a command is built into the Linux shell, or supplied as a separate utility. The format for using the which command is pretty simple:

The output of the which command shows the full path to where the command is stored on ...

Get Linux Fundamentals, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.