Manually copy-pasting the output of a terminal command with a mouse/trackpad feels tedious. It is more convenient to use commands to do so. And we can save the effort by using the built-in commands. We can use and to copy and paste from the Mac terminal. We can pipe the output of a command to copy its output to the clipboard. For example, to copy the current directory path…