Hello all,
I have a directory filling up. I need to determine the size of the files in the directory. How do I do that, what command should I run when I am in the directory?
List files from smallest to largest:
Linux:
More General:
To clean up, you'll probably use find, maybe something like -
I'm new to HP-UX and am looking for the command that will allow to me determine the total size of listed files. I'm being told that my backup selection is exceeding my tape drive size and need to determine how much information is being backed up.
Help? (3 Replies)
Hello!
I'm trying to find out the total file size of a subset list in a directory. For example, I do not need to know the total file size of all the files in a directory, but I need to know what the total size is of say, "ls -l *FEB08*" in a directory. Is there any easy way of doing this?
... (3 Replies)
HI,
Can any tell me how to filter the list of files greater than the size specified by user. The size should be provided by user as an input.
Regards
shiva (6 Replies)
If I have a file x.txt that is 8 bytes... I want to enter
>> x.txt
8
I've played around with ls, and du... and they always list the file name. (2 Replies)
Hi,
I have directories with name like:
aaa
bbb
ccc
...
I would like to to see which directories are the largest and then list the files within each. I have success using:
du -ks * | sort -rin | head -n 20
which gives me an output like:
120 bbb
27 ccc
3 aaa
...
I would like... (3 Replies)
i have a files in the dir as below.
ls -lR ./.snapshot
5649600512 ./.snapshot/backup/data20080707
6006923264 ./.snapshot/backup/data20080708
5321129984 ./.snapshot/backup/data20080709
6686597120 ./.snapshot/backup/data20080710
7312855040 ... (4 Replies)
Hello,
I have a flat file with a list of files with the path to the file and I am attempting to calculate the filesize for each one; however xargs isn't playing nicely and I am sure there is probably a better way of doing this.
What I envisioned is this:
cat filename|xargs -i ls -l {} |awk... (4 Replies)
to get the list of file name with size
Example:
rwxrwxrwx 1 cm x 562KB Nov 6 19:22 a
rwxrwxrwx 1 cm x 562MB Nov 6 19:22 a
edit by bakunin: Please view this code tag video for how to use code tags when posting code and data. (5 Replies)
how to get the file name list with size descriptive in hp-ux
Required output:
permission link user group size(with MB,KB,GB etc) date time name (7 Replies)
I used to use ls -l cut to detrmine file size, and google searches didn't come up with anything else but 'stat' which doesn't appear on HPUX.
I discovered the humble 'wc -c' which does this job very neatly, and thought I would share it. (7 Replies)
Discussion started by: tbochan
7 Replies
LEARN ABOUT CENTOS
mkfs.cramfs
EXAMPLE(8) System Administration EXAMPLE(8)NAME
mkfs.cramfs - make compressed ROM file system
SYNOPSIS
mkfs.cramfs [options] directory file
DESCRIPTION
Files on cramfs file systems are zlib-compressed one page at a time to allow random read access. The metadata is not compressed, but is
expressed in a terse representation that is more space-efficient than conventional file systems.
The file system is intentionally read-only to simplify its design; random write access for compressed files is difficult to implement.
cramfs ships with a utility (mkcramfs) to pack files into new cramfs images.
File sizes are limited to less than 16MB.
Maximum file system size is a little under 272MB. (The last file on the file system must begin before the 256MB block, but can extend past
it.)
ARGUMENTS
The directory is simply the root of the directory tree that we want to generate a compressed filesystem out of.
The file will contain the cram file system, which later can be mounted.
OPTIONS -v Enable verbose messaging.
-E Treat all warnings as errors, which are reflected as command return value.
-b blocksize
Use defined block size, which has to be divisible by page size.
-e edition
Use defined file system edition number in superblock.
-N big, little, host
Use defined endianness. Value defaults to host.
-i file
Insert a file to cramfs file system.
-n name
Set name of the cramfs file system.
-p Pad by 512 bytes for boot code.
-s This option is ignored. Originally the -s turned on directory entry sorting.
-z Make explicit holes. Use of this option will require 2.3.39 kernel, or newer.
-V Display version information and exit.
-h Display help and exit.
EXIT STATUS
0 success
8 operation error, such as unable to allocate memory
SEE ALSO mount(8), fsck.cramfs(8)AVAILABILITY
The example command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils
/util-linux/>.
util-linux April 2013 EXAMPLE(8)