Skip to content

Instantly share code, notes, and snippets.

@RomarQ
Last active May 20, 2022 21:25
Show Gist options
  • Save RomarQ/1ab165091b7811d79d54837378d7089e to your computer and use it in GitHub Desktop.
Save RomarQ/1ab165091b7811d79d54837378d7089e to your computer and use it in GitHub Desktop.
Linux

Linux Cheat Sheet

List all PCI devices

lspci

List available kernels

ls -l /lib/modules

Update the initramfs of all available kernels

update-initramfs -k all -u

Set permissions of directories to 755 and files to 644

find . -type d -exec chmod 0755 {} \; 
find . -type f -exec chmod 0644 {} \; 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment