Sponsored Content
Full Discussion: how to use "size" command???
Top Forums UNIX for Dummies Questions & Answers how to use "size" command??? Post 302279682 by nsharath on Friday 23rd of January 2009 01:32:26 PM
Old 01-23-2009
Bug !!! comparing SIZES !!!

Hello sir,
I did understand that they are only for object files.
My target was to compare txt files and their corresponding .gz,.z files to show the difference in the size.
I used :-
Quote:
ls -s
But still I am not able to see the difference in blocks.When I did "ls -l" I DISCOVERED that .z,.gz are larger that the .txt file.Can you tell me how to compress them?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Maximum input file size in "Diff" Command

Hello, Can anyone let me know what is the maximum file size that can be given as input for the "Diff" Command in Unix? I have a file size as large as 28MB and which can also increase. Will I face any issues with such a file size. If yes, What is the other alternative. Thanks in advance for... (1 Reply)
Discussion started by: Neeraja
1 Replies

2. UNIX for Advanced & Expert Users

Command similar to "touch" for modify File size

Hi All, I'm trying to find a command like similar to "touch" which would let me change the file size property. For ex: I have a file of size 1MB using the command i would like to set/update the size something like 1KB. Is it possible? Is there any such command which would accomplish this... (3 Replies)
Discussion started by: sriharshareddyk
3 Replies

3. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

4. UNIX for Advanced & Expert Users

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

5. Shell Programming and Scripting

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

6. Shell Programming and Scripting

Delete files older than "x" if directory size is greater than "y"

I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y" #!/bin/bash du -hs $1 while read SIZE ENTRY do if ; then find $1 -mtime +$2 -exec rm -f {} \; echo "Files older than $2 days deleted" else echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies

7. Shell Programming and Scripting

Retrieve RAM memory size from "top" command output

Hi, I am trying to get the system RAM size from "top" command's output by the following but it is not working. top | sed "s/^Mem.**\(*\), *//" (10 Replies)
Discussion started by: royalibrahim
10 Replies

8. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

9. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

10. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
fsvoladm(1M)															      fsvoladm(1M)

NAME
fsvoladm - VxFS volume administration utility SYNOPSIS
[bias] DESCRIPTION
The utility performs administrative tasks, such as adding, removing, resizing, and encapsulating volumes in a specified VERITAS File Sys- tem. mount_point specifies the directory on which the file system is mounted. volname specifies the volume within the volume set. By default, size, bias, and newsize are specified in units of disk blocks bytes). However, you can append or to the number to indicate that the value is in kilobytes, megabytes, gigabytes, or terabytes, respectively. Keywords Adds a volume to a file system. The new space is available for allocation. Removes an encapsulated volume from a file system and restores the original contents of the volume. This operation can fail if there were significant changes to a file's allocations on disk since encapsulation. A volume encapsulated with a bias cannot be deencapsulated. Adds a volume to a file system, making the contents of that volume, starting from offset bias, available as a file instead of free space. The size of the encapsulated file is size - bias. bias must be smaller than size, and be a multiple of the file system block size. The default value of bias is 0. Displays the volumes in a file system. Removes a volume from a file system. Resizes one of the volumes in a file system. In some circumstances, the command cannot resize a 100% full file system due to lack of space for updating structural information. Check VxFS file systems on a regular basis; increase their size if they approach 100% capacity. This problem can also occur if the file system is very busy. Free up space or reduce activity on the file system and try the resize again. EXAMPLES
The following command adds the volume that is 10 gigabytes in size, to the file system The following command removes the volume from the file system The following command resizes the volume in the file system from its current size to 20 GB: The following command displays the volumes in the file system The following command encapsulates the volume The volume is ten gigabytes in size, resides in the file system and has the file name The following command de-encapsulates the volume that was encapsulated in the previous example: SEE ALSO
df_vxfs(1M), fsapadm(1M), fsvoladm(1M), mount_vxfs(1M), vxvset(1M), fsvoladm(1M)
All times are GMT -4. The time now is 09:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy