This chapter discusses how to use editor command keys when working in files, directories, and the File Manager.
By using the File Manager screen and the appropriate command keys, you can do the following from within an INed session:
You can use the following procedures with INed editor subcommands:
The editor displays the following message:
Printing on the default printer
and prints the file on the default printer. This option prints the file name and the page number at the top of each page unless your print profile has been changed. See To Create a Print Profile for more information.
The editor displays a Print Options box. Type the print options (flags) you want in the box and press the Ctrl-A, Enter key sequence (the Enter function). The editor prints the file on the line printer using the options you specified.
For example, to print a file that is wider than 80 columns, enter the -cdp flag in the Print Options box. The -cdp flag is the piobe command flag for condensing the print. (When you finish printing the file, you should turn the condensed print off by entering the -cocdp flag.) For information about the other available print options, see the qprt and piobecommands.
To print to a file means to copy (write) the contents of the file you are editing to another file. If you copy a file into an existing file, the file you are printing replaces any text in the file you are printing to.
The editor displays the following message:
File for printing
To write the file into the default file shown in parentheses, press the Ctrl-A, Enter key sequence (the Enter function). To write the file into a specific file, type the file name or full path name and then press the Ctrl-A, Enter key sequence. If the file does not exist, the editor displays a prompt. Press the Ctrl-A, Enter key sequence to create the file. While it prints the file, the editor displays the following message:
Printing to file
To print to a file means to copy (write) the contents of the file you are editing to another file. If you append a file, the information is written to the end of the existing file without destroying its contents.
The editor displays the following message:
File for printing
To write the file into the default file shown in parentheses, press the Ctrl-A, Enter key sequence. To write the file into a specific file, type the file name or full path name and then press the Ctrl-A, Enter key sequence. (You can print more than one file into the file; each file is added to the end of the previous file.) If the file does not exist, the editor displays a prompt. Press the Ctrl-A, Enter key sequence to create the file. While it prints the file, the editor displays the message:
Printing to file
Press the Ctrl-A, S key sequence (the Save function).
The editor saves the changes and does not exit the file you are editing.
The editor also makes a copy of the file without the current changes and stores it in a file with the same base name as the original file and the .bak extension. (If you have not made any changes to the file, the editor does not rewrite the file, and the .bak file remains at the previous level.)
Note: The .bak files are only for text files.
The editor displays several popup messages while saving the file.
Note: If you copy a file into an existing file, the file overwrites the existing file, destroying and replacing the text that is in the file.
The editor saves the changes and does not exit the file you are editing.
The editor also makes a copy of the file without the current changes and stores it in a file with the same base name as the original file and the .bak extension. (If you have not made any changes to the file, the editor does not rewrite the file, and the .bak file remains at the previous level.)
Note: The .bak files are only for text files.
The editor displays several popup messages while saving the file.
The editor creates the copy of the file you picked up. If you want to change the description of the file, press the Tab key to move the cursor to the Description field, press the Ctrl-A, Enter key sequence then the Delete key, and type the new description.
When you delete a file, the editor puts the deleted file in the delete buffer. You can restore the file to your directory by pressing the Ctrl-A, I key sequence (the Restore function). Deleted files and text are stored in the delete buffer only for the current editing session.
When you create a new directory, the editor displays a blank File Manager screen for the new directory. You can use this screen to create new files and directories. To exit this directory and return to the previous File Manager screen, press the F12 key (the Zoom Out function).
The directory you are located in is your current directory. The File Manager screen displays each file in the current directory. The descriptions are typed in by the user and not created by the File Manager.
Note: If you know the full path name of a directory, you can move to that directory by pressing the Ctrl-A, Enter key sequence, typing the full path name in the ENTER box, and pressing the Ctrl-A, U key sequence (the Use function).
To go to a subdirectory of the current directory, move the cursor to the name of the subdirectory and press the F11 key (the Zoom In function).
The directory that ends with your user name is called your home directory ($HOME).
When you change a file or directory name, you can use most of the editing command keys. For example, if the new file name is shorter than the old file name, you can press the Delete key (the Delete Char function) to delete the remaining letters of the old file name.
When you move a file to another directory, the file is deleted from the original directory and stored in the directory you specify.
When you copy a file to another directory, the file is left in the original directory, and an exact copy of it is stored in the directory you specify.
When you delete a directory, the editor removes the directory and the entire directory structure (all of the files and directories it contains). The editor puts the deleted directory in the delete buffer. You can press the Ctrl-A, I key sequence (the Restore function) to restore the directory and any files it contained. Deleted directories and files are stored in the delete buffer only for the current editing session.
The editor displays the Local Menu.
Note: When you become familiar with the Local Menu options, you can select the first two options without going to the Local Menu by using the Ctrl-A, F1 or Ctrl-A, F2 key sequence. To select an option, (1), (2), (4), or (5), highlight the appropriate Local Menu option by using the up or down arrow key, and then press the Ctrl-A, Enter key sequence (the Execute function). For more information on the function keys, see the INed Editor Functions for the Standard Keyboard.
(1) Display Visible Files
Displays the File Manager screen for the current directory. To display or change which files are hidden in your File Manager screens, create a File Manager profile.
(2) Display All Files
Displays the File Manager screen containing all files in the directory, including hidden files. Hidden files are usually created and used internally by the system; most hidden files begin with a . (period). To display or change which files are hidden in your File Manager screens, create a File Manager profile.
(4) Show Details About Files
Displays the Detailed File Status screen showing some detailed file information for all the files in the directory.
(5) Show More Details About This File
Displays the Detailed File Status Information screen for a specific file.
When you delete a file or directory, the editor saves it in the .putdir directory. The editor prefixes the files in the .putdir directory with a number and a . (period). If you delete many files or directories, you should delete the contents of the .putdir directory periodically.
Attention: Do not use the F7 key (the Pick Up function) or the Ctrl-A, D key sequence (the Delete Line function) unless you intend to remove the file or directory from the .putdir directory and make the file or directory unrecoverable.
If you are the owner of a file or directory, you can change the protection (permissions) at any time.
The Detailed File Status screen displays information for the entire directory. The fields in this screen contain the following information:
You can change the permissions either at this level or at the detailed file level.
To change the permissions at the detailed file level, move to the appropriate directory or file, press the F3 key (the Local Menu function), move the cursor to option (5) Show More Details About This File, and press the Ctrl-A, Enter key sequence (the Execute function). The Detailed File Status Information screen displays information for the file.
Move the cursor to the Permissions field. Change the permissions by changing to overwrite mode and typing the new permissions in the appropriate field.
The piobe command, qprt command in AIX Version 4.3 Commands Reference.
INed Overview introduces general concepts about the INed editor, lists the INed editing functions and describes the system guidelines for using the INed editor.
INed Editor Functions for the Standard Keyboard is a table that shows the INed editor command keys on a standard keyboard.
INed Editor Files in AIX Version 4.3 Files Reference contains reference information about the files used by the INed editor.