Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| linux_cheat_sheet [2026/08/13 09:06] – [Bash Commands] stephen | linux_cheat_sheet [2026/08/13 22:35] (current) – stephen |
|---|
| |
| {{topic>linux -archived}} | {{topic>linux -archived}} |
| | |
| | ===== Generate Notes ===== |
| | |
| | * Use ''apt-get'' in scripts, ''apt'' manually in interactive terminals. |
| |
| ===== Bash Commands ===== | ===== Bash Commands ===== |
| | ''lsblk -f'' | List block devices — all types of storage devices. | | | ''lsblk -f'' | List block devices — all types of storage devices. | |
| | ''sudo fsck -y /dev/sda2'' | File system check and repair. | | | ''sudo fsck -y /dev/sda2'' | File system check and repair. | |
| | ''sudo smartctl -a /dev/sda'' | Check disk SMART status. | | | ''sudo apt install smartmontools'' \\ ''sudo smartctl -a /dev/sda'' | Check disk SMART status. | |
| | ''rm -r [directory_name]'' | Delete a directory and everything in it. | | | ''rm -r [directory_name]'' | Delete a directory and everything in it. | |
| | ''sudo chmod +x /usr/local/bin/sign-kernel'' | Make a file executable. | | | ''sudo chmod +x /usr/local/bin/sign-kernel'' | Make a file executable. | |