Writer instructions | |
---|---|
Page title | For most spaces, this page must be titled Space announcements. For spaces with localized content, this page must be titled Space announcements l10n. |
Purpose | Provide an announcement banner on every page of your space. |
Location | Move this page outside of your home branch. |
Guidelines |
Removing files
This task describes how to delete files based upon different file characteristics. With this FILESYSTEM application command, you specify where the file is located in the filesystem and to define file search criteria. It then builds the search and delete expression. This command returns the search and remove expression.
Before you begin
- You can search for files using a different user name and password from the one under which BMC PATROL is running.
- You can search for and remove files based upon
- Naming convention
- Owner
- Group
- Change date
- You can restrict search and remove operations to
- One or multiple physical disks
- A location/directory within a filesystem
To remove files
On the filesystem for which you want to remove files, perform the following steps.
- Access the FILESYSTEM application menu as described in Accessing KM Commands and InfoBoxes.
- Select Maintenance > Remove Files Like.
BMC PATROL prompts you for the user name and password of an account that can read and write to the files that match the criteria. - Type the user name and password and click OK. If you want to use the account under which the BMC PATROL Agent is currently running, leave both fields blank.
BMC PATROL displays the Remove Files Like dialog box.
Remove Files Like Dialog Box Define the search and remove criteria. The search and remove feature is a logical AND operation that returns only files that match all the criteria defined by the following fields.
- Click Find.
BMC PATROL builds a search and remove expression, searches the filesystem for files that match the criteria, removes the files, and writes the search and remove expression to a BMC PATROL task object (Remove Files Like) in the FILESYSTEM container. - Access the Remove Files Like task object as described in Accessing KM Commands and InfoBoxes and view the expression. Your result should resemble this example:
-------------------- >>>>> DONE <<<<< --------------------
Output Format
The output has the following format. Following table defines each expression.
-------------------- >>>>> DONE <<<<< --------------------
Remove Files Like Command Output Format
Output | Description |
---|---|
Search Expression | |
Begin: find | Find command |
/path | Starting point for search |
- name <text?*> | File name pattern |
- xdev/-mount | Search for files that reside only on the same filesystem as path; xdev works only on Solaris and some BSD systems |
-exec rm | Run the UNIX OS command remove |
-ld | Options for the ls command: -l long format listing, -d list only the directory names and not its contents |
{ } | Argument that substitutes current file |
-- >>> DONE <<< -- | End of search and remove output |