Linux - Find Files in Linux (find, whereis)

Поделиться
HTML-код
  • Опубликовано: 27 авг 2024
  • Find code and diagrams at: www.EliTheComp...
    To find files and configurations in Linux you can use the find and whereis commands.
    Whereis who’s you the folders where data for applications are stored. Find allows you to search for files and folders on the system.
    Whereis: manpages.ubuntu...
    Find: manpages.ubuntu...
    Whereis
    whereis php - shows where PHP files are stored.
    You can run whereis from any directory and do not need to use sudo.
    Find
    Find allows you to search your system for files and folders. If you receive permission issues or an odd response try using sudo.
    sudo find / -name ‘test.txt’ - command / location to start from (if left blank find starts from the folder you are in / argument / file being searched for.
    -name - case sensitive search
    find -name ‘test.txt’
    -iname - case insensitive search
    find -iname ‘test.txt’
    -user - searches based on user owner
    find -user ‘bob’
    -cmin - searches based on time since a file was modified
    find -cmin -10

Комментарии • 29

  • @awhooley
    @awhooley 5 лет назад +8

    Seriously Eli, thank you so much for this. I'm loving this series.. it's great to see someone who is actually explaining Linux as a normal guy not some stuck up dev... thanks again man!

  • @mustafadarrar5880
    @mustafadarrar5880 5 лет назад +1

    HI Eli - I used to follow your channel years ago, learn a lot from you, but contents of your channel changed after you came back from a road trip. Last I watched your video, you were dropping f-bomb, more power to you but not the stuff I want to watch on RUclips. Today, so good to see you talking about technology again.

  • @tonebaxter
    @tonebaxter 4 года назад +2

    Not to oversimplify it but just remember your config files are always found in the /etc folder and to find your last modified files including hidden files use ls -lrt ( just food for thought)

  • @gh8447
    @gh8447 5 лет назад

    Good to see you doing instructional videos again!

  • @thesimpleruless9370
    @thesimpleruless9370 5 лет назад

    Thank you for the value last 5 years

  • @soldadopreciso
    @soldadopreciso 5 лет назад

    Hello , Eli greetings from Ecuador, thanks you for all your interesting work and contribution to the knowledge of many people around the world.

  • @camb546
    @camb546 5 лет назад

    If you need to copy a file from anywhere in the system to cwd, then do cp $(locate file.txt) . You can also pretty much use any command with this syntax like chmod or even change the locate to a find.

  • @brandonfarfan1978
    @brandonfarfan1978 2 года назад

    Good lesson. Thanks.👍

  • @wickedwebdesignri2009
    @wickedwebdesignri2009 5 лет назад +2

    Ya know Eli, I could have used this like 10 years ago when I first found your videos ;) Instead I took the "Try Harder" route.

    • @30minutesLess
      @30minutesLess 4 года назад

      “rEaDThEmAnUaL again”... you aren’t kidding

  • @samthomas8128
    @samthomas8128 4 года назад

    I like your videos. Keep up the good work!

  • @marianorleans1925
    @marianorleans1925 4 года назад

    Thanks for the clear explanations.

  • @SkyFly19853
    @SkyFly19853 5 лет назад

    A very very very useful tutorial...
    💯💯💯💯💯

  • @thesimpleruless9370
    @thesimpleruless9370 5 лет назад

    Welcome back mr E

  • @debeeriz
    @debeeriz 5 лет назад

    thanks just what l wanted to know, are the quotation marks neccessary, mine seems to work without them

  • @bradolson8242
    @bradolson8242 5 лет назад

    Aren't .ini files a windows thing? I've seen them in my Win 10 box but not in my Linux Boxes.

    • @bradolson8242
      @bradolson8242 5 лет назад

      I guess I have no PHP files on my stuff.

  • @arult3715
    @arult3715 5 лет назад

    Nice video 👌

  • @samben6580
    @samben6580 4 года назад

    Great content

  • @camb546
    @camb546 5 лет назад

    Protip: do a compgen -c to list all available binaries

  • @ukaszwaligorski2244
    @ukaszwaligorski2244 5 лет назад

    Important video. A bit too long but does the job

    • @FreeER
      @FreeER 5 лет назад

      That's what the description is for

  • @6383514
    @6383514 5 лет назад

    Fear enough 10x

  • @smithroger723
    @smithroger723 5 лет назад

    1st like..... 1st comment yayyyy......🤙🤙🤙👍👍