In Photoshop, there are various ways to draw a line. The most common way is to use the Pen tool. To do this, simply click on the Pen tool in the toolbar and then click and drag on the canvas to draw a line.
Alternatively, you can click on the start point of the line and then hold down the Shift key while clicking on the endpoint of the line. This will constrain the line to a straight path.
Another way to draw a line in Photoshop is to use the Brush tool.
To do this, select the Brush tool from the toolbar and then click and drag on the canvas to draw a line. You can also click on the start point of the line and then hold down the Shift key while clicking on the endpoint of the line to constrain it to a straight path.
Conclusion: There are various ways to draw a line in Photoshop, but the most common way is to use either the Pen or Brush tool.