You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 02-filedir.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -405,6 +405,42 @@ Note that if a directory named `Desktop` does not exist in your current working
405
405
this command will return an error. Typically, a `Desktop` directory exists in your
406
406
home directory, which we assume is the current working directory of your bash shell.
407
407
408
+
:::::::::::::: callout
409
+
410
+
### OneDrive Variations
411
+
412
+
If a Windows machine is backed up with OneDrive, your Desktop may
413
+
have been moved within OneDrive and you will get an error when you try `ls -F Desktop`.
414
+
415
+
To check if this is true for you, run the command `ls` and look through the output for a folder that has "OneDrive" in the name and note that folder name. It will likely include the name of your organization in it. It may be something like `OneDrive - University of Example`.
416
+
417
+
If you don't see a "OneDrive" folder, you may not be in your home folder or there may be another issue going on. To check you are in your home folder, type `pwd` and it should show something like `C:/Users/Username` or `/c/Users/Username`.
418
+
419
+
If you do see the "OneDrive" folder, going forward whenever the lesson or instructor uses the `Desktop` folder, you will need to include the OneDrive folder as well. For example if the instructor types...
420
+
421
+
```bash
422
+
ls -F Desktop
423
+
```
424
+
425
+
You will need to type:
426
+
427
+
```bash
428
+
ls -F "OneDrive - Name Of Enterprise/Desktop"
429
+
```
430
+
Note: The quotation marks are needed for this folder because the Unix shell interprets spaces to be meaningful separators between files/commands/options but this folder has spaces in the name.
431
+
432
+
::: instructor
433
+
434
+
One way to spot if the computer is using this kind of configuration with OneDrive is to look at files,
435
+
folders or links on the desktop. Usually the icon contains a shortcut/arrow symbol if it
436
+
is a link, or just the plain icon if the file is just saved in the `Desktop` folder.
437
+
Files synced with OneDrive contain an additional symbol indicating the sync status
438
+
(typically blue arrows for 'sync pending' or a green tick for 'synced').
439
+
440
+
::::::::::::::
441
+
442
+
::::::::::::::::::::::
443
+
408
444
Your output should be a list of all the files and sub-directories in your
409
445
Desktop directory, including the `shell-lesson-data` directory you downloaded at
410
446
the [setup for this lesson](../learners/setup.md). (On most systems, the
0 commit comments