| | |
how do i display the path name to the bash shell
![]() |
Or do you mean the full path to the bash binary?
Shell Scripting Syntax (Toggle Plain Text)
$ which bash /bin/bash
only thing to remember - if there are space chars in the path, either escape them using '\' or put the path in quotes.
using `find` instead of `ls -A`, is another helpful hint, when iterating through dirs and files with spaces
using `find` instead of `ls -A`, is another helpful hint, when iterating through dirs and files with spaces
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)
BA BizMg, MCSE, DCSE, Linux+, Network+
BA BizMg, MCSE, DCSE, Linux+, Network+
![]() |
Similar Threads
- Help!! bash shell scripting.. (Shell Scripting)
- python with bash shell (Python)
- Advantage of using shell(ksh/bash etc) compared to perl? (Perl)
- Cygwin Bash Shell (Getting Started and Choosing a Distro)
- how to Upload files using Linux bash Shell scripting and CGI (Shell Scripting)
- Bash shell needs tweeking (Shell Scripting)
- Bash shell screipt help (Shell Scripting)
Other Threads in the Shell Scripting Forum
- Previous Thread: how do I use grep/wc/uniq for max line length, word count
- Next Thread: need shell script to read particular records from a file
| Thread Tools | Search this Thread |






