From 7097110ca0dd42476c7e127048e4c2329f4ed3af Mon Sep 17 00:00:00 2001 From: Iran Neto Date: Mon, 1 Nov 2021 02:28:43 -0300 Subject: [PATCH] fc, pwd: add examples (#7284) --- pages/common/fc.md | 8 ++++++++ pages/common/pwd.md | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/pages/common/fc.md b/pages/common/fc.md index 4ef511d12..22eca744e 100644 --- a/pages/common/fc.md +++ b/pages/common/fc.md @@ -15,3 +15,11 @@ - List recent commands from history: `fc -l` + +- List recent commands in reverse order: + +`fc -r` + +- List commands in a given interval: + +`fc '{{416}}' '{{420}}'` diff --git a/pages/common/pwd.md b/pages/common/pwd.md index 9b63a5932..68694b896 100644 --- a/pages/common/pwd.md +++ b/pages/common/pwd.md @@ -9,4 +9,8 @@ - Print the current directory, and resolve all symlinks (i.e. show the "physical" path): -`pwd -P` +`pwd --physical` + +- Print the current logical directory: + +`pwd --logical`