It's UWAweek 48

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Displaying the 5 articles in this topic
Showing 5 of 919 articles.
Currently 2 other people reading this forum.


 UWA week 32 (2nd semester, week 3) ↓
SVG not supported

Login to reply

👍?
helpful

Hello, I'm using the Ubuntu Linux shell on Windows 10 for this unit, and I'd like to know if there's a way to move/copy files from the Windows file system (C:/ExampleDir/) to the Linux file system (~/ExampleDir) (in WSL) and if yes, how to do that. Thanks in advance!


SVG not supported

Login to reply

👍?
helpful
3:37pm Tue 9th Aug, Christopher M.

ANONYMOUS wrote:
> Hello, I'm using the Ubuntu Linux shell on Windows 10 for this unit, and I'd like to know if there's a way to move/copy files from the Windows file system (C:/ExampleDir/) to the Linux file system (~/ExampleDir) (in WSL) and if yes, how to do that.
I think someone gave this link before (but I can't find it): https://docs.microsoft.com/en-us/windows/wsl/filesystems When working within Linux, you may use the standard Linux file commands: cp oldfile Newfie and mv oldfile newlocation (or newname) Hope that helps.


SVG not supported

Login to reply

👍?
helpful

By default, the Ubuntu system has a view of your Windows filesystem mounted at the path "/mnt/c". So, if you navigate to "/mnt/c/ExampleDir", you'll be able to see the same files as Windows sees at "C:\ExampleDir". With that in mind, you can then use standard Linux commands to shift files between "~/ExampleDir" and "/mnt/c/ExampleDir", or work directly from of the Windows filesystem if you'd prefer.


SVG not supported

Login to reply

👍?
helpful

The path /mnt/c/ works. Thanks, Chris and James!


SVG not supported

Login to reply

👍?
helpful

Also, if the reason you want to transfer stuff from windows to wsl linux is to get something you downloaded into wsl, say a code example like [CITS2002], you can use the command "wget". For example ~$ wget [CITS2002] will download the file into the current directory.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy