How can I echo the current directory on linux command line?
Asked by
Juan Montoya
Hi,
In Windows, the command was 'cd' without arguments.
In linux, cd prints nothing, and 'dirname' only prints '.'.
I wonder what is the comand that prints the absolute path of '.'.
Right now I'm using a tiny python script that goes like this:
import os
print( os.path.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu bash Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Greg Beam
- Solved:
- Last query:
- Last reply:
To post a message you must log in.