I want to display directory listing in the order of size. I do not have -S option in my version of UNIX. So I wrote a simple script. But it takes "| sort -n -k5,5" part as file names. Any suggestion?
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Hi, I'm trying to write a ksh script to copy a specified number of files from one directory to another.
The files are named in the convention <switchname>_log.<num> and the numbers are sequential single digit onwards. I figured I could find some parameter for ls which would list the files in... (3 Replies)
Hi ,
I want to list all files in the order of size . Just want to know which files occupies more size and which occupies less size .
Is it possible with ls command ? :)
Thanks,
Arun. (1 Reply)
I want to list all the files in the current directory including those in the subdirectories as well as a single lot in the order of last updated. (Not as separate list given by ls -lRt).
Any suggestion?
Thanks (4 Replies)
How can I list the files in a directory and just show the file size, date stamp, timestamp and file name..
I've been trying to ls -lrt the directory to a file and then use the cut command but I'm not having any luck with getting the proper results.. I thought i could use the -f switch and count... (4 Replies)
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Hi ,
My problem is that I am not able to list all process id of any process.
If you see pstree command it shows many process id under https. But if I run ps command its not listing all the process id for httpd.
It is just listing the PPID and immediate child process id only. I... (4 Replies)
I have a multiple file with the following name
like.
file_0.csv
file_1.csv
file_2.csv
file_3.csv
file_4.csv
file_5.csv
file_6.csv
file_7.csv
file_7.csv
file_8.csv
file_9.csv
file_10.csv
file_11.csv
file_12.csv
file_13.csv
file_14.csv (2 Replies)
Discussion started by: rakesh_arxmind
2 Replies
LEARN ABOUT LINUX
slabtop
SLABTOP(1) Linux User's Manual SLABTOP(1)NAME
slabtop - display kernel slab cache information in real time
SYNOPSIS
slabtop [options]
DESCRIPTION
slabtop displays detailed kernel slab cache information in real time. It displays a listing of the top caches sorted by one of the listed
sort criteria. It also displays a statistics header filled with slab layer information.
OPTIONS
Normal invocation of slabtop does not require any options. The behavior, however, can be fine-tuned by specifying one or more of the fol-
lowing flags:
--delay=n, -d n
Refresh the display every n in seconds. By default, slabtop refreshes the display every three seconds. To exit the program, hit q.
--sort=S, -s S
Sort by S, where S is one of the sort criteria.
--once, -o
Display the output once and then exit.
--version, -V
Display version information and exit.
--help Display usage information and exit.
SORT CRITERIA
The following are valid sort criteria used to sort the individual slab caches and thereby determine what are the "top" slab caches to dis-
play. The default sort criteria is to sort by the number of objects ("o").
The sort criteria can also be changed while slabtop is running by pressing the associated character.
a: sort by number of active objects
b: sort by objects per slab
c: sort by cache size
l: sort by number of slabs
v sort by number of active slabs
n: sort by name
o: sort by number of objects
p: sort by pages per slab
s: sort by object size
u: sort by cache utilization
COMMANDS
slabtop accepts keyboard commands from the user during use. The following are supported. In the case of letters, both cases are accepted.
Each of the valid sort characters are also accepted, to change the sort routine. See the section SORT CRITERIA.
<SPACEBAR>
Refresh the screen.
Q Quit the program.
FILES
/proc/slabinfo
slab information
SEE ALSO free(1), ps(1), top(1), vmstat(8)NOTES
Currently, slabtop requires a 2.4 or later kernel (specifically, a version 1.1 or later /proc/slabinfo). Kernel 2.2 should be supported in
the future.
The slabtop statistic header is tracking how many bytes of slabs are being used and it not a measure of physical memory. The 'Slab' field
in the /proc/meminfo file is tracking information about used slab physical memory.
AUTHORS
Written by Chris Rivera and Robert Love.
slabtop was inspired by Martin Bligh's perl script, vmtop. The procps package is maintained by Albert Cahalan <albert@users.sf.net>.
Please send bug reports to <procps-feedback@lists.sf.net>.
Linux 13 Sep 2003 SLABTOP(1)