https://github.com/cirosantilli/windows-cheat
Windows information and cheatsheets for Linux users.
https://github.com/cirosantilli/windows-cheat
Last synced: 3 months ago
JSON representation
Windows information and cheatsheets for Linux users.
- Host: GitHub
- URL: https://github.com/cirosantilli/windows-cheat
- Owner: cirosantilli
- Created: 2013-05-30T14:12:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-06-07T08:53:20.000Z (almost 10 years ago)
- Last Synced: 2025-01-02T05:13:33.311Z (4 months ago)
- Language: Batchfile
- Homepage:
- Size: 125 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Windows Cheat
Windows information and cheatsheets for Linux users.
If a program or system also works on Linux, only differences from Linux will be noted.
Installation procedures are not here.## Package manager
No official one, but non official ones cropping up.
### chocolatey
Install chocolatey:
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
Website:
Package list:
Usage:
cinst git
## PATH
To modify permanently:
right click computer > advanced settings > advanced > environment variables
Most programs don't get put into path by default on install. Users must of course click on desktop shortcuts or init menu shortcuts.
Suggestion: create a `c:\bin` dir and symlink every executable into it
Also consider setting only the path for bash if you are only going to use a bash port for windows
## Windows explorer
### Open shell here
Do a Shift + right click on a folder to see this option
## Book
### Bullzip
PDF printer.
### WinDjView
DjVu reader.
### Ghostscript + sgview
View PS files.
Must install first Ghostscript, then sgview.
## Shell
### cmd.exe
Terminal emulator + bash-like language
Much worse than bash:
set a=b
echo %a%Don't ever use it, just use bash from MinGW for example.
### PowerShell
Alternative to cmd.exe, comes with windows 7.
TODO why is it better than cmd.exe
## MinGW vs Cygwin
Both gives you POSIX Linux utilities such as `sh`, `ls`, `mkdir`, `make`
TODO which is better?
## GNU ports
### MinGW
Minimal gnu for windows.
Port of basic gnu tools to windows including:
- all POSIX utilities.
- GCC
- bash. Just type bash inside a `cmd` terminal and your back in bash.
It inherits the system path into its `$PATH` variable
`$HOME` variable is not set by default. TODO how to set it?
Forward slashes on paths are automatically converted to backslashes, so bash paths are portable! Try:
ls /c
Driver letter is given plain without the `:`
Initialization files: TODO. You can modify the bash `PATH` variable only with those, without changing the system path. TODO check
files with extensions in `PATHEXT` can be run without writing extension (by default for example, `a.exe` can be run as `./a`)
- Vim. You must run `vim` from inside bash!
- `ln -s` and `cp -s` create copies instead of symbolic links. TODO how to make symbolic links? `mklink` seems to be a `cmd.exe` built-in.
It does *not* include stuff like:
- man
Default installation does not put things on your windows PATH.
### cygwin
Includes MinGW, and much, much more, even beyond LSB utilities:
- POSIX compatibility API
- python
- Perl
- wget and cURLName origin: first developed by Cygnus Solutions, later acquired by Red hat. Open source.
Before installation you can configure what will be installed.
After configuration, the installer downloads dependencies one by one from the internet.
### GnuWin32
Native port of GNU command line utilities and libraries.
Vs MinGW:
## Linux partitions
Read and write to/from Linux partitions
For the options, see:
## Git
Install:
To avoid typing the user/pass every time, setup ssh public key with: `ssh-keygen.exe`. This will create the private public pair in "$HOME"/.ssh/, then copy the public key and add it to your web interface
## Games
One of the few reasons for which you should use Windows: games, since no game company will ever bother porting for the 5% popularity systems!
### Pcsx2
Playstation 2 emulator
Seems to work well and have all basic features
Install: