Linux Commands

Linux commands are programs, developed by GNU or other projects, and included with the Linux distribution. You can see some Linux commands by typing:

ls /bin

The output includes many of the Linux commands you use. For instance, the ls command used above to see what's in the bin directory runs a program stored in the bin directory, as shown in the output from the ls command. The commands are binary files. To see the file type, enter:

					file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386 version...

This is an executable file. If you tried to display it on the screen with something like cat /bin/ls, the output would be garbage.

You can run this program by typing ls at any command line. You don't need to use the path because ...

Get Spring Into Linux® 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.