LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-29-2003, 06:17 PM   #1
nidputerguy
Member
 
Registered: Oct 2003
Posts: 47

Rep: Reputation: 15
What does ./ specify?


I know that / is root and that .. specifies up a level but I don't know what ./ means. Thanks for the help!
 
Old 12-29-2003, 06:23 PM   #2
Dewar
Member
 
Registered: Sep 2003
Location: Washington State
Distribution: SuSE 8.0, SuSE 9.0, Slack 9.1
Posts: 90

Rep: Reputation: 15
./ specifies the current working directory.

So if you are working in /etc and you want to run a script in /etc called forward you can type "./forward" or "/etc/forward" to run it (but not just "forward" because linux doesn't have the working directory in your path.)
 
Old 12-29-2003, 06:25 PM   #3
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
./ means current directory. I use it when I've changed to a directory and want to run a program that's not in the path. ./command means run the command in the current directory and I don;t believe it even bothers to check the path.
 
Old 12-31-2003, 10:45 AM   #4
nidputerguy
Member
 
Registered: Oct 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks guys! Appreciate the help!
 
  


Reply



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 On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:54 PM.

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
Open Source Consulting | Domain Registration