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
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 😎😎
Glad it helped 😀
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}'
great!
Really appreciate your effort .I am watching all your videos.
Thanks a ton!
I can't express in words how much your videos are helping me😊
It's my pleasure!
Sir ji ek video ap
How to do troubleshoot in Linux server
ispe bana do
What is troubleshooting
sure, thanks for the suggestion..
Video on troubleshooting will be coming soon :)
Thanks sir ji
@@MPrashant waiting
Also plz try to post most common incidents/issue faced by a Linux Admin
great brother✌✌
I like the way you teach .Could you able to share the notes in one video as well ?
thanks for the feedback!, I will try to include notes as well
Please request you sir that will be helpful
Excellent
Thanks
Useful. Thank you.
Glad it was helpful!
Hi Prashant sir please make video on Debugging, deployment and Log Analysis
This is noted, I will try soon!
Thanks sir please try it soon
Thank you so much Prashant sir your teaching style is very superb 🔥
It's my pleasure, and thanks for the feedback!
Why we didn't expand the ls command to ls -lsh , to sort it by size, instead of adding new command after pipe
Yeah we could expand that as well
I have concern here instead of awk command can we use cut to cut that particular field
Yes we can use Cut command too
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
Ls -Sr | tail -1
But bro..
Ls -Sr | tail -1
Will do the job
There may be different ways to do a task 😀
Only difference is
Find command gives you more flexibility
Awesome explanation
Thanks!
You are the best as always
Thank you 😊
ls -lrta|sort -nk5
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
You can use 'sleep' like for given no. of seconds or min (as you mentioned temporary)
Keep posting 🥰🥰
sure thing!
Sir sirf log file find krna ho uske liye kaise karenge please reply
For only searching log file, you can use wilcard etc
example: *.log files only
awk -F/'{print $NF}' just by using this at last it gives only file name no need for extra
awk '{print $NF}'.What say?
Yeah am from MP :)
@@MPrashant matlab?
plz share sql tutorials also
I am trying to best
If you make video on SQL I'll definitely understand that topic/concept/usage🤣😵💫
Nohup air sandbox run pr video chaeyh sir
noted
I am laughed alot at the time hiladiya na
Haha
Why am not getting result as this way?
find / -size +50M -exec ls -lSh {} \;
Its not sorting as per size from descending to ascending.
Sir pdf link send kariye na
Yeh sab kya dekhna pad rha he