Переглянути джерело

Update README.md

Update README with Clearer Examples

Improves readability and provides more immediate comprehension for users checking filesystem mount details. (Uses `awk` to provide more descriptive output).

1. Modified the `df -hT | grep log2ram` command to include labels for each output field, making it easier to understand the filesystem statistics. 

2. Updated the `mount | grep log2ram` command to better display information about the `log2ram` mount.
pull/226/head
Adam Matthews 5 місяці тому
committed by GitHub
джерело
коміт
b3e8da8480
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: B5690EEEBB952194
1 змінених файлів з 21 додано та 5 видалено
  1. +21
    -5
      README.md

+ 21
- 5
README.md Переглянути файл

@@ -59,14 +59,30 @@ The log is also written to `/var/log/log2ram.log`.
You can also inspect the mount folder in RAM with:

```bash
# df -hT | grep log2ram
log2ram tmpfs 128M 89M 40M 70% /var/log
df -hT | grep log2ram | awk '{print " Name: " $1 "\nMount: " $7 "\n Type: " $2 "\nUsage: " $6 "\n Size: " $3 "\n Used: " $4 "\n Free: " $5}'
```
or also:
Returns:
```bash
Name: log2ram
Mount: /var/log
Type: tmpfs
Usage: 72%
Size: 128M
Used: 93M
Free: 36M
```

Or also:

```bash
# mount | grep log2ram
log2ram on /var/log type tmpfs (rw,nosuid,nodev,noexec,relatime,size=40960k,mode=755)
mount | grep log2ram | awk -F'[ ()]+' '{print " Name: " $1 "\n Mount: " $3 "\n Type: " $5 "\nOptions: " $6}'
```
Returns:
```bash
Name: log2ram
Mount: /var/log
Type: tmpfs
Options: rw,nosuid,nodev,noexec,noatime,size=131072k,mode=755,uid=100000,gid=100000,inode64
```

If you do not get any line as response of these commands, something is not working. Refer to [this section](#is-it-working).


Завантаження…
Відмінити
Зберегти