Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| wsl_linux_ubuntu_cheatsheet [2025/12/31 03:56] – [WSL / Linux Commands] stephen | wsl_linux_ubuntu_cheatsheet [2026/02/15 08:09] (current) – [WSL / Linux Commands] stephen |
|---|
| | ''ll'' or ''ls -alF'' | List files properly. | | | ''ll'' or ''ls -alF'' | List files properly. | |
| | ''sudo apt update && sudo apt upgrade'' | Update the system. | | | ''sudo apt update && sudo apt upgrade'' | Update the system. | |
| | | ''sudo -i'' | Make me root for the rest of the session. | |
| | File System || | | File System || |
| | ''sudo chmod +x /usr/local/bin/sign-kernel'' | Make a file executable. | | | ''sudo chmod +x /usr/local/bin/sign-kernel'' | Make a file executable. | |
| | | ''sudo chmod a+rwx /DirectoryName'' | Give everyone access. | |
| | ''ln -s [target_file] [link_name]'' | Make a symbolic link. | | | ''ln -s [target_file] [link_name]'' | Make a symbolic link. | |
| | | Disk Mounting || |
| | | ''df -hP'' | List mount points. | |
| | | ''fuser -cu /dev/sda3'' | List processes using mount point. | |
| | | ''fuser -k /backup'' | Kill all process using mount point. | |
| | | ''umount /dev/sda3'' or ''umount /media/stephen'' | Unmount. | |
| | | ''mount /dev/vdb1 /new_backup'' | Mount. | |
| | | Edit ''/etc/fstab'' | Make mount point permanent. | |
| | Diagnostic Info || | | Diagnostic Info || |
| | ''mokutil --sb-state'' | SecureBoot status. | | | ''mokutil --sb-state'' | SecureBoot status. | |