How do I get the current directory in Linux? To determine the exact location of your current directory within the file system, go to a shell prompt and type the command pwd. This tells you that you are in the user sam’s directory, which is in the /home directory. The command pwd stands for print working directory.
How do I display current directory? You can use the dot ( . ), the ~+ tilde expansion, the pwd command or the $PWD variable to represent the current working directory (CWD).
How do I find the current directory in Unix? pwd prints the user’s current working directory. ls [path] prints a listing of a specific file or directory; ls on its own lists the current working directory. cd [path] changes the current working directory.
What is directory command in Linux? dir command in Linux is used to list the contents of a directory.