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
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -405,6 +405,35 @@ 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
+
The OneDrive desktop should be accessible using one of the following commands
415
+
(if the name of the enterprise/org isn't clear, look through the output of `ls` to find
416
+
the right folder):
417
+
418
+
```bash
419
+
$ cd"~/OneDrive - Name Of Enterprise/Desktop"
420
+
$ cd"C:/Users/Username/OneDrive - Name Of Enterprise/Desktop"
421
+
```
422
+
423
+
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.
424
+
425
+
::: instructor
426
+
427
+
One way to spot if the computer is using this kind of configuration with OneDrive is to look at files,
428
+
folders or links on the desktop. Usually the icon contains a shortcut/arrow symbol if it
429
+
is a link, or just the plain icon if the file is just saved in the `Desktop` folder.
430
+
Files synced with OneDrive contain an additional symbol indicating the sync status
431
+
(typically blue arrows for 'sync pending' or a green tick for 'synced').
432
+
433
+
::::::::::::::
434
+
435
+
::::::::::::::::::::::
436
+
408
437
Your output should be a list of all the files and sub-directories in your
409
438
Desktop directory, including the `shell-lesson-data` directory you downloaded at
410
439
the [setup for this lesson](../learners/setup.md). (On most systems, the
0 commit comments