Course / 03 Command line / Lesson 18 of 19

What is different on Windows

Estimated time: 15 min reading · 15 min activity

A file lives on your Windows host, while a command runs inside Ubuntu. Before translating the command, identify which system owns the file and what path that system uses. Changing slashes alone does not establish that both paths reach the same file.

Windows commonly uses drive letters such as C: and backslashes between path components. A user profile stores files and settings for an account, often beneath Users. Linux absolute paths instead start with /. The printed paths are fictional examples for reading, not locations to access.

Before you begin

Estimated time
15 min reading, 15 min activity. Setup and optional practice may take longer.
Where you work
Use the supplied Windows, Command Prompt and PowerShell examples in any browser, including mobile. You can finish from the printed cards if you do not have Windows. No installation, paid account, admin permission, registry edit, or policy change is needed for the card route. Optional extension: 10–15 minutes.
Without a lab
The page supplies the files, source and text records needed for the activity. Without a shell, follow the numbered steps on paper, label each result as predicted, and use the separate evidence supplied by the question. Running commands can wait until your lab is available. Reading works without JavaScript. Answer checking needs JavaScript and a secure context, such as HTTPS; saving a correct result also needs usable browser storage. Missing tools, managed or mobile hosts, or a deferred guest setup never require buying a service. Keep owned lab files for review; do not use broad deletion.

After this lesson you can:

  • Identify a drive-letter path versus a Linux absolute path.
  • Locate a user-profile path in an original case.
  • Explain why path, shell and access model must be identified separately.

01Example

These fictional paths describe a note beneath a user area using two different systems' conventions. D:\ anchors the Windows path at that drive's root; / anchors the Linux path at filesystem root. These paths are data to read, not commands.

Windows example: D:\Users\mira\notes\draft.txt
Linux example:   /home/mira/notes/draft.txt

Windows anchor: D:\
Linux anchor: /

Matching final filenames do not establish the same file or machine.

02A drive prefix is not always an absolute path

C:\folder begins at the root of the named drive. C:folder, without the backslash after the colon, can depend on that drive's current directory. The extra separator therefore changes how the path is resolved. Other forms, such as network paths, also exist; these cards use only the stated conventional forms.

Profile locations and drive layouts can vary. Do not replace another user's name and assume the result is your folder. Also distinguish host from guest: a terminal inside the Ubuntu guest uses its guest filesystem even when the terminal window appears on a Windows screen.

Windows access rules use identities and access-control lists, rules granting or denying operations. They are not a direct copy of Linux's three mode digits. A Windows service is managed background work. Recognizing a service or a path does not establish malicious behavior or authorize access.

Read each root anchor independently of the common draft.txt filename; these are fictional paths, not commands.Model. A teaching model drawn by hand. It shows the idea, not real tool output.

Read the full explanation below.

anchorsnames
FieldWindows fictional pathLinux fictional path
Root anchorD:\/
Remaining pathUsers\mira\notes\draft.txthome/mira/notes/draft.txt
Final filenamedraft.txtdraft.txt
Different root syntax

D:\ is a drive root; / is the Linux filesystem root.

D:\ is a drive root; / is the Linux filesystem root.

Follow the explanation

  1. D:\ is a drive root; / is the Linux filesystem root.
  2. The shared draft.txt ending does not establish the same file or computer.
Read every state and value

1. D:\ is a drive root; / is the Linux filesystem root.

Selected Comparison
anchors
Highlighted Field
Root anchor

2. The shared draft.txt ending does not establish the same file or computer.

Selected Comparison
names
Highlighted Field
Final filename
Read each root anchor independently of the common draft.txt filename; these are fictional paths, not commands.

03Try the path and identity cards

The required activity compares complete printed Windows and Linux paths. Mark each root, account area, directory name and final filename before interpreting which machine it belongs to.

If you use your own Windows device, File Explorer can show the address of a known personal folder. Keep real identifiers private. Without Windows, the same fictional cards supply every part of the comparison. No file, service, registry setting or access rule needs changing.

Read paths before selecting commands

