Useful commands to know
Windows
RegEdit
How to show or remove the DLSS indicator
Bat
Firewall blocking script for .exe files in a folder
This is a windows script to add a firewall rule that blocks every executable in the current file. It will add one rule per executable and it's not dynamically updated.
make a txt file and name it to something.bat then add the following inside
@ setlocal enableextensions
@ cd /d "%~dp0"
for /R f" dir=out program="f" dir=in program="%%f" action=block
)
pause
CMD
- Symlinks (symbolic links)
- Bypass Windows Account requirement when installing windows 11
- Commands you can use to manipulate disks and their partitions
Powershell
Bulk Copying
robocopy /E /xj /r:10 /w:10 "DriveLetter:\Source" "DriveLetter:\Destination"
/r:[n] // how many retries for each read error
/w:[n] // how many retries for each write error
After robocopy runs, the folder attributes will hide it so you'll need to run the following
Syntax: attrib -h -s -a [ Drive : ][ Path ]
.
For example: attrib -h -s -a "C:\My hidden folder"
.
Linux
Directory
Change Directory aka cd
- cd .. (goes back)
- cd ~ (goes to home)
- cd ~./..../ (goes to a folder using absolute path)
- cd folderName ( goes to the folder named in the current directory)
List Files
- ls (list files in the current directory)
- ls [-a] (list all files including hidden files in the current directory)
- ls [relativeOrAbsolutePath] (list files in the path provided)
Manuals aka man
man for manual pages
command -h or --help for details about command
apropos bla for any command including bla in its name or description
How to keep debian laptop from sleeping when closing the lid
Browser
Any
- On any browser add a new search engine, and for the url type in
https://www.google.com//search?udm=14&q=%s&num=100
and make it your default search engine to get google's web results without their suggestions. It should also make the page show more results (num=100)