Last active
July 24, 2020 15:17
-
-
Save rs9899/cecf5b1b5924014e9a2087a9bfd23e75 to your computer and use it in GitHub Desktop.
Import Windows command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Mostly for personal usage but can help others too | |
# nvidia-smi | |
& 'C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe' | |
# watch nvidia-smi | |
while (1) {clear;& 'C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe'; sleep 5} | |
# some good substitutes for bash command | |
mv --> move | |
rename to rename files and folders | |
cp --> copy | |
rm --> del | |
rmdir /S # to delete directory and files inside it too | |
clear --> cls | |
git works awesome after some installations | |
mkdir --works fine | |
## And the absolute most used ones. | |
cd -- works great | |
ls --> dir | |
(ls -al) --> (dir /a) | |
vi --> notepad # not much but honestly works | |
# Switching from C drive to D drive | |
d: | |
# other lifesaver | |
cat --> type | |
# > and >> works like bash | |
# type a.txt >> b.txt will append in the end of file 'b.txt' just like bash | |
# Activate conda environment . The path is relative to personal computer | |
>Conda\Scripts\activate base | |
# Generating exe from py files | |
pyinstaller --onefile test.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment