Skip to content

Commit 170eb62

Browse files
committed
Added more commands for journalctl
1 parent 88d68b5 commit 170eb62

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

commands/README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,26 @@ pip install --user glances
1111

1212
## Logging
1313

14-
### Gets the log output of a service.
14+
### Gets the log output of a service ###
1515

1616
`journalctl -u price-server.service -f`
1717

1818
Note that if the service is running at a "system" level, there may be a need to use `sudo` with the command.
1919

20-
### Lists the logs since a specific time.
20+
### List the logs since a specific time ###
2121

2222
`journalctl -u feeder.service --since "2021-12-09 20:00:00"`
2323

2424
`journalctl -S "4 hour ago"`
2525

26+
### List the logs until a specific time ###
27+
28+
`journalctl --until "2022-02-24 01:23:00`
29+
30+
### List the logs only from the current boot ###
31+
32+
`journalctl -u service-name.service -b`
33+
2634
## Service Management
2735

2836
### Auto-start

0 commit comments

Comments
 (0)