Filenames and pathnames

To access any file or directory, you must specify a pathname, a symbolic name that tells a program where to find a file within the directory hierarchy based at root (/).

A typical BlackBerry 10 OS pathname looks like this:

/home/fred/.profile

In this example, .profile is found in the fred directory, which in turn resides in the home directory, which is found in /, the root directory:

Diagram showing sample filenames.

Like Linux and other UNIX-like operating systems, BlackBerry 10 OS pathname components are separated by a forward slash (/). This is unlike Microsoft operating systems, which use a backslash (\).

To explore the files and directories on your system, use the ls utility. This is the equivalent of dir in MS-DOS. For more information, see Basic commands in Using the Command Line, or ls in the Utilities Reference.

Last modified: 2013-12-21

comments powered by Disqus