If you were using curl to look at a text file on your desktop, the raw command would look like this: curl file:///Users/YourName/Desktop/notes.txt Use code with caution. Copied to clipboard
The most useful "feature" is treating a local file exactly like a web resource. This is great for scripts that need to be flexible: curl-url-file-3A-2F-2F-2F
While file:/// reads from your machine, curl is primarily used for network transfers: URL syntax - curl If you were using curl to look at
curl file:///etc/passwd