Sunday, 14 Dec 2025
Subscribe
logo
  • Global
  • AI
  • Cloud Computing
  • Edge Computing
  • Security
  • Investment
  • Sustainability
  • More
    • Colocation
    • Quantum Computing
    • Regulation & Policy
    • Infrastructure
    • Power & Cooling
    • Design
    • Innovations
    • Blog
Font ResizerAa
Data Center NewsData Center News
Search
  • Global
  • AI
  • Cloud Computing
  • Edge Computing
  • Security
  • Investment
  • Sustainability
  • More
    • Colocation
    • Quantum Computing
    • Regulation & Policy
    • Infrastructure
    • Power & Cooling
    • Design
    • Innovations
    • Blog
Have an existing account? Sign In
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Data Center News > Blog > Global Market > How to find files on Linux
Global Market

How to find files on Linux

Last updated: June 30, 2024 12:07 am
Published June 30, 2024
Share
Concentrated businesswoman ceo at laptop, working at office desk with documents, searching surfing web internet online
SHARE

$ discover . -name myfile -print
./checks/eg/myfile
./checks/myfile

Within the above instance, the command shows solely the title and placement of the recordsdata that it finds. Use the -ls command as a substitute of -print and also you get the sort of particulars you’d anticipate while you listing recordsdata with the ls -l command.

$ discover . -name myfile -ls
    36417      4 -rw-r--r--   1 shs      shs       188 Jun 10 09:57 ./checks/eg/myfile
    36418      4 -rw-r--r--   1 shs      shs        83 Jun 10 09:57 ./checks/myfile

Perceive that beginning places don’t must be relative. You’ll be able to all the time use an entire path like /house/jdoe or /usr/native/bin wherever you’re sitting within the file system supplied you have got learn entry to these places or use the sudo command to offer you root-level entry.

Discovering recordsdata by partial title

To search out in another way named recordsdata that share just some portion of their filenames, enclose the shared portion of the file names in a string utilizing quotes and use asterisks to specify the situation of the variable parts of the file names (e.g., “*txt“ to seek out recordsdata with names that finish in “txt”). Within the command beneath, we discover recordsdata that begin with “zip”.

$ discover /usr/bin -name "zip*"
/usr/bin/zipgrep
/usr/bin/zipinfo
/usr/bin/zip
/usr/bin/zipcloak
/usr/bin/zipnote
/usr/bin/zipsplit

Discovering recordsdata by age

To search out recordsdata which have been modified inside the final 24 hours, use a command like this with the -mtime (modification time) possibility:

$ discover . -mtime 0 -ls
     3060      0 drwx------   1 shs      shs          3050 Jun 10 10:35 .
    36415      0 drwxr-xr-x   1 shs      shs            16 Jun 10 09:54 ./checks
    36416      0 drwxr-xr-x   1 shs      shs            12 Jun 10 09:53 ./checks/eg

The 0 in that command means “0 days previous” (i.e., lower than a day previous). You may as well use -mtime with constructive and adverse indicators. For instance -mtime -2 or -mtime +4. Utilizing -mtime -1 means “lower than sooner or later previous”. Utilizing -mtime +1 means “greater than sooner or later previous”, so the outcomes can be dramatically totally different.  For those who’re on the lookout for a file that you simply had been engaged on every week in the past, a command like this may work simply advantageous:

$ discover . -mtime -8 -ls

One other straightforward method to listing not too long ago modified recordsdata is to make use of the ls command. The -ltr arguments characterize an extended itemizing (-l), type in newest-first time order (-t) and reverse the order (-r). Utilizing these choices, the recordsdata will likely be listed with probably the most not too long ago modified recordsdata proven final.

See also  AlphaSense launches its own Deep Research for the web AND your enterprise files — here's why it matters

Source link

TAGGED: files, find, Linux
Share This Article
Twitter Email Copy Link Print
Previous Article Creating 3D shapes from a flat surface using LEDs Creating 3D shapes from a flat surface using LEDs
Next Article Kominfo Creates AI Rules, Invites Stakeholders for Discussion - Ruetir Kominfo Creates AI Rules, Invites Stakeholders for Discussion – Ruetir
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Your Trusted Source for Accurate and Timely Updates!

Our commitment to accuracy, impartiality, and delivering breaking news as it happens has earned us the trust of a vast audience. Stay ahead with real-time updates on the latest events, trends.
FacebookLike
TwitterFollow
InstagramFollow
YoutubeSubscribe
LinkedInFollow
MediumFollow
- Advertisement -
Ad image

Popular Posts

Stargate Hydrogen Raises Investment From Repsol

Stargate Hydrogen, a Tallinn, Estonia-based supplier of alkaline electrolysers for the inexperienced hydrogen manufacturing, obtained…

July 30, 2025

Power, Cooling, and Infrastructure Challenges

Every single day, headlines tout the transformative potential of next-gen computing, promising to reshape industries,…

February 20, 2025

How AI is transforming problem-solving

A brand new research by researchers at King’s Business School and Wazoku has revealed that…

October 7, 2024

Gemini 2.0 Flash Thinking now has memory and Google apps integration

Be a part of our every day and weekly newsletters for the most recent updates…

March 17, 2025

European cloud group invests to create what it dubs “Trump-proof cloud services”

However analysts have questioned whether or not the Microsoft transfer really addresses these European enterprise…

April 2, 2025

You Might Also Like

AI training
Global Market

Cybersecurity skills matter more than headcount in an AI era: ISC2 study

By saad
shutterstock 2291065933 space satellite in orbit above the Earth white clouds and blue sea below
Global Market

Aetherflux joins the race to launch orbital data centers by 2027

By saad
Data center / enterprise networking
Global Market

P4 programming: Redefining what’s possible in network infrastructure

By saad
Why data centre megadeals must prove their value
Global Market

Why data centre megadeals must prove their value

By saad
Data Center News
Facebook Twitter Youtube Instagram Linkedin

About US

Data Center News: Stay informed on the pulse of data centers. Latest updates, tech trends, and industry insights—all in one place. Elevate your data infrastructure knowledge.

Top Categories
  • Global Market
  • Infrastructure
  • Innovations
  • Investments
Usefull Links
  • Home
  • Contact
  • Privacy Policy
  • Terms & Conditions

© 2024 – datacenternews.tech – All rights reserved

Welcome Back!

Sign in to your account

Lost your password?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
You can revoke your consent any time using the Revoke consent button.