LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Whats wrong with this syntax? (https://www.linuxquestions.org/questions/linux-newbie-8/whats-wrong-with-this-syntax-4175439478/)

AsherSevyn 11-30-2012 12:20 PM

Whats wrong with this syntax?
 
/usr/local/apache2/bin$ pwd /usr/local/apache2/bin

unSpawn 11-30-2012 12:36 PM

Seen 'man pwd'?

David the H. 11-30-2012 12:45 PM

Or even help pwd, since you're most likely using the bash built-in version.

(hint: what arguments does it take?)

AsherSevyn 11-30-2012 02:11 PM

I've read the man page. Doesn't make sense as to why this isn't working to me.

unSpawn 11-30-2012 02:30 PM

It works perfectly as it it just disregards the directory you gave and prints the current/working directory.

David the H. 12-02-2012 11:54 AM

What you need to do then is tell us how, exactly, it's not working. What is it doing that you think it shouldn't, or not doing that you think it should? What is the exact output you get when you run it? And if you aren't using bash, what is the environment you're running it in?

It's pretty hard to tell you why something isn't working if you don't provide any information to diagnose the problem with.

Wim Sturkenboom 12-03-2012 03:24 AM

Quote:

Originally Posted by AsherSevyn (Post 4840403)
I've read the man page. Doesn't make sense as to why this isn't working to me.

As David the H. says, tell us what you expect it to do. "it isn't working" means nothing.

RaviTezu 12-03-2012 04:11 AM

What are you trying to do with pwd(print working directory)?

Habitual 12-03-2012 05:47 AM

Quote:

Doesn't make sense as to why this isn't working to me.
Read it again.

Code:

PWD(1)                                          User Commands                                          PWD(1)

NAME
      pwd - print name of current/working directory

It only does ONE THING, print name of current/working directory.


All times are GMT -5. The time now is 10:13 AM.