Getting current Directory name
Hey,
Im doing a project at Uni right now that involves linux system calls, which, being mostly a windows person, I am having a bit of trouble with.
What I want to do is find out what the current working directory is so that I can display it on the screen. Is this possible? how would one do it? Where should I look for guidence?
Ive looked at some of the man pages, but couldn't find any that helped me out.
cheers in advance for anything useful
Assuming you are using C, try getcwd(3).
If you are talking about the shell, try pwd (works on bash, might apply to other shells as well).
If you are talking about the shell, try pwd (works on bash, might apply to other shells as well).
Jooleem. Get addicted.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement