Friday, 10 Apr 2026
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  Red Hat extends Lightspeed AI to Linux, OpenShift

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

Amazon confirms employee data breach, but says it’s limited to contact info

Amazon says an information breach uncovered the e-mail addresses, cellphone numbers, and constructing areas linked…

November 11, 2024

Hewlett Packard Enterprise and TELUS to pioneer Canada’s first 5G Open RAN network

Hewlett Packard Enterprise has introduced a collaboration with TELUS to construct Canada’s first 5G open…

February 28, 2024

Verne and OCF power ENGYS’ sustainable HPC deployment

Verne, supplier of sustainable knowledge middle options for prime depth computing, has introduced the profitable…

June 25, 2024

Versatile fibers offer improved energy storage capacity for wearable devices

Carbon nanotube fibers fabricated into fiber-like supercapacitors (FSSCs) reveal their vitality storage capabilities and wearable…

April 20, 2024

JLL Predicts 2025 as a Transformative Year for AI-Driven Data Centers

World business actual property and funding administration agency JLL has highlighted 2025 as a pivotal…

January 28, 2025

You Might Also Like

EMEA data centre vacancy hits record low as AI demand outpaces supply
Global Market

EMEA data centre vacancy hits record low as AI demand outpaces supply

By saad
Germany only - Google erweitert Gemini-Portfolio mit kosteneffizienten Modellen
Global Market

Google owns the most AI compute, and it built it its way

By saad
Zoho confirms launch plans for UK data centre
Global Market

Zoho confirms launch plans for UK data centre

By saad
Cloud Hyperscaler Concept - Hyperscale Computing - Cloud Architecture that Scales with Increasing Demand - 3D Illustration
Global Market

Neoclouds gain momentum in a supply-constrained world

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.