Skip to content

Commit

Permalink
chore: Update journalctl commands in common-commands.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wmmihaa committed Aug 13, 2024
1 parent 46c2bf4 commit 109e2f2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions nav/_quickreference/common-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,18 @@ $ df | grep udev | awk '{print $2}'
### Favorite **journalctl** commands
* `journalctl` is also part of the `systemd` suite and helps you view logfile in real-time.

* `journalctl -u [service] -n [number of previous lines] -f` . E.g.
* `journalctl -u [service] -n [number of previous lines] -f` .

E.g.

```
journalctl -u microservicebus-node -n 100 -f
```

* `journalctl --since [date]` -* Show logs from specified date
* `journalctl --until [date]` -* Show logs until specified date
* `journalctl --since [date]` show logs from specified date
* `journalctl --until [date]` show logs until specified date

E.g.

```
journalctl --since "2020-11-23" --until "2022-11-09 13:00"
Expand Down

0 comments on commit 109e2f2

Please sign in to comment.