aboutsummaryrefslogtreecommitdiff
path: root/content/blog/commands
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--content/blog/commands/date.md2
-rw-r--r--content/blog/commands/find-hardlinks.md3
-rw-r--r--content/blog/commands/find-inodes-used.md3
-rw-r--r--content/blog/commands/qemu-bis.md2
4 files changed, 8 insertions, 2 deletions
diff --git a/content/blog/commands/date.md b/content/blog/commands/date.md
index 91ea399..1472940 100644
--- a/content/blog/commands/date.md
+++ b/content/blog/commands/date.md
@@ -1,5 +1,5 @@
---
-title: "Convert unix timestamp to readable date"
+title: "Convert a unix timestamp to a readable date"
date: 2011-01-06
description: the -d flag of the date command combined with @timestamp
tags:
diff --git a/content/blog/commands/find-hardlinks.md b/content/blog/commands/find-hardlinks.md
index 03a873b..d418cc3 100644
--- a/content/blog/commands/find-hardlinks.md
+++ b/content/blog/commands/find-hardlinks.md
@@ -3,10 +3,13 @@ title: "Find hardlinks to a same file"
date: 2018-03-02
description: How to list hardlinks that link to the same file
tags:
+ - linux
- toolbox
- unix
---
+## The command
+
{{< highlight sh >}}
find . -samefile /path/to/file
{{< /highlight >}}
diff --git a/content/blog/commands/find-inodes-used.md b/content/blog/commands/find-inodes-used.md
index 60be706..4936c70 100644
--- a/content/blog/commands/find-inodes-used.md
+++ b/content/blog/commands/find-inodes-used.md
@@ -3,10 +3,13 @@ title: "Find where inodes are used"
date: 2018-04-25
description: How to locate what is taking all the inodes in the subdirectory of a given device
tags:
+ - linux
- toolbox
- unix
---
+## The command
+
{{< highlight sh >}}
find . -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n
{{< /highlight >}}
diff --git a/content/blog/commands/qemu-bis.md b/content/blog/commands/qemu-bis.md
index d0af3c4..3526316 100644
--- a/content/blog/commands/qemu-bis.md
+++ b/content/blog/commands/qemu-bis.md
@@ -3,7 +3,7 @@ title: "Simple qemu vm"
date: 2021-06-16
description: How to start a simple qemu vm, no gui!
tags:
- - Linux
+ - linux
- virtualization
---