Linux Interview Question: How to Find Largest or Biggest file in a Linux Directory | In Hindi

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • ‪@MPrashant‬
    #mprashant #linux #interviewquestions
    Alright dosto, ki haal chaal
    In this video I have covered, How to find biggest or largest file on Linux server in a given directory?
    this is a most asked interview question for Linux and also an important Linux concept to understand and useful in day to day life and scripting.
    To find biggest or largest file on linux server we can use the following methods:
    using find command
    using du command
    using ls command
    ----------------------------------------------------------------------------------
    linux interview questions,
    linux interview questions and answers,
    linux interview questions for freshers,
    linux interview study
    In this video, we'll be discussing how to find the largest or biggest file in a directory in Linux. We'll be using the command line and Hindi to explain the technique.
    If you're looking to gain some experience working with the Linux command line, this video is for you! In this video, we'll be discussing how to use the command line to find the largest or biggest file in a directory. We'll be using Hindi to explain the technique, so be sure to pay attention! After watching this video, you'll be able to use the command line to find large files in a directory with ease.
    in this video, we'll be answering a Linux interview question about how to find the largest or biggest file in a directory in Linux. This question is common on various Linux interview questions, and we hope to help you learn the answer!
    If you're looking to score a Linux interview, this is a question you need to be able to answer! In this video, we'll walk you through the steps necessary to find the largest or biggest file in a directory in Linux. We'll also include a Hindi translation so you can be sure to understand the answer correctly!
    In this video, we are going to learn how to find the largest or biggest file in a directory in Linux. This is an important question to know for any Linux interviewer and is important for any software engineer.
    We will be using the du command to find the largest files in a directory. We will also be using the filter option to show us only the largest files. Finally, we will learn how to output the information in a human readable format.
    So, in this video, we are going to learn how to find the largest file in a directory in Linux. We will be using the du command, the filter option and the human readable format to do this.
    Linux exam
    Linux interview study
    linux interview questions and answers
    linux interview questions and answers for freshers
    linux interview
    linux interview questions
    top linux interview questions
    linux interview questions for freshers
    linux interview study
    linux interview preparation
    best linux interview questions
    Linux questions and answers
    Linux qna
    linux job interview questions
    Linux questions
    linux quiz
    linux exam
    60 Linux questions
    Linux job question
    Linux questions for job interview
    Linux most useful commands
    Linux most useful questions
    Linux questions for job interview
    Linux Job questions
    Linux interview questions 2022
    Best Linux video
    Best Linux tutorial for beginners
    Linux viral videos
    Linux best channel
    Best channel to learn Linux
    linux tutorial for beginners,
    linux command line,
    linux tutorial,
    linux interview questions,
    linux interview,
    linux interview questions and answers,
    linux interview questions for freshers
    ,linux interview study
    ,biggest file on linux,
    linux largest file
    ,largest file on linux
    ,large file in linux
    ,linux large file,
    linux big file
    ,how to find largest file on linux server,
    find largest file using find command,
    find largest file using du command
    linux interview questions and answers for experienced

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

  • @techyrecon7922
    @techyrecon7922 Год назад +6

    after seeing first command i was literally like "kyu hila dala na" but at the end of the video everything were easy nice explanation bhaiya 😎😎

  • @the_chessian
    @the_chessian Год назад +1

    thanks for this keyword - maxdepth 🤗
    this one is from my side 😇 find . -maxdepth 1 -type f -exec ls -lhS {} + | head -1
    or
    find . -maxdepth 1 -type f -exec ls -lhS {} + | head -1 | awk '{print $5, $9}'

  • @gautamraja2012
    @gautamraja2012 Год назад +2

    Really appreciate your effort .I am watching all your videos.

  • @varnikaajain5004
    @varnikaajain5004 Год назад +1

    I can't express in words how much your videos are helping me😊

  • @prashantdgabhane4526
    @prashantdgabhane4526 Год назад +5

    Sir ji ek video ap
    How to do troubleshoot in Linux server
    ispe bana do

  • @evergreen1612
    @evergreen1612 4 месяца назад +1

    great brother✌✌

  • @nikhiltyagi7706
    @nikhiltyagi7706 Год назад +2

    I like the way you teach .Could you able to share the notes in one video as well ?

    • @MPrashant
      @MPrashant  Год назад +2

      thanks for the feedback!, I will try to include notes as well

    • @targetachiever5014
      @targetachiever5014 Год назад +1

      Please request you sir that will be helpful

  • @nitinjan18
    @nitinjan18 6 месяцев назад +1

    Excellent

  • @pawaryash007
    @pawaryash007 Год назад +1

    Useful. Thank you.

  • @audumbarbhosale5217
    @audumbarbhosale5217 Год назад +1

    Hi Prashant sir please make video on Debugging, deployment and Log Analysis

  • @pratikbhor5519
    @pratikbhor5519 Год назад +2

    Thank you so much Prashant sir your teaching style is very superb 🔥

    • @MPrashant
      @MPrashant  Год назад +1

      It's my pleasure, and thanks for the feedback!

  • @PrashantChaudhary-ye3bc
    @PrashantChaudhary-ye3bc Год назад +1

    Why we didn't expand the ls command to ls -lsh , to sort it by size, instead of adding new command after pipe

    • @MPrashant
      @MPrashant  Год назад

      Yeah we could expand that as well

  • @shivadasdey7019
    @shivadasdey7019 Месяц назад

    I have concern here instead of awk command can we use cut to cut that particular field

    • @MPrashant
      @MPrashant  Месяц назад

      Yes we can use Cut command too

  • @hash.e.d
    @hash.e.d 10 месяцев назад

    Also confirm how to find the file which is having maximum size in whole server.. i tried below but unable to understand the output.
    -r--------. 1 root root 128T Oct 10 08:07 kcore
    [root@localhost bin]# find / -exec ls -lh {} \; |sort -k5rh | head -1

  • @naveen.singhh
    @naveen.singhh Год назад +2

    Ls -Sr | tail -1

    • @naveen.singhh
      @naveen.singhh Год назад +1

      But bro..
      Ls -Sr | tail -1
      Will do the job

    • @MPrashant
      @MPrashant  Год назад

      There may be different ways to do a task 😀

    • @MPrashant
      @MPrashant  Год назад +1

      Only difference is
      Find command gives you more flexibility

  • @eurekamani6874
    @eurekamani6874 Год назад

    Awesome explanation

  • @karimmulla5452
    @karimmulla5452 Год назад

    You are the best as always

  • @surajpawar550
    @surajpawar550 7 месяцев назад +1

    ls -lrta|sort -nk5

  • @luciferkhan7906
    @luciferkhan7906 Год назад

    Hello bro i am have a question ?
    How to set temprory prompt on terminal with the help of shell scripting means when we execute script so our prompt set on terminal whatever we give in prompt.Please give me reply if you know ans

    • @MPrashant
      @MPrashant  Год назад

      You can use 'sleep' like for given no. of seconds or min (as you mentioned temporary)

  • @veriverithanam2867
    @veriverithanam2867 Год назад

    Keep posting 🥰🥰

  • @HikeWithAK
    @HikeWithAK Год назад +1

    Sir sirf log file find krna ho uske liye kaise karenge please reply

    • @MPrashant
      @MPrashant  Год назад

      For only searching log file, you can use wilcard etc
      example: *.log files only

  • @Unknown-rh5jh
    @Unknown-rh5jh Год назад +1

    awk -F/'{print $NF}' just by using this at last it gives only file name no need for extra
    awk '{print $NF}'.What say?

  • @explorer15194
    @explorer15194 Год назад +1

    plz share sql tutorials also

    • @MPrashant
      @MPrashant  Год назад

      I am trying to best

    • @veriverithanam2867
      @veriverithanam2867 Год назад

      If you make video on SQL I'll definitely understand that topic/concept/usage🤣😵‍💫

  • @aniketvishwakarma1119
    @aniketvishwakarma1119 Год назад +1

    Nohup air sandbox run pr video chaeyh sir

  • @MahendraKumar-zc3xx
    @MahendraKumar-zc3xx Год назад +1

    I am laughed alot at the time hiladiya na

  • @ashishgupta3788
    @ashishgupta3788 Год назад

    Why am not getting result as this way?
    find / -size +50M -exec ls -lSh {} \;
    Its not sorting as per size from descending to ascending.

  • @akshayfitnessseries7231
    @akshayfitnessseries7231 2 месяца назад

    Sir pdf link send kariye na

  • @mohdaadil9852
    @mohdaadil9852 10 месяцев назад

    Yeh sab kya dekhna pad rha he