Dualbooting windows and linux

Dual booting arch and win11 Prerequisites Before installing arch we need to do the following things Disk partition We’ll need to make a disk partition in windows 11 before proceeding to make sure both the OS run isolated, this can be done by the following steps Right-click on the Start menu and select Disk Management. Alternatively, you can press Win + X and choose Disk Management from the list. In the Disk Management window, locate the drive you want to partition (usually the C: drive). In my case I’ve installed in D drive on a separate disk Right-click on the drive and select Shrink Volume In the dialog that appears, enter the amount of space to shrink (in MB). This will be the size of the new partition for Arch Linux. Make sure to leave enough space for Windows. In my case I’ve allocated 100 gigs for Arch. Click Shrink. The unallocated space will appear in the Disk Management window. Bios settings Disable Fast Startup Disable secure boot Arch ISO setup Download arch ISO from the official site. Install a tool such as Rufus or Etcher and burn the ISO onto a USB drive. Booting onto Arch Insert the drive into the computer Restart the computer into the BIOS/UEFI/Bootloader menu Select the boot option as the USB drive Installing Arch (under progress) ...

July 7, 2024 · 6 min · 1257 words · Aum Pauskar

Windows scripts with powershell and cmd

Windows prompts PowerShell PowerShell is a command-line shell and scripting language built on the .NET Framework. It is the successor to the Command Prompt. Commands are called cmdlets and are written in the form Verb-Noun. For example, Get-ChildItem lists the contents of a directory. There are a few aliases for common commands, such as ls for Get-ChildItem and rm for Remove-Item. Write-Output: Prints a line in the shell New-Item: Creates a new file within the same directory Get-Content: Reads the contents of a file Set-Content: Writes the contents of a file Remove-Item: Deletes a file Get-ChildItem: Lists the contents of a directory Command Alias Description Write-Output echo Prints a line in the shell New-Item touch Creates a new file within the same directory Get-Content type Reads the contents of a file Set-Content echo Writes the contents of a file Remove-Item del Deletes a file Get-ChildItem dir Lists the contents of a directory CMD echo <line>: Prints a line in the shell type <file>: Reads the contents of a file file operations copy <source> <target>: Copies a file move <source> <target>: Moves a file del <file>: Deletes a file dir: Lists the contents of a directory cd commands: required to change the current directory cd <dir>: Changes the current directory cd ..: Changes the current directory to the parent directory cd: Changes the current directory to the home directory mkdir <dir>: Creates a new directory system boot options shutdown /s: Shuts down the system shutdown /r: Restarts the system shutdown /l: Logs off the current user shutdown /h: Hibernates the system shutdown /a: Aborts the system shutdown computer processes tasklist: Lists all running processes taskkill /pid <pid>: Kills a process by its PID taskkill /im <name>: Kills a process by its name network operations ipconfig: Lists the network configuration ping <host>: Pings a host software management Note: These commands may require administrator privileges winget install <package>: Installs a package winget uninstall <package>: Uninstalls a package winget search <package>: Searches for a package winget show <package>: Shows information about a package winget source: Lists the package sources winget source add <source>: Adds a package source winget source remove <source>: Removes a package source system information systeminfo: Lists the system information systeminfo | findstr /B /C:"OS Name" /C:"OS Version": Lists the OS information systeminfo | findstr /B /C:"System Boot Time": Lists the system boot time systeminfo | findstr /B /C:"System Manufacturer" /C:"System Model": Lists the system manufacturer and model systeminfo | findstr /B /C:"Total Physical Memory": Lists the total physical memory systeminfo | findstr /B /C:"Available Physical Memory": Lists the available physical memory systeminfo | findstr /B /C:"Virtual Memory: Max Size": Lists the maximum virtual memory computer troubleshooting sfc /scannow: Scans the system for corrupted files chkdsk: Scans the system for corrupted disks dism /online /cleanup-image /restorehealth: Scans the system for corrupted images dism /online /cleanup-image /startcomponentcleanup: Cleans up the system dism /online /cleanup-image /startcomponentcleanup /resetbase: Cleans up the system and resets the base dism /online /cleanup-image /restorehealth /source:<source>: Scans the system for corrupted images using a source dism /online /cleanup-image /startcomponentcleanup /resetbase /source:<source>: Cleans up the system and resets the base using a source Batch files A batch file is a text file containing a series of commands to be executed by the command interpreter. It is similar to a shell script. Batch files have the .bat extension. ...

December 7, 2023 · 4 min · 702 words · Aum Pauskar