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

  Рет қаралды 22,952

M Prashant

M Prashant

Күн бұрын

‪@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 Жыл бұрын
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 😎😎
@MPrashant
@MPrashant Жыл бұрын
Glad it helped 😀
@the_chessian
@the_chessian Жыл бұрын
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}'
@MPrashant
@MPrashant Жыл бұрын
great!
@gautamraja2012
@gautamraja2012 Жыл бұрын
Really appreciate your effort .I am watching all your videos.
@MPrashant
@MPrashant Жыл бұрын
Thanks a ton!
@varnikaajain5004
@varnikaajain5004 Жыл бұрын
I can't express in words how much your videos are helping me😊
@MPrashant
@MPrashant Жыл бұрын
It's my pleasure!
@nitinjan18
@nitinjan18 8 ай бұрын
Excellent
@MPrashant
@MPrashant 8 ай бұрын
Thanks
@prashantdgabhane4526
@prashantdgabhane4526 Жыл бұрын
Sir ji ek video ap How to do troubleshoot in Linux server ispe bana do
@prashantdgabhane4526
@prashantdgabhane4526 Жыл бұрын
What is troubleshooting
@MPrashant
@MPrashant Жыл бұрын
sure, thanks for the suggestion.. Video on troubleshooting will be coming soon :)
@prashantdgabhane4526
@prashantdgabhane4526 Жыл бұрын
Thanks sir ji
@veriverithanam2867
@veriverithanam2867 Жыл бұрын
@@MPrashant waiting
@veriverithanam2867
@veriverithanam2867 Жыл бұрын
Also plz try to post most common incidents/issue faced by a Linux Admin
@evergreen1612
@evergreen1612 6 ай бұрын
great brother✌✌
@pawaryash007
@pawaryash007 Жыл бұрын
Useful. Thank you.
@MPrashant
@MPrashant Жыл бұрын
Glad it was helpful!
@nikhiltyagi7706
@nikhiltyagi7706 Жыл бұрын
I like the way you teach .Could you able to share the notes in one video as well ?
@MPrashant
@MPrashant Жыл бұрын
thanks for the feedback!, I will try to include notes as well
@targetachiever5014
@targetachiever5014 Жыл бұрын
Please request you sir that will be helpful
@shivadasdey7019
@shivadasdey7019 3 ай бұрын
I have concern here instead of awk command can we use cut to cut that particular field
@MPrashant
@MPrashant 3 ай бұрын
Yes we can use Cut command too
@pratikbhor5519
@pratikbhor5519 Жыл бұрын
Thank you so much Prashant sir your teaching style is very superb 🔥
@MPrashant
@MPrashant Жыл бұрын
It's my pleasure, and thanks for the feedback!
@audumbarbhosale5217
@audumbarbhosale5217 Жыл бұрын
Hi Prashant sir please make video on Debugging, deployment and Log Analysis
@MPrashant
@MPrashant Жыл бұрын
This is noted, I will try soon!
@audumbarbhosale5217
@audumbarbhosale5217 Жыл бұрын
Thanks sir please try it soon
@PrashantChaudhary-ye3bc
@PrashantChaudhary-ye3bc Жыл бұрын
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
@surajpawar550
@surajpawar550 9 ай бұрын
ls -lrta|sort -nk5
@eurekamani6874
@eurekamani6874 Жыл бұрын
Awesome explanation
@MPrashant
@MPrashant Жыл бұрын
Thanks!
@karimmulla5452
@karimmulla5452 Жыл бұрын
You are the best as always
@MPrashant
@MPrashant Жыл бұрын
Thank you 😊
@hash.e.d
@hash.e.d Жыл бұрын
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 Жыл бұрын
Ls -Sr | tail -1
@naveen.singhh
@naveen.singhh Жыл бұрын
But bro.. Ls -Sr | tail -1 Will do the job
@MPrashant
@MPrashant Жыл бұрын
There may be different ways to do a task 😀
@MPrashant
@MPrashant Жыл бұрын
Only difference is Find command gives you more flexibility
@HikeWithAK
@HikeWithAK Жыл бұрын
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
@veriverithanam2867
@veriverithanam2867 Жыл бұрын
Keep posting 🥰🥰
@MPrashant
@MPrashant Жыл бұрын
sure thing!
@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)
@explorer15194
@explorer15194 Жыл бұрын
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 Жыл бұрын
Nohup air sandbox run pr video chaeyh sir
@MPrashant
@MPrashant Жыл бұрын
noted
@Unknown-rh5jh
@Unknown-rh5jh Жыл бұрын
awk -F/'{print $NF}' just by using this at last it gives only file name no need for extra awk '{print $NF}'.What say?
@MPrashant
@MPrashant Жыл бұрын
Yeah am from MP :)
@Unknown-rh5jh
@Unknown-rh5jh Жыл бұрын
@@MPrashant matlab?
@MahendraKumar-zc3xx
@MahendraKumar-zc3xx Жыл бұрын
I am laughed alot at the time hiladiya na
@MPrashant
@MPrashant Жыл бұрын
Haha
@akshayfitnessseries7231
@akshayfitnessseries7231 4 ай бұрын
Sir pdf link send kariye 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.
@mohdaadil9852
@mohdaadil9852 Жыл бұрын
Yeh sab kya dekhna pad rha he
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,6 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 88 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 43 МЛН
Master the Basics of Linux Commands: ls, cp, mv, touch, and More!
35:18
Level 2 - Linux Interview Questions and Answers | Tech Arkit
26:08
Linux Interview Questions and Answers with Practical - Real Time
18:57