Results 1 to 9 of 9
Hi All,
I am new to Linux. So, please pardon if the question is too trivial.
'Is there a shell command to verify path and a file in some path?'
...
- 07-18-2007 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 6
Is there a shell command to verify path?
Hi All,
I am new to Linux. So, please pardon if the question is too trivial.
'Is there a shell command to verify path and a file in some path?'
Thanks!
- 07-18-2007 #2
I'm afraid that I don't understand your question.
The command 'pwd' (or the environment variable $PWD) will tell you your current path. If you combine this with the relative path of any file, you will have its absolute path.
If this doesn't answer your question, please explain your question further.DISTRO=Arch
Registered Linux User #388732
- 07-18-2007 #3
Do you mean 'the folders on your path'? If so, you can get them like this
echo $PATHPut your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
Linux User #425940
Don't PM me with questions, instead post in the forums
- 07-18-2007 #4Just Joined!
- Join Date
- Apr 2007
- Posts
- 6
Sorry for being abstract.
Here I go again:
I want to be able to verify if there is a file/dir at a particular location on the local system, using shell command.
Ex: I want to verify if directory /usr/bin/abcd is present, using shell. if file /usr/bin/notes.txt is present, using shell.
Thanks!
- 07-18-2007 #5
*cough*ls*cough*
Can't tell an OS by it's GUI
- 07-18-2007 #6Just Joined!
- Join Date
- Apr 2007
- Posts
- 6
I knew I was being stupid

Thanks a ton!
- 07-18-2007 #7
check this link too.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 07-18-2007 #8
Survival in Linux
This should be added to the top sticky in this forum.
Easy to use AND understand and even a Total Linux N00b (me) can pass this tutorial with flying colors.
(I Aced ALL quizzed!
)
Last edited by devils casper; 07-18-2007 at 06:22 PM.
- 07-21-2007 #9Just Joined!
- Join Date
- Jun 2007
- Posts
- 46
hi
you can also use locate command to know every file`s path with the given name
# locate <name to be searched>
# find path -name <file_to_search>
regards


Reply With Quote