Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

On Windows, folders and files are separated by backslashes (“\”), while Unix uses forward slashes (“/”).

“C:” is the drive letter, “Users” and “dab4457” are folders. “dab4457” is inside “Users”

“dab4457@LIB-PCLAL102” is the active user, “mnt” and “benson” are folders. “benson” is inside “mnt”

Changing the cwd

To change the current working directory, use the “cd” command, followed by the path to the directory you want to set as the new cwd. This command is the same in both Windows and Unix, though the file paths will use different slash directions. If the new file path contains blank spaces, wrap the file path in quotes.

Changing the cwd from the “dab4457” folder to the “Box” folder, then to the “Digitization Services” folder

To navigate up a folder, use “cd ..” (two periods)

...

On Windows, to change the cwd to a directory on another drive letter, you first need to change the active drive. You do this by typing the drive letter you want to change to, followed by a colon.

On Windows, using cd with a path on another drive will set the default open directory on that drive, but it won’t actually change the cwd to that drive. In this case, the “Y:” command changes the current working directory to “Y:\digital_processing” because of the cd command in the first line

Any file path you enter has to be exactly correct, or you’ll receive an error saying the system can’t find the path you’ve provided. Windows file paths are not case sensitive, while Unix file paths are, so if you are having trouble changing to a particular folder on Unix, check your capitalization.

...

To show the contents of a folder, use “dir” (“directory”, Windows) or “ls” (“list”, Unix), followed by the path to the folder. If no folder path is provided, the cwd will be used.

Default output of the “dir” command in Windows

Default output of the “ls” command on Unix

The content and structure of what is displayed can be changed by adding any number of “options” or “parameters” after the command. For example, use “dir /b” to display a “bare” list of directory contents, without timestamps or other metadata:

...