]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd.1.doc: use delimited literal block notation in the EXAMPLE section
authorMasatake YAMATO <yamato@redhat.com>
Thu, 18 Nov 2021 14:43:11 +0000 (23:43 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 18 Nov 2021 14:52:34 +0000 (23:52 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.1.adoc

index d6fc6bc95c7f1f97e8644ad9e57a3c32ff1e55e7..8906fe16e2b97e01462167df57d5895bc49cf7b5 100644 (file)
@@ -280,72 +280,89 @@ know is *-Q* (or *--filter*) option.  Combined with *-o* (or
 *--output*) option, you can customize the output as you want.
 
 List files associated with PID 1 and PID 2 processes::
-
-  # lsfd -Q '(PID == 1) or (PID == 2)'
+....
+# lsfd -Q '(PID == 1) or (PID == 2)'
+....
 
 Do the same in an alternative way::
-
-  # lsfd -Q '(PID == 1) || (PID == 2)'
+....
+# lsfd -Q '(PID == 1) || (PID == 2)'
+....
 
 Do the same in a more efficient way::
-
-  # lsfd --pid 1,2
+....
+# lsfd --pid 1,2
+....
 
 Whitescapes can be used instead of a comma::
-
-  # lsfd --pid '1 2'
+....
+# lsfd --pid '1 2'
+....
 
 Utilize *pidof*(1) for list the files associated with "firefox"::
-
-  # lsfd --pid "$(pidof firefox)"
+....
+# lsfd --pid "$(pidof firefox)"
+....
 
 List the 1st file descriptor opened by PID 1 process::
-
-  # lsfd -Q '(PID == 1) and (FD == 1)'
+....
+# lsfd -Q '(PID == 1) and (FD == 1)'
+....
 
 Do the same in an alternative way::
-
-  # lsfd -Q '(PID == 1) && (FD == 1)'
+....
+# lsfd -Q '(PID == 1) && (FD == 1)'
+....
 
 List all running executables::
-
-  # lsfd -Q 'ASSOC == "exe"'
+....
+# lsfd -Q 'ASSOC == "exe"'
+....
 
 Do the same in an alternative way::
-
-  # lsfd -Q 'ASSOC eq "exe"'
+....
+# lsfd -Q 'ASSOC eq "exe"'
+....
 
 Do the same but print only file names::
-
-  # lsfd -o NAME -Q 'ASSOC eq "exe"' | sort -u
+....
+# lsfd -o NAME -Q 'ASSOC eq "exe"' | sort -u
+....
 
 List deleted files associated to processes::
-
-  # lsfd -Q 'DELETED'
+....
+# lsfd -Q 'DELETED'
+....
 
 List non-regular files::
-
-  # lsfd -Q 'TYPE != "REG"'
+....
+# lsfd -Q 'TYPE != "REG"'
+....
 
 List block devices::
-
-  # lsfd -Q 'DEVTYPE == "blk"'
+....
+# lsfd -Q 'DEVTYPE == "blk"'
+....
 
 Do the same with TYPE column::
-
-  # lsfd -Q 'TYPE == "BLK"'
+....
+# lsfd -Q 'TYPE == "BLK"'
+....
 
 List files including "dconf" directory in their names::
-
-  # lsfd -Q 'NAME =~ ".\*/dconf/.*"'
+....
+# lsfd -Q 'NAME =~ ".\*/dconf/.*"'
+....
 
 List files opened to QEMU virtual machine::
-
-  # lsfd -Q '(COMMAND =~ ".\*qemu.*") and (FD >= 0)'
+....
+# lsfd -Q '(COMMAND =~ ".\*qemu.*") and (FD >= 0)'
+....
 
 Hide files associated to kernel threads::
-
-  # lsfd -Q '!KTHREAD'
+....
+# lsfd -Q '!KTHREAD'
+....
 
 == HISTORY