have 500GB SSD installed on my Linux server. My web server is running out of the disk space. I need to find a biggest or largest file concerning file size on the disk. How do I find largest file in a directory recursively using the find command?
have a large number of files stored in ~/Downloads/ directory. How do I sort and print sizes in human readable format using du -h
command under Ubuntu Linux LTS version 12.04 or any other Linux distributions?
have a directory with many files. I am trying to write a shell script that will only show first 10 or 20 lines of a file. How do I display first 10 or 20 lines of a file on Linux or Unix-like systems?
ow do I display first line of a text file called foo.txt on Linux or Unix-like operating systems? Continue reading “Linux / Unix: Display First Line of a File”
ow do I find the largest top files and directories on a Linux or Unix like operating systems?