Question: Which Command in Linux?
Contents

which command in Linux is a command which is used to locate the executable file associated with the given command by searching it in the path environment variable.

It has 3 return status as follows: 0 : If all specified commands are found and executable.

What are the basic command in Linux?

The 10 Most Important Linux Commands

  • ls. The ls command – the list command – functions in the Linux terminal to show all of the major directories filed under a given file system.
  • cd. The cd command – change directory – will allow the user to change between file directories.
  • mv.
  • man.
  • mkdir.
  • rmdir.
  • touch.
  • rm.

Where is a command Linux?

Linux whereis command. On Unix-like operating systems, the whereis command locates the binary, source, and manual page files for a command.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest