Display $PATH line by line
11. 7. 2025Alias path
alias path='echo "$PATH" | tr : "\n" | nl'
could return
1 /home/b/piper
2 /home/b/.local/bin
3 /home/b/bin
4 /home/b/go/bin
5 /home/b/.cargo/bin
6 /and/much/more
Alias path2
alias path2='echo "$PATH" | tr : "\n" | pr -T -2 -w $(tput cols)'
could return a neat two column output
/home/b/piper /home/b/go/bin
/home/b/.local/bin /home/b/.cargo/bin
/home/b/bin /usr/local/sbin
/and/much/more