TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Linux commands

which Linux command

Overview

In this tutorial, we will learn about which Linux Command with examples.

which Linux Command

which command is used to know which command is executed by the shell. It locates the command/utility and prints the pathname to the console.

There can be multiple programs with the same name. The which command prints the path of the command executed by the shell.

Command Format

$ which [flags] argument

To know more about the command, type the man command

$ man which

Example

For example, to know the pathname of the pwd command executed by the shell.

Launch the Terminal/Konsole and type the following command.
$ which pwd

 

which pwd Linux command Example

The shell would execute the pwd command from /usr/bin/pwd

—

Linux Commands Tutorial page:

https://www.testingdocs.com/linux-basic-commands-tutorial/

More Information on Ubuntu Linux:
https://ubuntu.com/

Related Posts

sudo auth log entry

Linux commands /

sudo Linux Command with Examples

Common File Commands in Linux

Linux commands /

Common File Commands in Linux

su linux command

Linux commands /

su Linux Command

ls linux command

Linux commands /

ls Linux Command with Examples

touch create file

Linux commands /

touch Linux Command

‹ Linux Command Syntax› uptime Linux Command

Recent Posts

  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Print Triangle Pattern Flowchart
  • RAPTOR Editions
  • Flowgorithm Conditional Breakpoint Statement
  • Flowgorithm Read Numbers from File Example
  • Search Text File Flowchart Example
  • Flowgorithm Turtle Graphics Symbols
  • Draw Circle using Flowgorithm Turtle

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version