LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2012, 12:20 PM   #1
AsherSevyn
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Rep: Reputation: 0
Whats wrong with this syntax?


/usr/local/apache2/bin$ pwd /usr/local/apache2/bin
 
Old 11-30-2012, 12:36 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Seen 'man pwd'?
 
Old 11-30-2012, 12:45 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

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

(hint: what arguments does it take?)
 
Old 11-30-2012, 02:11 PM   #4
AsherSevyn
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Original Poster
Rep: Reputation: 0
I've read the man page. Doesn't make sense as to why this isn't working to me.
 
Old 11-30-2012, 02:30 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
It works perfectly as it it just disregards the directory you gave and prints the current/working directory.
 
Old 12-02-2012, 11:54 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959
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.
 
Old 12-03-2012, 03:24 AM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by AsherSevyn View Post
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.
 
Old 12-03-2012, 04:11 AM   #8
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
What are you trying to do with pwd(print working directory)?
 
Old 12-03-2012, 05:47 AM   #9
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,343
Blog Entries: 11

Rep: Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320Reputation: 2320
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fortran - G95 - Wrong Syntax or wrong compiler settings laucian Programming 1 03-21-2008 10:18 AM
.htaccess - whats wrong with this redirect syntax? neocontrol Linux - Server 3 03-16-2007 02:55 PM
What is this, whats wrong w/ me? colinstu General 11 12-19-2006 06:50 AM
whats wrong with my sound? HNjerry Linux - Software 0 03-02-2004 11:12 AM
Whats wrong with this? OlRoy Programming 2 05-28-2003 01:21 PM


All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration