wsl --list --online
wsl --install --web-download --no-launch kali-Linux
wsl --set-default kali-Linux
wsl --set-version kali-linux 2
wsl --set-default-version 2
wsl --help (TO get all The commands)
wsl --terminate kali-linux (To ShutDown Kali)
wsl --unregister kali-linux (To Uninstall Kali)
wsl --shutdown (To ShutDown WSL and All distros)
wsl --distribution kali-linux --user root (To login in kali as root)
kali
touch ~/.hushlogin
sudo su
passwd
apt update && apt upgrade
apt install -y kali-win-kex
apt install kali-tweaks
kali-tweaks
cat /etc/shells
which zsh
chsh -s /usr/bin/zsh
echo $SHELL
which $SHELL
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
mv ~/.oh-my-zsh /usr/share/ohmyzsh
omz help (for help msg)
omz reload (reloads oh my zsh)
omz update (updates omz)
omz plugin <command> (Manage plugins)
omz theme <command> (Manage themes)
kex -s (to start Win-Kex in window mode with sound)
kex --ems -s (to start Win-Kex in RDP Mode with sound)
kex --sl -s (to start Win-Kex in Seamless Mode with sound)
kex status (to see kex's status)
kex <Mode> --stop (to stop that mode)
kex kill (to stop kex all together)
// ln -s link target (soft link where target will be linked to link)
// For wsl.conf
ln -s /mnt/c/Users/thesr/Documents/dotfiles/Kali_WSL/etc/wsl.conf /etc/wsl.conf
// For zshrc for oh-my-zsh
ln -s /mnt/c/Users/thesr/Documents/dotfiles/Kali_WSL/etc/zsh/zshrc /etc/zsh/zshrc
you need to install ohmyzsh as git repo if you face this issue
cd /usr/share
mv ohmyzsh ohmyzsh-backup
git clone https://github.com/ohmyzsh/ohmyzsh.git ohmyzsh
mv ohmyzsh-backup ohmyzsh
omz update