Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

find "/path" -type f -ctime +30

Login or Register to Reply

Thread Tools Search this Thread
# 1  
find "/path" -type f -ctime +30

When I use the command
find "/abc/xyz" -type f -ctime +30

getting the error as
find:"/abc/xyz /lost+found: Permission Denied"

I tired
find  "/abc/xyz" -type d \( ! lost+found \)  -type f  -ctime +30

The error is
find: paths must precede expression Usage: find [-H] [-L] [-P] [path...] [expression]

find  "/abc/xyz" -maxdepth 1  -type f  -ctime +30

it is searching in current directory, but I have sub directories in /xyz folder

Could any one help me how to solve the issue.

Thanks in advance,

Last edited by Don Cragun; 07-14-2015 at 05:00 AM.. Reason: Add CODE and ICODE tags.
# 2  
Perhaps something more like:
find  "/abc/xyz" \( -name lost+found -prune \) -o -type f -ctime +30

would work better for you.
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
find . -path "*_nobackup*" -prune -iname "*.PDF" \( ! -name "*_nobackup.*" \)
These three finds worked as expected: $ find . -iname "*.PDF" $ find . -iname "*.PDF" \( ! -name "*_nobackup.*" \) $ find . -path "*_nobackup*" -prune -iname "*.PDF" They all returned the match: ./folder/file.pdf :b: This find returned no matches: $ find . -path "*_nobackup*" -prune...... Shell Programming and Scripting
Shell Programming and Scripting
Find lines with "A" then change "E" to "X" same line
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this...... Shell Programming and Scripting
Shell Programming and Scripting
"find . -printf" without prepended "." path? Getting path to current working directory?
If I enter (simplified): find . -printf "%p\n" then all files in the output are prepended by a "." like ./local/share/test23.log How can achieve that a.) the leading "./" is omitted and/or b.) the full path to the current directory is inserted (enclosed by brackets and a blank)...... Shell Programming and Scripting
Shell Programming and Scripting
Command to find the "unix machine type".
Hi all, Just need some help the following scenario, Is there any UNIX command to find the unix machine type (like whether the machine is belongs to Ssun ultra 45 type) like that .. please help me... UNIX for Advanced & Expert Users
UNIX for Advanced & Expert Users
Creating a Shortcut (to just type "l" but it runs "ls -lah")
How do I create shortcuts? For example: I just want to type one key "l" and have it output the command of "ls -lah" I believe it's creating a file called l with 755 permissions but I'm not sure where to put the file. *if it matters, I'm on a shared hosting web server using cPanel with...... Shell Programming and Scripting
Shell Programming and Scripting

Featured Tech Videos