Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.94 KB

misc.md

File metadata and controls

45 lines (33 loc) · 1.94 KB

Miscellaneous

  • minute of hour | hour of day | day of month | month # | day of week = Crontab syntax.

  • If /sys/firmware/efi exists, system is UEFI.

Shutdown

  • shutdown -r now or reboot = Immediately reboot system.
  • shutdown 2 this machine is shutting down in 2 minutes! = Power off system in 2 minutes and send the provided message to all logged-in users.
  • shutdown -r 0:00 = Reboot at midnight tonight.

  • who or w = View users currently logged in.
  • write alice = Compose a message to the user alice (assuming she's logged in), use CTRL-D to send your message

PAM

  • authconfig --disablesssdauth --update = Remove pam sssd module.

/etc/pam.d/ syntax

TODO


  • man 1 crontab = View the crontab entry in manpage section 1.
  • man 5 crontab = View the crontab entry in manpage section 5.

  • man -k string search man pages for given string
Manpage section Category
1 Shell commands and executables
2 Sernel functions (system calls)
3 Library functions
4 Special files (usually devices in /dev) and drivers
5 File formats and conventions (e.g. /etc/passwd)
6 Games
7 Miscellaneous
8 System administration commands and daemons