Skip to content

Instantly share code, notes, and snippets.

@rs9899
Last active July 24, 2020 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rs9899/cecf5b1b5924014e9a2087a9bfd23e75 to your computer and use it in GitHub Desktop.
Save rs9899/cecf5b1b5924014e9a2087a9bfd23e75 to your computer and use it in GitHub Desktop.
Import Windows command
### 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