Current working directory command
- how to find current path in linux
- how to find current directory in linux
- how to get current path in linux terminal
- how to see current path in linux
Current directory linux!
How to Display Current Working Directory in Linux | pwd Command
The ‘pwd,’ which stands for “print working directory.” In this article, we will delve into the ‘pwd’ command, exploring its functionality, usage, and various examples. It prints the path of the working directory, starting from the root.
pwd is shell built-in command(pwd) or an actual binary(/bin/pwd).
Display current path in terminal
$PWD is an environment variable that stores the path of the current directory. This command has two flags.
Syntax of `pwd` command in Linux
The basic syntax of the ‘pwd’ command is
pwd [OPTIONS]This command doesn’t have any arguments or options, but it can accept flags for specific behavior.
Flags For Specific behavior in `pwd` command in Linux.
- The “-L” flag resolves symbolic links and prints the path of the target directory.
- The default behavior of the shell built-in “pwd” is equivalent to using “pwd -L”.
- Mention the “-P” flag, which displays the actual path without resolving symbolic links.
- The default b
- how to know current path in linux
- how to find current location in linux