wiki/cards/linux.org

44 lines
1.2 KiB
Org Mode
Raw Normal View History

2021-05-04 16:07:40 +00:00
:PROPERTIES:
:ID: b3049366-b5ce-4caa-881f-e76663df2e12
:END:
#+title: Anki: Linux
#+date: "2021-05-01 20:20:25 +08:00"
2021-05-04 16:07:40 +00:00
#+date_modified: "2021-05-04 20:51:29 +08:00"
#+language: en
#+property: anki_deck Linux
* Finding devices
:PROPERTIES:
:ANKI_NOTE_TYPE: Styled cards
:ANKI_NOTE_ID: 1619878728534
:END:
** Front
How to list devices information?
(I mean all sorts of devices.)
** Back
- ~lspci~ is the most acceptable answer since it comprehensive lists all of the devices.
- ~lsusb~ list USB-connected devices.
- ~lsblk~ list the block devices which usually includes storage drives and such.
* ~$PATH~ environment
:PROPERTIES:
:ANKI_NOTE_TYPE: Styled cards
:ANKI_NOTE_ID: 1619878774321
:END:
** Front
How does a shell find the binaries?
** Back
Most shell searches through the ~$PATH~ variable, a colon-delimited list of paths containing the binaries.
* Testing systemd timestamps
:PROPERTIES:
:ANKI_NOTE_TYPE: Styled cards
:ANKI_NOTE_ID: 1619878774617
:END:
** Front
How to test out systemd timestamps?
** Back
~systemd-analyze {calendar,timestamp,timespan}~
To know how the format (i.e., calendar, timestamp, and timespan) looks like, you can refer to ~man systemd.time.5~.