Listing files by size
There are lots of ways to list files and sort by their size with the help of pipe operator, for example:
ls -l | sort -n -k 5
But ls command already has builtin support for this:
ls --sort=size -l
you can reverse the list with -r option:
ls --sort=size -lr
or you may add -h (human-readable) parameter for good looking:
ls --sort=size -lrh
- 0 Comment
- Murat Demirten
- 24 Jun 2008, 15:34
-
You must be login first or sign-up for an account to post comments.
Maybe you should look at these also:
USERBOX
CATEGORIES
MOST READ TODAY
- Redirecting tcp / udp ports with socat
- Syntax highlighting in less
- Disabling reverse dns lookups in ssh
- Passwordless sudo setup
- Users with /bin/false shell to login on vsftpd
- Scp resume
- Using lsof utility
- Enabling remote desktop on a VirtualBox Machine
- XFS Filesystem has duplicate UUID problem
- Replication in MySQL
LAST ADDED
- Using iPhone internet sharing over bluetooth under Linux
- Using USB sound card with amarok
- Multi-conditional search and replace (clearing a ftp trojan script example)
- Disabling ipv6 functionality
- How to convert a mp3 file
- How to choose the fastest Debian mirror
- Disabling reverse dns lookups in ssh
- Rewriting destination ip address
- Deleting A File By It's Inode Value
- Learning which libraries are used for a binary
