QNX User Guide

Please note that, although information is presented here in a careful order, not all of the information appears when it is needed. Please read the whole of this document before running an experiment. Refer to the notes at the end of this document for more information on the commands used.

Home Directory

The default file location is known as the home directory, which is equivalent to the My Documents folder on a Windows computer. The actual name of this directory matches the username, and is a subdirectory of the directory called home. For example, with a username of zoe, the home directory is /home/zoe. The symbol “˜” (known as the tilde) refers to this directory.

Using Removable Disk Drives

QNX does not automatically ‘see’ the floppy disk and CD-ROM; it has to be told to connect to them before files can be copied to and from them. Also, when connected, they are not referred to as the “A: drive” or “D: drive” as in Windows. Instead, they are referred to as directories in QNX's file system.

To make a connection to the floppy disk drive, follow these steps:

  1. Bring up a terminal window, by clicking on the button called Terminal on the right hand edge of the screen.
  2. Place the floppy disk in the disk drive.
  3. Type the command
    su
  4. Enter the password for the root account.
  5. Type the command
    mount -t dos /dev/fd0 /fs/floppy
  6. Type the command
    exit

Files on the floppy disk can now be found in the directory /fs/floppy. Copying files to this directory will put files onto the floppy disk.

For the CD-ROM, the process is very similar, but replace /dev/fd0 with /dev/cd0, and /fs/floppy with /fs/cdrom.

Running Programs

  1. Move into the program's directory by typing the command cd followed by a space, then followed by the name of the directory that the program file is stored in
  2. Run the program by typing ./ followed by the name of the program file, followed by a space and 2>err.err \&. For example, to run the Cockpit program (the file name of which is cockpit), use the following command:
    ./cockpit 2>err.err \&

Working With Files

Files and directories (Unix's name for folders) can be viewed and manipulated on QNX using File Manager. File Manager can be run by clicking on the button marked File Manager on the right-hand edge of the screen. Its operation is very similar to that of Windows Explorer on Windows computers.

The files that contain the configuration settings, instructions, and function-labels, all contain only plain text. This means they can be viewed easily and editted in any text editor. Plain text files cannot contain any formatting information, so documents created with word processors such as Word, are not plain text, although most word processors can save a document in plain text format, although the plain text file can contain none of the formatting information in the original document.

The standard editor on QNX is called Ped (for Photon Editor), and can be run by clicking on Launch, then Editors, then Ped. It works in the same way as NotePad, which is the text editor on Windows computers.

To view and edit text files, use File Manager. First locate the file, then click on it to select it. Then go to the File menu, and select Edit. This will automatically run the editor Ped and load the selected file into it.

Many programs work with instruction files, or configuration files (or both). These files should contain only plain text. They cannot contain any formatting information (fonts, underlining, etc.) and cannot be a Microsoft Word document.

Files and Directories

Using Commands


Home About Me
Copyright © Neil Carter

Content last updated: 2008-03-26