Running a Command

Throughout this book, you’ve been practicing running a single command. Unix doesn’t really care if you’re running a built-in command that came with the system, a program you installed later, or a script your best friend wrote—it’s all the same to Unix. Code Listing 9.1 shows some options on running a command.

To run a command:

  • ls

    At the shell prompt, type the command and press .

To run a specific command:

  • /home/jdoe/scripts/ls

    It’s certainly possible that you would want to write a script that would list the files in your directory in a special way—for example, a script to list the files and to save the listing into a new file ...

Get Unix Third Edition: Visual Quickstart Guide 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.