From ebc44b53cfba43fd90ebe299ecc09624703795a1 Mon Sep 17 00:00:00 2001 From: authorelliottsmith-byte Date: Wed, 31 Dec 2025 11:41:47 -0600 Subject: [PATCH 1/4] Create pwd.md --- content/general/concepts/linux/pwd/pwd.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 content/general/concepts/linux/pwd/pwd.md diff --git a/content/general/concepts/linux/pwd/pwd.md b/content/general/concepts/linux/pwd/pwd.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/content/general/concepts/linux/pwd/pwd.md @@ -0,0 +1 @@ + From 5a5686e52f5c5cb1cc226e12c23338f79dc19f17 Mon Sep 17 00:00:00 2001 From: authorelliottsmith-byte Date: Wed, 31 Dec 2025 11:44:39 -0600 Subject: [PATCH 2/4] Update pwd.md --- content/general/concepts/linux/pwd/pwd.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/general/concepts/linux/pwd/pwd.md b/content/general/concepts/linux/pwd/pwd.md index 8b137891791..e9bb141162d 100644 --- a/content/general/concepts/linux/pwd/pwd.md +++ b/content/general/concepts/linux/pwd/pwd.md @@ -1 +1,15 @@ +--- +Title: 'pwd' +Description: 'Prints the current working directory.' +Subjects: + - 'Computer Science' +Tags: + - 'Linux' + - 'Command Line' +CatalogContent: + - 'learn-the-command-line' +--- +## pwd + +The `pwd` command displays the current working directory in Linux. From fca61b8c1e6dc306d33326397748ea6e79e29991 Mon Sep 17 00:00:00 2001 From: authorelliottsmith-byte Date: Wed, 31 Dec 2025 12:16:39 -0600 Subject: [PATCH 3/4] Update pwd.md --- content/general/concepts/linux/pwd/pwd.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/content/general/concepts/linux/pwd/pwd.md b/content/general/concepts/linux/pwd/pwd.md index e9bb141162d..36a9e941111 100644 --- a/content/general/concepts/linux/pwd/pwd.md +++ b/content/general/concepts/linux/pwd/pwd.md @@ -5,11 +5,24 @@ Subjects: - 'Computer Science' Tags: - 'Linux' - - 'Command Line' + - 'Unix' + - 'Command Line Prompts' CatalogContent: - 'learn-the-command-line' + - 'paths/computer-science' + - 'paths/code-foundations' --- ## pwd -The `pwd` command displays the current working directory in Linux. +The 'pwd' command in Linux displays the user's current working directory, showing the absolute path of the user's current location in the file system. + +## Other information +- It allows the user to quickly identify their location in the file system +- The evironment variable $PWD stores the path of the current working directory. +- There are two flag commands that can accompany the 'pwd' command: + - The '-L' flag (Logical), which displays the logical path, including the shortcuts (symbolic links). + - This maintains the context of the navegation path + - The '-P' flag (Physical), which skips all shortcuts and displays the actual, physical location of the directory on the hard drive. + - This resolves to the actual storage location + From 6572ec720feee1e70ebc1d337364f3c5a262d35f Mon Sep 17 00:00:00 2001 From: authorelliottsmith-byte Date: Wed, 31 Dec 2025 12:22:13 -0600 Subject: [PATCH 4/4] Update pwd.md --- content/general/concepts/linux/pwd/pwd.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/general/concepts/linux/pwd/pwd.md b/content/general/concepts/linux/pwd/pwd.md index 36a9e941111..ae5eac6bede 100644 --- a/content/general/concepts/linux/pwd/pwd.md +++ b/content/general/concepts/linux/pwd/pwd.md @@ -18,11 +18,11 @@ CatalogContent: The 'pwd' command in Linux displays the user's current working directory, showing the absolute path of the user's current location in the file system. ## Other information -- It allows the user to quickly identify their location in the file system +- It allows the user to quickly identify their location in the file system. - The evironment variable $PWD stores the path of the current working directory. - There are two flag commands that can accompany the 'pwd' command: - The '-L' flag (Logical), which displays the logical path, including the shortcuts (symbolic links). - - This maintains the context of the navegation path + - This maintains the context of the navegation path. - The '-P' flag (Physical), which skips all shortcuts and displays the actual, physical location of the directory on the hard drive. - - This resolves to the actual storage location + - This resolves to the actual storage location.