≡ Menu

command shell

Linux / UNIX: Determine where a binary command is stored / located on file system

You can use “type” or “whereis” command to find out which command shell executes and to print binary (command) file location for specified command.

whereis command example

Display ls command location along with man page path:
whereis ls
ls: /bin/ls /usr/share/man/man1p/ls.1p.gz /usr/share/man/man1/ls.1.gz

type command example

Find out which command the shell executes:
type -a ls
ls is aliased to `ls –color=tty’
ls is /bin/ls

Related: How Linux or UNIX Understand which program to run – PART I and How BASH Shell Command Search Sequence Works

Sysadmin because even developers need heroes!!!

Sending Email With Attachments From Unix / Linux Command [ Shell Prompt ]

If you need to send an email with a text file (or binary file) as attachment using shell script or command prompt in Unix or Linux; try mutt – a terminal-based e-mail client for Unix-like systems.
[click to continue…]