Creating a Linux Share that can be accessed by a Windows networking computer.
When working with files in Linux, you may need to copy files over to your Windows machine.
In this article, we will do just that. Create the share, then create the link between the Linux and Windows machines.
These commands will be typed in at your prompt: root@Linux-05:/home/linux05#
Copy
Search Site
Search Google
[Step 1]:
Go into SUDO mode.
sudo -i
Copy
Search Site
Search Google

# Type in password
[Step 2]:
Create the Folder to map the Windows drive to.
mkdir -p /mnt/windows
Copy
Search Site
Search Google
[Step 3]:
Mount the Windows drive folder to the Linux folder we just created.
Make sure you create the user before proceeding to the next step.
[Linux - Mount Share]
CFFCS | CarrzSynEdit: | CMD (Windows Command Prompt) | L (Linux)
# Normal User
mount -t cifs //192.168.2.12/d/Linux-05 /mnt/windows -o =linux05
# or Domain User
mount -t cifs //192.168.2.12/d/Linux-05 /mnt/windows -o =linux05@domain.local
# Prompted for Password, type it in.

[Step 4:] (This can be used as a Backup of your important files)
Copy folders over from Linux to Windows.
[Linux - Copy Folders]
CFFCS | CarrzSynEdit: | CMD (Windows Command Prompt) | L (Linux)
cp -r /srv/web/Inetpub/wwwroot/MyWebSite /mnt/windows/
cp -r /var/www/MyWebSite / /mnt/windows/
cp -r /usr/local/nginx/ /mnt/windows/
cp -r /etc/nginx/ /mnt/windows/
cp -r /etc/letsencrypt/ /mnt/windows/
# This next one, not all files will copy over.
cp -r /etc/ssl/ /mnt/windows/
# If you have multiple users on the machine, it is best to back up all of them.
# Unfortunately, as I just found out, doing this (cp -r /home/) did not copy anything over and did not produce any errors either. 
# So you will have to log into each user to copy their data out, or it did not work for me.
cp -r /home/linux05 /mnt/windows/