Sponsored Content
Full Discussion: $PWD vs `pwd`
Top Forums UNIX for Dummies Questions & Answers $PWD vs `pwd` Post 302590869 by pandeesh on Tuesday 17th of January 2012 11:24:40 PM
Old 01-18-2012
Sure Methyl.There's no difference in my ubuntu.Both returns same result.
May i know in which OS you tested?
Code:
pandeeswaran@ubuntu:~/lnktraining$ ls -lad /home/pandeeswaran/lnktraining
lrwxrwxrwx 1 pandeeswaran pandeeswaran 27 2012-01-17 23:06 /home/pandeeswaran/lnktraining -> /home/pandeeswaran/training
pandeeswaran@ubuntu:~/lnktraining$ pwd
/home/pandeeswaran/lnktraining
pandeeswaran@ubuntu:~/lnktraining$ echo $PWD
/home/pandeeswaran/lnktraining
pandeeswaran@ubuntu:~/lnktraining$ cd ..
pandeeswaran@ubuntu:~$ cd training
pandeeswaran@ubuntu:~/training$ pwd
/home/pandeeswaran/training
pandeeswaran@ubuntu:~/training$ echo $PWD
/home/pandeeswaran/training
pandeeswaran@ubuntu:~/training$

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

help on PWD

Hi, We all know that pwd (or echo $PWD) gives us the present working dir as output.... but my doubt is that I'ld like to know how to get the present working folder - I mean - name of the current folder alone.. using pwd command I get the full folder name (right from root path)... I need to know... (2 Replies)
Discussion started by: mohanprabu
2 Replies

2. UNIX for Dummies Questions & Answers

pwd

Home directory mounted on one local system as /home/username, same directory mounted on a remote system as /home/engr/username. How to use command to use remote host pwd. For example rsh <remote host> ls -l ~pwd (2 Replies)
Discussion started by: bugsandbunny
2 Replies

3. UNIX for Advanced & Expert Users

echo ${PWD#${PWD%/*/*}/}

Can anyone explain this in detail ... echo ${PWD#${PWD%/*/*}/} Thanks in Advance (1 Reply)
Discussion started by: sakthi.abdullah
1 Replies

4. UNIX for Advanced & Expert Users

console '# ' with {PWD} ??

Hi people... i recently installed AIX 5.3 on a server... but now when i login with root it only shows '# ' without the location where i am... for example: if im in /usr/local it continues to show only '# ' and i want to see the path like 'root@server:/usr/local#' someone can help me? ... (2 Replies)
Discussion started by: gfca
2 Replies

5. UNIX for Dummies Questions & Answers

how to connect to /etc/pwd

i've been searching the way to connect to pwd.db file located in /etc/ directory.. since i'm not the root and only one of the users of the server, i need to connect to the database so that i can make a login page for all users of the server.. the file is readable by all users and the permission... (1 Reply)
Discussion started by: meggae
1 Replies

6. UNIX for Dummies Questions & Answers

PWD COMMAND

Hi, Can you tell me if there is a command such as pwd which does not give me the absolute NFS pathname i.e. it starts with .autofs? At the moment on the unix when I use the 'pwd' command it always gives me the nfs pathname rather thanthe local pathname of which is what i want, is there an... (4 Replies)
Discussion started by: cyberfrog
4 Replies

7. AIX

sync samba pwd with aix5.3 pwd

currently, my samba login works just fine. i want my clients to use aix5.3 account to login to samba so they don't have to change samba pwd and aix pwd. i googled, and vi /usr/lib/smb.conf per some of knowledge base, but i could not get to work. aix5.3 and samba 3.0.24.0 thanks in advace..... (2 Replies)
Discussion started by: tjmannonline
2 Replies

8. UNIX for Dummies Questions & Answers

pwd help

Dear users, One more question, In unix when i use pwd the following I get: pwd /Users/username/src/directory name Is there a way to get the out put like this in which the if there is a space in the directory eg directory name it should show as directory\ name:... (2 Replies)
Discussion started by: kevincobain2000
2 Replies

9. Shell Programming and Scripting

Help with 'pwd' command

Dear all, I am trying to use 'pwd' command in following way. current_directory == /dirA/dirB/test/dirC if ; then do this fi I am not sure how to pass this in command way. Please help! thanking you, emily (10 Replies)
Discussion started by: emily
10 Replies

10. UNIX for Beginners Questions & Answers

$pwd

Hi all,when I cd to an environment variable "cd $MYDIR, if I type pwd, I don't the path to the environment variable dir I cd to. Appreciate the help, regards..Abbya (5 Replies)
Discussion started by: abbya
5 Replies
FANN_CASCADETRAIN_ON_DATA(3)						 1					      FANN_CASCADETRAIN_ON_DATA(3)

fann_cascadetrain_on_data - Trains on an entire dataset, for a period of time using the Cascade2 training algorithm

SYNOPSIS
bool fann_cascadetrain_on_data (resource $ann, resource $data, int $max_neurons, int $neurons_between_reports, float $desired_error) DESCRIPTION
The cascade output change fraction is a number between 0 and 1 determining how large a fraction the fann_get_MSE(3) value should change within fann_get_cascade_output_stagnation_epochs(3) during training of the output connections, in order for the training not to stagnate. If the training stagnates, the training of the output connections will be ended and new candidates will be prepared. This training uses the parameters set using the fann_set_cascade_..., but it also uses another training algorithm as it's internal train- ing algorithm. This algorithm can be set to either FANN_TRAIN_RPROP or FANN_TRAIN_QUICKPROP by fann_set_training_algorithm(3), and the parameters set for these training algorithms will also affect the cascade training. PARAMETERS
o $ann -Neural network resource. o $data -Neural network training data resource. o $max_neurons - The maximum number of neurons to be added to neural network. o $neurons_between_reports - The number of neurons between printing a status report. A value of zero means no reports should be printed. o $desired_error - The desired fann_get_MSE(3) or fann_get_bit_fail(3), depending on which stop function is chosen by fann_set_train_stop_func- tion(3) RETURN VALUES
Returns TRUE on success, or FALSE otherwise. SEE ALSO
fann_train_on_data(3), fann_cascadetrain_on_file(3). PHP Documentation Group FANN_CASCADETRAIN_ON_DATA(3)
All times are GMT -4. The time now is 10:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy