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.
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). $PWD is an environment variable that stores the path of the current directory. This command has two flags.
Table of Content
- Syntax of `pwd` command in Linux
- Flags For Specific behavior in `pwd` command in Linux.
- How to Display the Current Working Directory in Linux