Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to find all the log files under the root directory -- Need Info Post 302087712 by gkrishnag on Tuesday 5th of September 2006 08:34:30 AM
Old 09-05-2006
How to find all the log files under the root directory -- Need Info

Hi

I need to find all the log files under the root directory and delete them if necessary, if any one has a sample script who can share with me.

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Files in work directory reverting to root ownership

Hi, I have a problem with a Unix server we do not adminster but have an application running on. The problem is that overnight, files in the /user4/work directory revert to root ownership. This causes problems as we cannot process the files. 1) What would be causing files to revert to root... (1 Reply)
Discussion started by: canman
1 Replies

2. AIX

Help Using Grep command to Find the string in the files in the root directory

I want to serch for a string in all the files in the root directory. i want the search to be limited to only the files in the directory i.e the search to be done only in the files not in the sub directory. the approaches tried are 1)grep "pattern string" this command was serching the... (3 Replies)
Discussion started by: Subbu_Angeline
3 Replies

3. AIX

need to extract info from log files

hi guys i need to extract information from log files generated by an application. log file has the following lines for each process.. ---------------------------------------------- Fri Aug 03 12:06:43 WST 2007 INFO: Running project PROJECT1 Fri Aug 03 12:06:43 WST 2007 INFO: Source Files... (7 Replies)
Discussion started by: kirantalla
7 Replies

4. Shell Programming and Scripting

Find files older then today & display with timestamp info

Small query- I want to do some operation on all the files older then today. Before I do that operation, i want to verify if the command works properly or not. Surprisingly, the command below returns me file, which are created today - find /mrk_archive/PG/ftp/incomming/gbs/2008 -type f... (2 Replies)
Discussion started by: kedar.mehta
2 Replies

5. UNIX for Dummies Questions & Answers

How to find files with ERROR's in log directory

Using a Single Unix Command how can i find all of the files ending in .log in the /output directory tree that have the string “ERROR:” in the file I tried these but was not successful: cd /output; ls *.log | grep "ERROR:" (2 Replies)
Discussion started by: ramky79
2 Replies

6. AIX

how to find whats filling up Root Directory

Hi guys I am running AIX 5.3 and a newbie to it. And I am getting reports telling me that the Root Directory is reaching almost max capacity, can someone give m some advice to find out what files are causing it to grow? , or how I can identify the growing files? Thanks (6 Replies)
Discussion started by: ryanbsc@gmail.c
6 Replies

7. UNIX for Dummies Questions & Answers

how to find a path within unix root directory

I need to know whether nyfile/mypath exists on the file system in the root directory. How to do this (1 Reply)
Discussion started by: ramky79
1 Replies

8. UNIX for Dummies Questions & Answers

find large files in root filesystem and exclude others

I am wondering if there is a way to search for top 10 files in size in root filesystem but exclude all other mounts including nfs mounts . For example excluded /var /boot /app /app1 /u01/ (1 Reply)
Discussion started by: gubbu
1 Replies

9. Red Hat

Find and Chown all files in a DIR except for Root

RHEL 6.3 Could someone tell me how to use the find and chown command to replace all files in a directory owned by user1 (for this example) and replace with user1:group1? Most importantly I dont want to change any files owned by root. I recently used the following command but it changed the root... (4 Replies)
Discussion started by: gps1976
4 Replies

10. UNIX for Dummies Questions & Answers

How to find directory listing from root to all files in tree format with details of perm/own/grp?

Hi, My apologies if my query is already available on this forum but I am new and could not find. I need a script to list all directories/sub directories and files with permissions/groups/owners. The script would run from home directory and should capture every directory. How do I do this? ... (4 Replies)
Discussion started by: 8709711
4 Replies
vbmtchain(8)						      System Manager's Manual						      vbmtchain(8)

NAME
vbmtchain - Displays the contents of a reserved file from an unmounted domain. SYNOPSIS
/sbin/advfs/vbmtchain BMT_page cell special OPERANDS
Specifies the page within the bitfile metadata table (BMT) of the volume that contains the file's mcell. Specifies the cell of the BMT page that contains the file's mcell. Specifies the volume on which the file's primary mcell is located. DESCRIPTION
The vbmtchain utility displays the contents of a reserved file from an unmounted domain. The file is described by the location of its pri- mary mcell. Each mcell location is composed of three parts: volume, page within the BMT file located on that volume, and cell within the BMT page. The primary mcell for the root tag directory is found in the BMT of the volume containing the log. To find this volume for a domain, use the showfdmn or the advscan command. The volume marked "L" contains the log. Certain metadata files are in fixed locations: ------------------------------------------------------- Page Cell Volume ------------------------------------------------------- Bitfile metadata table 0 0 Every volume Storage bitmap 0 1 Every volume Root tag directory 0 2 Volume with log Transaction log file 0 3 Volume with log ------------------------------------------------------- The vbmtchain utility displays the attributes of the file, including the time stamp, the extent map, and whether the file is a user direc- tory or a data file. RESTRICTIONS
You must have root user privileges to access this command. SEE ALSO
Commands: showfdmn(8), advscan(8) Files: advfs(4) vbmtchain(8)
All times are GMT -4. The time now is 01:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy