Linuxdmesg, journalctl -b
WindowsGet-WinEvent -LogName System
Shows kernel boot logs
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemd-analyze
WindowsGet-CimInstance Win32_OperatingSystem
System startup duration
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxdmidecode, efibootmgr
WindowsGet-ComputerInfo, bcdedit
Firmware configuration
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxefibootmgr -v
Windowsbcdedit /enum
Available boot options
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxefibootmgr -o XXXX
Windowsbcdedit /default {id}
Choose startup OS (`-o` = boot order)
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl list-units --type=service
WindowsGet-Service
Shows service status
IntermediateLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl start SERVICE
WindowsStart-Service NAME
Activate service
IntermediateLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl stop SERVICE
WindowsStop-Service NAME
Deactivate service
IntermediateLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl enable SERVICE
WindowsSet-Service -StartupType Automatic
Auto-start configuration
IntermediateLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl disable SERVICE
WindowsSet-Service -StartupType Disabled
Prevent auto-start
IntermediateLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl status SERVICE
WindowsGet-Service NAME \
Format-List`
IntermediateLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl restart SERVICE
WindowsRestart-Service NAME
Stop and start
IntermediateLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl list-dependencies SERVICE
WindowsGet-Service -DependentServices
Service relationships
IntermediateLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxshutdown -h now, poweroff
WindowsStop-Computer -Force
Immediate power off
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxshutdown -h +10
Windowsshutdown /s /t 600
Scheduled shutdown (in seconds)
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxreboot, shutdown -r now
WindowsRestart-Computer -Force
System restart
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxshutdown -c
Windowsshutdown /a
Abort pending shutdown
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl hibernate
Windowsshutdown /h
Save to disk, power off
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl suspend
Windowsrundll32.exe powrprof.dll,SetSuspendState 0,1,0
Low power mode
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl get-default
System run mode
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl isolate multi-user.target
CLI mode
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl isolate graphical.target
GUI mode
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl set-default graphical.target
Persistent boot mode
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Linuxsystemctl rescue
Windowsbcdedit /set {default} safeboot minimal
Minimal system
AdvancedLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Bare minimal
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Linuxcat /etc/default/grub
Boot parameters
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Linuxupdate-grub or grub-mkconfig -o /boot/grub/grub.cfg
Regenerate boot menu
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Linuxgrub-install /dev/sda
Write bootloader
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Linuxgrub-set-default 0
Windowsbcdedit /default {id}
Choose default OS
AdvancedLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
LinuxEdit GRUB_CMDLINE_LINUX in /etc/default/grub
Windowsbcdedit /set {default} option value
Boot-time options
AdvancedLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Total boot duration
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Linuxsystemd-analyze blame
Slowest services at boot
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Linuxsystemd-analyze critical-chain
Critical path visualization
AdvancedLinuxHas lessonHas labHas task guideHas troubleshooting
Windowsbootrec /fixmbr, bootrec /fixboot, bootrec /rebuildbcd
Fix BCD store
AdvancedWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxlogin
WindowsGUI or runas
Establish user session
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxexit, logout
Windowslogoff
End session
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxwhoami
Windowswhoami, $env:USERNAME
Who am I logged in as?
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxsu - username
Windowsrunas /user:DOMAIN\user
Change active user
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxwho, w
Windowsquser, query user
Active sessions
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting
Linuxlast
WindowsGet-WinEvent -FilterHashtable @{LogName='Security';Id=4624}
Past logins
BeginnerLinuxWindowsHas lessonHas labHas task guideHas troubleshooting