refactor: moved back from specific folder as articles are not really os specific

This commit is contained in:
Michele Cereda
2023-09-14 09:43:37 +02:00
parent d4f6856274
commit b649ebdede
4 changed files with 0 additions and 0 deletions

View File

@@ -1,43 +0,0 @@
# `getfattr`
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Further readings](#further-readings)
1. [Sources](#sources)
## TL;DR
```sh
# Install the tool.
apt install 'attr'
dnf install 'attr'
# Get values for specific extended attributes.
getfattr -n 'name' 'path/to/file.1''path/to/file.N'
```
## Further readings
- [`setfattr`][setfattr]
## Sources
All the references in the [further readings] section, plus the following:
- [`man` page][man page]
- [Tag files in GNU/Linux]
<!--
References
-->
<!-- In-article sections -->
[further readings]: #further-readings
<!-- Knowledge base -->
[setfattr]: setfattr.md
[tag files in gnu/linux]: tag%20files.md
<!-- Others -->
[man page]: https://linux.die.net/man/1/getfattr

View File

@@ -1,38 +0,0 @@
# `lsblk`
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Sources](#sources)
## TL;DR
```sh
# Install the tool.
dnf install 'util-linux'
# Show information about block devices.
lsblk
lsblk -a
# Also print other specific columns.
# Mind the '+' character at the beginning.
lsblk -o '+MODEL,SERIAL'
# Show only physical disks
lsblk -d
# Filter by major device numbers.
lsblk -I '8,259'
```
## Sources
- [`man` page][man page]
<!--
References
-->
<!-- Others -->
[man page]: https://linux.die.net/man/8/lsblk

View File

@@ -1,46 +0,0 @@
# `setfattr`
## Table of contents <!-- omit in toc -->
1. [TL;DR](#tldr)
1. [Further readings](#further-readings)
1. [Sources](#sources)
## TL;DR
```sh
# Install the tool.
apt install 'attr'
dnf install 'attr'
# Add extended attributes.
setfattr -n 'name' -v 'value' 'path/to/file.1''path/to/file.N'
# Remove extended attributes.
setfattr -x 'name' 'path/to/file.1''path/to/file.N'
```
## Further readings
- [`getfattr`][getfattr]
## Sources
All the references in the [further readings] section, plus the following:
- [`man` page][man page]
- [Tag files in GNU/Linux]
<!--
References
-->
<!-- In-article sections -->
[further readings]: #further-readings
<!-- Knowledge base -->
[getfattr]: getfattr.md
[tag files in gnu/linux]: tag%20files.md
<!-- Others -->
[man page]: https://linux.die.net/man/1/setfattr

View File

@@ -1,22 +0,0 @@
# Tag files in GNU/Linux
The most native way is to use extended attributes.<br/>
This allows to store the information within the file in its "filesystem entry", and it stays with the file when one moves it on the drive.
Query them with [`getfattr`][getfattr].<br/>
Set, modify and remove them using [`setfattr`][setfattr].
## Sources
- [How to tag any file on the Unix system?]
<!--
References
-->
<!-- Knowledge base -->
[getfattr]: getfattr.md
[setfattr]: setfattr.md
<!-- Others -->
[how to tag any file on the unix system?]: https://unix.stackexchange.com/questions/683017/how-to-tag-any-file-on-the-unix-system