The size tag has no wiki summary.
24
votes
13answers
8k views
Determine the size of a block device
How can I find out the size of a block device, such as /dev/sda? Running ls -l gives no useful information.
19
votes
3answers
965 views
What does size of a directory mean in output of 'ls -l' command?
What does size of a directory mean in output of ls -l command?
13
votes
1answer
5k views
How can I increase the number of inodes in an ext4 filesystem?
I had a problem (new to me) last week. I have a ext4 (Fedora 15) filesystem. The application that runs on the server suddenly stopped. I couldn't find the problem at first look.
df showed 50% ...
8
votes
5answers
2k views
How to limit log file size using >>
How can I limit the size of a log file written with >> to 200MB?
$ run_program >> myprogram.log
6
votes
1answer
413 views
How to re-size virtual disk with installed Linux system?
I've got hard system configuration there and I don't want to re-install it again but I need more space now.
Current system space is 30GB.
Seems like it's not possible to re-size disk so what I need ...
6
votes
2answers
151 views
du command show a slash after directories?
How to use du command show a slash after directories?
For example:
du -ab /root/test/php-5.4.8/
Result:
1781 /root/test/php-5.4.8/main/internal_functions.c.in
973596 ...
6
votes
5answers
3k views
Keep log file size fixed without logrotate
Is there any way to keep file size of log file fixed without rotating it by a new empty file and deleting (or archiving) the old file. For example, if I set log file maximum size to 1MB, after the ...
5
votes
4answers
1k views
Delete files of certain size range
I want to delete files which size is between certain values. For example I have the following list of files:
-rw-r--r-- 1 smsc sys 558 Apr 30 13:07 stats.sfe.1.20120430130513.xml.Z
-rw-r--r-- 1 smsc ...
5
votes
2answers
8k views
Increasing Screen Size/Resolution on a VirtualBox Instance of Centos
I have VirtualBox instance of Centos 5. The screen size is quite small (800*600) and I'd like to increase it to 1280*1080. Under the Gnome preferences for "Screen Resolution" I only get the option for ...
4
votes
3answers
303 views
Is there a command to list the compressed file sizes for files within a .zip file?
I'd like to see the absolute size in bytes of each file that has been compressed into single zip file. Having read the zip man page, I'm not sure that that utility can do it. This is on Mac OS X.
...
4
votes
1answer
158 views
Why could the size of the “dot file” /. exceed 4096?
Today I found an "empty" directory with a size of 4MB.
It had no visible contents, so I tried ls -lah. This showed me some hidden files (not very large). Searching for the reason why the directory ...
4
votes
2answers
61 views
`du` get different results on different machines for the same folder
I have a folder(which contains a lot of sub-folders and files) on a machine,
I used
du -m
and it shows the disk usage of all sub-folders and files,
anyway, the overall disk usage is 78M
I ...
4
votes
1answer
191 views
find . -size -1GB in Centos
In Centos, I have a text file in my home directory.
The command find . -size -1M doesn't show my file but find . -size -1000k does show it. This problem just seems to be happening when I use the ...
4
votes
0answers
300 views
Raspberry Pi, serial console, minicom, and gnome-terminal
I'm trying to access my raspberry pi via its serial console on the gpio pins. It's working fine through a USB-3.3v serial dongle. However, there's a problem with long lines and long screens not ...
3
votes
3answers
1k views
Find the total size of certain files within a directory branch
Assume there's an image storage directory, say, ./photos/john_doe, within which there are multiple subdirectories, where many certain files reside (say, *.jpg). How can I calculate a summary size of ...
3
votes
2answers
2k views
How to resize an IMG file's partition info?
I made an ISO this way: sudo partimage save /dev/sdc1 /media/56AE8240AE82191F/Backup/xfcefat.iso
The resulting iso file is very small but when mounted I see that it has correctly preserved the ...
3
votes
4answers
646 views
How to get size of a block special file?
I need to be able to determine the size of a block special file.
For example, given /dev/sda, I need a command that will provide the size of the device. (By size I mean capacity, since this is a ...
3
votes
1answer
125 views
Log file not growing beyond a size. Why?
We have a java based web-app running on CentOS 6.0 64bit and it writes out many log files. Some of the files are rotated on daily basis using logrotate using the daily, copytruncate and other few ...
3
votes
2answers
227 views
Fastest way to get list of all file sizes
I'm trying to create a graph of the distribution of file sizes on my ext4 system. I'm trying to write a script to scrape this information from my computer somehow. I don't care where the files are ...
3
votes
1answer
200 views
HP-UX SZ limit for ps?
Right so I have a fun little thing that I'm deathly confuzzled about. I have a program that is running and I am getting the following:
using top:
SIZE RES
1639M 359M
using ps:
SZ
20171
...
2
votes
3answers
129 views
How to get the distribution of file sizes?
I'd like to know the distribution of file sizes under a certain directory.
Please note: distribution of file sizes, not size of a directory. That means I want to know there are 25 files of 60 bytes, ...
2
votes
2answers
2k views
How to Expand LVM2 Partition in Fedora Linux
I've been using Fedora 15 on a VMWare virtual machine. Over time, the disk space I initially allocated for the file system began to run out, only 12GB left. I've expanded the disk space an extra 25GB.
...
2
votes
2answers
1k views
In SciTe (Scintilla), how can I create Syntax-Highlighting for my own custom language?
I want to create a custom Language, with its own custom Syntax Highlighting.
Notepad++ (a Windows SciTe/Scintilla based Text-editor), allowed me to create a custom "Language", and now, in Linux, I ...
1
vote
2answers
346 views
Must the filesystem be unmounted while extending an LVM logical volume?
I have seen some tutorials on extending an LVM2 logical volume. None of them instruct you to unmount the filesystem. They claim that you can extend an LVM volume while it is in use. Is this right?
1
vote
3answers
325 views
How to find all disks & their size before using them?
I need to know the following information, before using the harddisk to create logical volumes or database.. Any perl modules or snippet would be of great help.
how many hard disks are presented to ...
1
vote
1answer
275 views
Merging flv files causes a massive size increase
I have 3 flv files which I wish to merge. I used the answer in this post:
Merge multiple flv files?
which suggested this option:
mencoder -forceidx -ovc copy -oac pcm -o output.flv input1.flv ...
1
vote
1answer
73 views
changing the partition of a linux
I have a ubuntu system as a virtual system on Virtual Box. It uses VHD as its hard disk.
I manged to change the size of VHD using VHD resizer, now I want to expand the partition on vhd so it uses the ...
1
vote
1answer
239 views
Tiny font on Fedora 16
I'm finding that several programs have tiny font with Fedora 16. Google Chrome, for example, has miniscule font in the tabs. MATLAB has tiny font in the menus (File, Edit, etc.)
I have the "larger ...
0
votes
0answers
56 views
File size conflict
I am new to unix and have a doubt about file size in Unix.
ls -ltr shows me fileA size as 59096.
As per my knowledge this is in bytes ,so it is nearly = 0.06MB
However, a script which should zip files ...