 |
» |
|
|
 |
The major identifying features of a file or directory are:
Its name and location in the file hierarchy.
Its owner and permissions (properties).
Whether or not it is linked to another file. A linked file is a
representation of another file. Linked files provide a way for you to have
one file that appears to exist in two or more directories.
(See “Creating a Symbolic Link”.)
Creating a New File or Directory |  |
Choose New ...
From the File menu to create a new file.
Or, from the Directory menu to create a new directory.
A dialog box prompts you for the name of the new file or directory.
Enter the new name.
Choose OK.
There are other ways to create objects:
Copy an existing object, then rename it.
Create a new file within an application. For example, if you use Text Editor to write a new text file, when you save it for the first time, a new file is created.
Moving a File or Directory |  |
Mouse.
Be sure the destination directory is visible (either as an icon or as an open File Manager view).
Drop the icon into its new directory.
For HP VUE Lite. Since File Manager is not available in HP VUE Lite, you must use the
mv command to move and rename files. Open a terminal
window (see “Starting and Stopping a Terminal Window”),
then execute the mv command like this:
Or, to move one or more files into an existing directory:
The following example moves star.xwd into the /home/jodi/Graphics directory:
mv star.xwd /home/jodi/Graphics Enter
|
File and directory names may include a path, if needed. See “The Hierarchical File System”.
Copying a File |  |
Mouse.
Be sure the destination directory is visible (either as an icon or as an
open File Manager view).
Press and hold CTRL while dragging the file's icon, then
drop the icon into the directory where you want the copy.
Keyboard.
Select the file's icon.
Choose "Copy" from the File menu. A dialog displays, prompting you for
the name of the new copy.
Enter a name for the new copy of the file and choose OK.
 |  |  |  |  | NOTE:
You cannot use the Copy command to copy directories. However, the
HP-UX command cp -r copies a directory and its contents. See
the HP VUE Lite procedure below for more information.
|  |  |  |  |
For HP VUE Lite. Since File Manager is not available in HP VUE Lite, you must use the
cp command (copy), to copy files and directories.
Open a terminal window (see “Starting and Stopping a Terminal Window”), then
execute the cp command like this:
Or, to copy a directory and its entire contents:
cp -r directory newdirectory
|
The following example copies mydir and any subdirectories
to a new directory called mydir2.
File and directory names may include a path, if needed. See “The Hierarchical File System”.
Creating a Symbolic Link |  |
A symbolic link is a type of file that contains only a
path name (a "pointer") to the place where the actual data is stored.
Using this procedure avoids duplication of large files, and saves
space. Mouse. Press and hold Shift while dragging the object's icon. When
you drop the icon into a new directory, a symbolic link is created in
that directory that points to the original object.
Keyboard.
Choose "Terminal" from the Directory menu in File Manager. This opens a terminal window with the same current working directory.
Use the ln command to create the symbolic link:
Where filename is a complete path to the existing file, if it is
not in the current directory, and linkname is the name of the
symbolic link, which may also be a complete path.
For example, to create a symbolic link from /home/leslie/myfile to the existing file /home/leslie/work/newfile, use this command:
ln -s /home/leslie/work/newfile /home/leslie/myfile Enter
|
Users can now access /home/leslie/work/newfile by
accessing /home/leslie/myfile.
Close the terminal window by choosing "Close" from the window menu or by executing the exit command.
For HP VUE Lite. Since File Manager is not available in HP VUE Lite, you must use the keyboard
method above.
Changing the Owner of a File or Directory |  |
There may be times when you need to change the owner of a file or
directory. For example, you may be moved from one project to another
before the first project is complete, and may need to give your replacement
on the first project ownership of the directories and files associated with
the project.
Select the object's icon.
Choose "Properties" from the File menu or from the object's pop-up menu. File Manager displays the File Properties dialog.
Make the desired changes:
To change the file's owner, type the new owner's name into the "Owner Name" field.
To change the file's group, type the new group name into the "Group Name" field.
See “File Ownership and Security” for more information.
Choose OK.
Changing Access Permissions |  |
You can change the access permissions to directories and files you own.
You might need to do this if your manager assigns other people to work
with you and they need access to your files.
Select the object's icon.
Choose "Properties" from the File menu. File Manager displays the File Properties dialog.
In the Permissions box, select the permissions for the file or directory's owner, group, and other:
Select "Read" for the users that should be allowed to read the file or directory.
Select "Write" for the users that should be allowed to alter the file or directory.
Select "Execute" for the users that should be allowed to execute the file or access files in the directory.
See “File Ownership and Security” for more information.
Choose OK.
The object's owner is identified in the Owner Name field. The object's
group is identified in the Group Name field.
Read, write, and execute permissions are selected in the Permissions box.
The permissions selected in the Group row indicate the access privileges
for any user belonging to the named group. The permissions selected for the
Other row apply to all other users.
|