how do i display the path name to the bash shell

Reply

Join Date: May 2009
Posts: 2
Reputation: towelee is an unknown quantity at this point 
Solved Threads: 0
towelee towelee is offline Offline
Newbie Poster

how do i display the path name to the bash shell

 
0
  #1
May 15th, 2009
how do i display the path name to the bash shell?

Thanks all
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: how do i display the path name to the bash shell

 
0
  #2
May 15th, 2009
You mean put the current working directory into the prompt "like DOS" ?

Or just type
pwd
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 61
Reputation: Gromit is an unknown quantity at this point 
Solved Threads: 7
Gromit's Avatar
Gromit Gromit is offline Offline
Junior Poster in Training

Re: how do i display the path name to the bash shell

 
0
  #3
May 18th, 2009
Or do you mean the full path to the bash binary?

Shell Scripting Syntax (Toggle Plain Text)
  1. $ which bash
  2. /bin/bash
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1,763
Reputation: DimaYasny will become famous soon enough DimaYasny will become famous soon enough 
Solved Threads: 85
Moderator
Featured Poster
DimaYasny DimaYasny is offline Offline
Posting Virtuoso

Re: how do i display the path name to the bash shell

 
0
  #4
May 19th, 2009
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
Real stupidity always beats Artificial Intelligence. (Terry Pratchett)

BA BizMg, MCSE, DCSE, Linux+, Network+
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC