Linux - Print path with one line per entry, Echo PATH of your system
Print path with one line per entry
We use to print the PATH of our linux machine by using the echo $PATH command.
How to find the PATH
echo $PATH
OUTPUT:
/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/patel/bin
This kind of output will not be legible to read of find the path.
How to print PATH with one line per entry
echo -e ${PATH//:/\\n}
OUTPUT:
/usr/lib/qt-3.3/bin /usr/kerberos/bin /usr/lib/ccache /usr/local/bin /usr/bin /bin /usr/local/sbin /usr/sbin /sbin /home/patel/bin
Print PATH with one line per entry in a separate page
echo -e ${PATH//:/\\n} | less
The topic on Linux - Print path with one line per entry is posted by - Linux Patel
Hope you have enjoyed, Linux - Print path with one line per entryThanks for your time