file descriptors | ls -lart /proc/4515/fd | List files in descending order of size: ls -S | ls -X will group files by extension
[bit@localhost 4235]$ sleep 1000 2>/tmp/errors &
[6] 4515
[bit@localhost 4235]$ ls -lart /proc/4515/fd
total 0
l-wx------. 1 bit bit 64 Oct 17 16:40 2 -> /tmp/errors
lrwx------. 1 bit bit 64 Oct 17 16:40 1 -> /dev/pts/0
lrwx------. 1 bit bit 64 Oct 17 16:40 0 -> /dev/pts/0
dr-xr-xr-x. 9 bit bit 0 Oct 17 16:40 ..
dr-x------. 2 bit bit 0 Oct 17 16:40 .
[bit@localhost 4235]$
List files in descending order of size: ls -S
[6] 4515
[bit@localhost 4235]$ ls -lart /proc/4515/fd
total 0
l-wx------. 1 bit bit 64 Oct 17 16:40 2 -> /tmp/errors
lrwx------. 1 bit bit 64 Oct 17 16:40 1 -> /dev/pts/0
lrwx------. 1 bit bit 64 Oct 17 16:40 0 -> /dev/pts/0
dr-xr-xr-x. 9 bit bit 0 Oct 17 16:40 ..
dr-x------. 2 bit bit 0 Oct 17 16:40 .
[bit@localhost 4235]$
List files in descending order of size: ls -S
Comments
Post a Comment