Locating commands?

$ echo $PATH
/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin:/home/chris/bin
especially if the command resides in a directory with a long name.
 The better way is to have commands stored in well-known directories,
and then add those directories to your shell's PATH environment variable.
Related Posts:
  • What Is an Operating System? An operating system is made up of software instructions that lie between the computer hardware (disks, memory, ports, and so on) and the application programs (word processors, Web browsers, spreadsheets, and so on). At t… Read More
  • What is GUI? Graphical User Interface, makes use of images and icons that users click and manipulate as a way of communicating with the computer. … Read More
  • What is the difference between internal and external commands? Internal commands are commands that are already loaded in the system.  They can be executed any time and are independent … Read More
  • What is BASH? BASH is short for Bourne Again SHell. It was written by Steve Bourne as a replacement to the original Bourne Shell (represented by /bin/sh). … Read More
  • Common Linux Features? Multiuser — Not only can you have many user accounts available on a Linux system, you can also have multiple users logged in and working on the system at the same time. Users can have their own environments arranged th… Read More
  • What is LILO? This boot loader has been replaced by GRUB by and removed from the distribution. LILO is a boot loader for Linux. It is used mainly to load the Linux operating system into main memory so that it can begin its operations. … Read More
  • Locating commands? $ echo $PATH /bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin:/home/chris/bin especially if the command resides in a directory with a long name.  The better way is to have commands stored in well-known director… Read More
  • LPRng? This printing service was dropped, making CUPS the preferred (and only)  printing service included with Red Hat Linux. … Read More