Unix commands
Find Largest Directories in Linux
If you want to display the biggest directories in the current working directory, Some of you would like to display the above result in human readable format. i.e you might want to display the largest files in KB, MB, or GB. 1
What is running on this port?
Using netstat Command
netstat (network statistics) command is used to display information concerning network connections, routing tables, interface stats and beyond.2
Using lsof Command
lsof command (LiSt Open Files) is used to list all open files on a Linux system2
Find a file
To find all files in current directory3:
and to delete all of those files 5:
Find a directory
To find all directory from the current location 6
and to delete this folders 7:
Find a file that contains a string
find files from here that contain "text-to-find"4
How to Find Out Top Directories and Files (Disk Space) in Linux, by Senthil Kumar on Jan 16, 2016. ↩
3 Ways to Find Out Which Process Listening on a Particular Port, by Aaron Kili on July 11, 2017 ↩
UNIX Find A File Command, on September 28, 2017 ↩
How do I find all files containing specific text on Linux?, by ArchanaNagur on Jul 13, 2018
How can I recursively delete all files of a specific extension in the current directory?, by Radu Rădeanu on November 15, 2013 ↩
How to find and delete directory recursively on Linux or Unix-like system, by Vivek Gite on December 21, 2022
Last updated