tr Command: Translate Characters to Improve Readability In Unix/Linux

tr Command: Translate Characters to Improve Readability In Unix/Linux

To check what directories are in your $PATH, you can use echo $PATH. But since directories are separated by a colon, the output can be difficult to read.

Use tr ":" "\n" to translate ":" to "\n" and the directories will be separated by a new line instead.

Read this article if you don’t know what is $PATH IN Unix/Linux.

 

Search

Related Posts

Related Posts

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran