Dealing with inode.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 25 Dec 2022 20:34:08 +0200
changeset 2546 d1bb9d4ecb30
parent 2545 01700c00999d
child 2547 56f7aa93f8ab
Dealing with inode.
ssh.rst
--- a/ssh.rst	Sun Dec 25 20:33:39 2022 +0200
+++ b/ssh.rst	Sun Dec 25 20:34:08 2022 +0200
@@ -217,3 +217,20 @@
    add ``PubkeyAcceptedKeyTypes *`` or ``PubkeyAcceptedKeyTypes=+ssh-dss`` to
    ``/etc/ssh/sshd_config`` but DSS keys are depricated at all.
 
+Dealing with inode
+==================
+
+Linux / UNIX file system API has a notion of inode: the address of file as a unique number.
+
+To list inodes for a file::
+
+  stat $FILE
+
+To list inodes for a group of files::
+
+  ls -i -l
+
+You can reference inode in ``find`` query::
+
+  find . -inum $INODE -delete
+