What does the ‘which’ command do?

unix
unix

The ‘which’ command is great for finding where a program that exists in the user’s path is located.

To use it, type the following in a terminal:

What prints out on the next line is the first location found where that program is installed.

There are options available, see below:

wc word count command

unix
unix

What is the wc command in Unix-like operating systems?

Have you ever had the need to count the words in a text?

If you’re like me, you’ve probably used an online word counting tool, like the one found here.

But who likes copying and pasting to a website when you have such great tooling available via terminal?

Check out the wc command.  Usage: wc [-clmw] [file …]

Here is an example:

See below for more usage options: