Complete the code to list files in the current directory using PowerShell.
Get-ChildItem [1]In PowerShell, Get-ChildItem -Path . lists files and folders in the current directory.
Complete the code to print the current directory path in Bash.
echo [1]In Bash, $PWD holds the current directory path.
Fix the error in this CMD command to list files with details.
dir [1]The /a option in CMD shows files with attributes, giving detailed listing.
Fill both blanks to create a PowerShell command that lists only files larger than 1MB.
Get-ChildItem [1] | Where-Object { $_.Length [2] 1MB }
-File filters only files, and -gt means greater than, so files larger than 1MB are listed.
Fill all three blanks to create a Bash command that finds all '.txt' files and counts them.
find [1] -name [2] | wc [3]
find . -name "*.txt" finds all text files in current directory and subdirectories. wc -l counts the lines, which equals the number of files found.