From 69c12013b3360e490a152b8d39f2999eed983c39 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sat, 22 Apr 2017 19:44:03 +0100 Subject: [PATCH] lsof: shorten main desc, expand PID acronym (#1346) --- pages/common/lsof.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/lsof.md b/pages/common/lsof.md index a3493e7f4..e279d2b20 100644 --- a/pages/common/lsof.md +++ b/pages/common/lsof.md @@ -1,7 +1,7 @@ # lsof > Lists open files and the corresponding processes. -> Note: In most cases, you need root privilege (or use sudo) because you want to list files opened by others. +> Note: Root privileges (or sudo) is required to list files opened by others. - Find the processes that have a given file open: @@ -11,7 +11,7 @@ `lsof -i :{{port}}` -- Only output the process PID: +- Only output the process ID (PID): `lsof -t {{/path/to/file}}` @@ -23,6 +23,6 @@ `lsof -c {{process_or_command_name}}` -- List files opened by the given PID: +- List files opened by a specific process, given its PID: `lsof -p {{PID}}`