User Tools

Site Tools


wsl_linux_ubuntu_cheatsheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wsl_linux_ubuntu_cheatsheet [2025/09/07 05:27] stephenwsl_linux_ubuntu_cheatsheet [2026/02/15 08:09] (current) – [WSL / Linux Commands] stephen
Line 1: Line 1:
 ====== WSL / Linux / Ubuntu Cheatsheet ====== ====== WSL / Linux / Ubuntu Cheatsheet ======
  
-===== Commands =====+===== Windows Commands =====
  
-Windows: ''wsl --install'' | Install WSL. | +| ''wsl --install'' | Install WSL. | 
-Windows: ''wsl --list'' | List installed Linux flavours. | +| ''wsl --list'' | List installed Linux flavours. | 
-Windows: ''wsl --install -d ubuntu'' | Install Ubuntu. | +| ''wsl --install -d ubuntu'' | Install Ubuntu. | 
-Windows: ''wsl -s ubuntu'' | Make Ubuntu the default. | +| ''wsl -s ubuntu'' | Make Ubuntu the default. | 
-WSL''sudo apt-get update && sudo apt-get install -y dotnet-sdk-7.0'' | Install Dotnet on WSL. | + 
-WSL: ''ll'' or ''ls -alF'' | List files properly. |+===== WSL / Linux Commands ===== 
 + 
 +''sudo apt-get update && sudo apt-get install -y dotnet-sdk-7.0'' | Install Dotnet on WSL. | 
 +| ''ll'' or ''ls -alF'' | List files properly. | 
 +| ''sudo apt update && sudo apt upgrade'' | Update the system. | 
 +| ''sudo -i'' | Make me root for the rest of the session. | 
 +|  File System  || 
 +| ''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. | 
 +|  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  || 
 +| ''mokutil --sb-state'' | SecureBoot status. |
  
 ===== Accessing drives ===== ===== Accessing drives =====
wsl_linux_ubuntu_cheatsheet.1757222865.txt.gz · Last modified: 2025/09/07 05:27 by stephen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki