Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8858885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:55:45+00:00 2026-06-14T14:55:45+00:00

My dir sturcture that looks like x /log /bin I am giving this command

  • 0

My dir sturcture that looks like

x

   /log

   /bin

I am giving this command from dir- x/bin

find ../log -type f -name \*.log  -mtime +90 -exec ls -l {} \; 

(to find and display list of files older than 90 days.) and it doesn’t display anything.

Whereas if i execute same command in dir- x/log

find . -type f -name \*.log  -mtime +90 -exec ls -l {} \; 

it gives me a list of files older than 90 days.

Can you please help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:55:46+00:00Added an answer on June 14, 2026 at 2:55 pm

    Recall that paths are relative.

    If you have a dir sturcture that looks like

     x
       /log
       /bin
    

    AND your’re in x/bin then you need to give the relative path to x/log, ie

     pwd
     x/bin
    find ../x/log -type f -name \*.log  -mtime +90 -exec ls -l {} \;
    

    I hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XML file that looks like this: <?xml version=1.0? encoding=UTF-8 standalone=no?> <dir
I have a data structure that looks like this: Model Place primary key id
I have a directory structure that looks like this: basedir/dir1/dir2/dir3/dir4/myzip/subdirs I would like to
I have a directory structure that looks like this: project/ __init__.py foo/ __init.py__ first.py
I want to create a XMLDom of a Directory structure that looks like the
My application folder structure looks like this... -js -libs -jquery.js -jquery-ui.js -app.js -ui.js I
I have a file structure like this: dir_a __init__.py mod_1.py mod_2.py dir_b __init__.py my_mod.py
the folder structure is like this: plugin->upload->php->files list-> 'script_url' => $this->getFullUrl().'/'.basename(__FILE__), //'upload_dir' => dirname(__FILE__).'/files/',
I use use lib ./DIR to grab a library from a folder elsewhere. However,
I have a directory Dir in which I have about 30 sub-directories. From these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.