A path names a location; it is not a command. A drive-rooted Windows
path starts with a form such as C:\, whereas a Linux absolute path
starts with /. Identify the actual host or guest as well as the syntax.
The fictional paths below supply all facts for paper comparison.

Worked Windows path: D:\Users\mira\notes\draft.txt
Worked Linux path: /home/mira/notes/draft.txt
Activity A: C:\Users\analyst\Documents\practice.txt
Activity B: /home/analyst/Documents/practice.txt
Question A: C:\Users\desk\note.txt
Question B: /home/desk/note.txt
Which platform's question path uses the drive-letter prefix? windows/linux
These are labeled examples, not existing personal folders.
Actual Windows user-profile locations and drive layouts can differ.
Read-only own-system route: File Explorer shows address for a personal
folder; copy no identifiers into public help. Change no settings/files.

Download the Windows/Linux path cards and read-only route

  1. Read Activity A and B. Label the root anchor, account area, directory components and final file name. Expected: A has C:\ and Users; B has / and /home.
  2. State whether each path belongs to the host or guest in a Windows-host/Ubuntu-guest scenario. Expected: do not treat a host path as a guest path unless a separately stated sharing mechanism exists.
  3. If on your own Windows device, open File Explorer on a known personal folder and inspect its address. Keep actual account details private. If no Windows device is available, use the complete fictional cards.
  4. Write a limitation: recognizing a Windows path does not tell you whether cmd or PowerShell is active, nor who has access. The next lesson supplies the shell evidence.
  5. Stop with the private note. No system setting, registry, service, ACL or file was changed, so no reset is needed.

04Optional challenge

Allow about ten extra minutes. Compare C:\notes\draft.txt with C:notes\draft.txt on paper and explain which needs current-directory context. Then identify one piece of behavior evidence you would need before making a security claim about a background service.

05Fresh cases for the checks

Use these fictional cases for the checks below. They have different inputs from the worked examples. Read them here or make notes; no installation or external service is needed.

Windows card A: a supplied profile and file locationOwned fixture. An original file made for this course. Follow the activity's instructions in your own lab.

On this fictional Windows host, Leni's user profile is E:\Users\leni.
Full file path: E:\Users\leni\Documents\route.txt
Use the location supplied for this case; profile locations can vary.
No shell, access-control rule, permission grant or live file observation is supplied.

Windows card B: separate host and guest locationsOwned fixture. An original file made for this course. Follow the activity's instructions in your own lab.

Computer arrangement: a Windows host with an Ubuntu guest.
Path W is in the host filesystem: F:\Users\nika\notes\schedule.txt
Path U is in the guest filesystem: /home/nika/notes/schedule.txt
No shared folder or transfer between the host and guest is configured in this case.
No file existence or contents are otherwise established.

Windows card C: two path forms with changed anchoringOwned fixture. An original file made for this course. Follow the activity's instructions in your own lab.

Path R: G:\notes\check.txt
Path S: G:notes\check.txt
Both are conventional Windows path forms, not commands to execute.
The current directory on drive G: is not supplied.

06Explain a Windows location claim

Optional self-check: explain what you would need before using a file path from a Windows host in an Ubuntu guest. Then explain what you would need before choosing syntax for a Windows terminal tab.

Review your explanation: identify the actual system, root and supplied profile location; require an established host/guest sharing route where needed; identify the active shell from separate evidence; and check identity and access rules rather than inferring permission from a familiar path. The following lesson supplies the Windows command forms. This explanation is self-reviewed.

07Common mistakes

If you treat a path as an instruction to execute, identify its role first. These examples are locations to analyze, not targets for a shell or network action.

If changing slashes seems to produce a usable path, verify the root, actual machine and file existence before any operation. Syntax similarity is not proof of identical files.

If a familiar Windows profile path belongs to another account, stay with the original card or your own folder. No administrator action or access-rule change is needed.

References

  • Microsoft: Naming Files, Paths, and Namespaces

    Primary Windows path rules, drive-relative versus drive-rooted names and additional namespaces. The course's simple cards use only the stated conventional forms.

  • Microsoft: cmd

    Command Prompt interpreter and command syntax. Windows release, configuration, and prompts can differ. This lesson's printed cards are the evidence.