Finding the biggest files on linux and creating a function for biggest
Page 1 of 1
Finding the biggest files on linux and creating a function for biggest
Finding the biggest files on linux and creating a function for biggest
Edit .bashrc file
add this to end of file with the other functions!
Save and now type
- Code:
du -ah | sort -hr | head -n 10
Edit .bashrc file
- Code:
sudo gedit ~/.bashrc
add this to end of file with the other functions!
- Code:
function biggest(){
du -ah | sort -hr | head -n 10
echo "Complete!"
}
Save and now type
- Code:
biggest
Re: Finding the biggest files on linux and creating a function for biggest
Other helpful cmds
To find the 10 biggest folders in current directory:
To find the 10 biggest folders in current directory:
- Code:
du -h | sort -hr | head -n 10
- Code:
du -ah | sort -hr | head -n 10
Re: Finding the biggest files on linux and creating a function for biggest
More advanced
linuxhandbook.com/find-biggest-files-linux
linuxhandbook.com/find-biggest-files-linux
Similar topics
» creating a ftp server with linux mint 11
» use linux command line to split files into 7z files
» Finding Primes With Bash On Linux TUT
» Linux File & Folder Basics Creating & Removal
» Creating Space In An Emergency On Linux
» use linux command line to split files into 7z files
» Finding Primes With Bash On Linux TUT
» Linux File & Folder Basics Creating & Removal
» Creating Space In An Emergency On Linux
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum