Questions tagged [size]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

USB Gadget Size Limitation - Mass Storage Emulation

I'm facing a challenge with my Raspberry Pi 4 and software setup. The Pi connects to my server to download a weekly-updated database. The problem arises from the Mass Storage Gadget's CD emulator, ...
Christos Galanopoulos's user avatar
0 votes
1 answer
108 views

dd not enough space

I have a drive that is about 1TB big. It is mostly free space. When you add up the size of all the partitions, it is less than 256GB. I have another drive that is 256GB. I would like to clone the data ...
user168226's user avatar
0 votes
2 answers
97 views

How to view a log file that's worth 10GB+?

The ways that I've thought of: If you get to reproduce the scenario in real time. Use tail -f application.log | tee /tmp/tailed_log But it's not sure that we'll get to reproduce the scenario in real ...
achhainsan's user avatar
0 votes
0 answers
22 views

Sum of all file sizes in a folder down not adds up to what what ls or du show [duplicate]

I have downloaded couple of thousands file form a cloud. the download is done without any error. When I check the files occupied space in my hard drive is showing size, then what is shown on the cloud ...
Ahmad.S's user avatar
  • 101
-1 votes
1 answer
91 views

Linux Bash Shell Script - To Find Files with Zero Size and Delete

List of files are stored in a variable REMOVEFILES. Script need to verify the list of files one by one and if the file is ZERO in size, it should be deleted. Please help me fixing it. #!/bin/bash ...
dbadmin's user avatar
  • 23
1 vote
0 answers
29 views

find can not find size between A and B [duplicate]

problem description I was using find(GNU version) to find files with size between 4G - 5G with below command # find . -size +4G -size -5G -exec ls -1hSs {} + But below can work # find . -size +4G -...
xiaojueguan's user avatar
0 votes
1 answer
67 views

Make the smallest image of system [duplicate]

I would like the make an image of Linux system. I have a SD card 64GB, but the system takes only 11 GB. dd command, Win32DiskManager, ... all create a raw image of 64 GB, way bigger than the 11 GB. ...
Yaegaki2's user avatar
1 vote
2 answers
391 views

What's the POSIX-compliant way to get the size of a file or folder in bytes?

According to the Open Group specs, POSIX du doesn't have the -b option to display the size in bytes. So what is the POSIX-compliant way to get the size of a file or folder in bytes?
finefoot's user avatar
  • 2,960
0 votes
0 answers
79 views

ls -alh and du -sh shows difference in size.. why is that?

Why is this size difference ? Can someone explain ? [root@~] ls -alh /vmfs/volumes/50a4a9e6-13184850/SYD0TXT01/vmware.log -rw-r--r-- 1 root root 2.1G Nov 25 00:48 /vmfs/volumes/50a4a9e6-...
Iamtheroot's user avatar
0 votes
0 answers
192 views

grep: What is the limit for a pattern file size

I am using grep with the -f option and I run into an issue when the pattern file given with -f is very long. The one that is failing for me has almost 300 thousand lines and 40 MBytes. grep does not ...
Frigo's user avatar
  • 222
2 votes
1 answer
302 views

How to "listen to" directory size changes?

I need to do some actions when a directory grows above a certain size limit. Obviously, obtaining the size can be done with du, but a single run of du takes a long time in my case, loads the disk ...
user10732's user avatar
0 votes
1 answer
776 views

Debian - Create new partition with fdisk and set size ( Last sector )

please could someone help me with my problem of create new disk partition in Debian ? I'am using Proxmox where I have created a few virtual machines. On one of virtual machines where have installed ...
Filip Skřivánek's user avatar
1 vote
1 answer
175 views

Is it possible to increase the size of OpenBSD's bsd.rd without building it from source?

Having a bsd.rd extracted from an installation image and mounted as a vnode I can see there is 0.2MB free space available for additional files such as used during unattended installation. I want to ...
zajer's user avatar
  • 213
1 vote
2 answers
124 views

What's the upper-bound for an array index/subscript in GNU bc?

I've found that there is an upper-bound on your subscripts/indices in an array in GNU bc. Running interactively and asking to let arr[100000000]=42 returns an error: Runtime error (func=(main), adr=...
Mike Pierce's user avatar
0 votes
2 answers
970 views

How to list files with only name and size

I would like to list the content of a directory, 1 line per entry, with only the files names and the files sizes. ls -l shows too much information. ls -1 -s doesn't show a file's size but its ...
Nawak's user avatar
  • 1
0 votes
1 answer
93 views

How to display the paths to all files that have a size greater than the specified limit

I need to output the paths to all files that have a size greater than the specified limit (declared as a variable). I've done it using find script: FILESIZE = "+10M"; find "$1" -...
Oleg's user avatar
  • 39
0 votes
1 answer
153 views

Change default browser screen font size

Running Fedora 34, Xfce desktop. When I run Firefox, the screen is always too small and I find that I'm constantly hitting the Ctrl+ combination to set the screen size to 133% of the default so that I ...
Vérace's user avatar
  • 551
0 votes
2 answers
2k views

How can i make sure my volume is btrfs (or get it's type) and how can I know it's real size in my partition?

I have a volume which I believe to be btrfs, but the partition bearing it has an odd number of blocks and there is a little space left before the next partition. I'd like to check it's type (btrfs ...
Camion's user avatar
  • 274
1 vote
1 answer
634 views

Why /usr and /home size is very small even tough I gave /home and / (root) enaugh size?

My concern is about /usr and home size as you see. Home: Root: My concern is about /usr and home size as you see. It seems that they have really small space, but when I was installing ubuntu I gave ...
El Mehdi's user avatar
9 votes
2 answers
1k views

Why am I getting HDD total space less than 931 GiB?

I've been trying for a few days already, but still cannot figure it out how to get the proper size of my HDD drive with a python script. My HDD is 1Tb. As I know in Gb it is 1000Gb, and in GiB it is ...
Roy O'Bannon's user avatar
1 vote
0 answers
1k views

inode based file system, What is the maximum size of a file in the file system

could someone explain how to tackle this questions? 1. **What is the maximum size of a file that could be handled by single indirect and double indirect?** Block size is 2K Address size is 4 Bytes 12 ...
portahelle's user avatar
0 votes
2 answers
670 views

Count bytes of filename

How can I know how many bytes does it weight the name of a filename? Just the file, not the full path. I've tried this: echo 'filename.extension' | wc -c is this right?
Smeterlink's user avatar
1 vote
2 answers
530 views

How to calculate the size of data transferred between two machines in Ubuntu?

I have two computers. The first one is as a workstation. It runs the deep learning code and connects an AP by a wired connection. The second one is as a robot's computer. It sends the video and other ...
Redhwan's user avatar
  • 111
0 votes
1 answer
328 views

OpenBSD core dump and /var size

I'm trying to figure out my partitioning which leads to https://man.openbsd.org/disklabel#AUTOMATIC_DISK_ALLOCATION which says: /var 13% of disk. 80M – 2x size of crash dump But how do I ...
uxer's user avatar
  • 101
0 votes
1 answer
3k views

How to list all files and get the total size of all files in an sftp server?

I am connected to an sftp server using sftp -i key.pem user@server The server contains logs and I can list logs up to 4 days old using ls. The problem is that ls does not seem to be able to fetch ...
HelloWorld's user avatar
  • 1,385
3 votes
2 answers
823 views

Does Linux update the size of a block device?

In the light of emmc wearout monitoring I'm wondering about the size as displayed inside a running Linux OS. An emmc chip has an internal manager which keeps track of the usage intensity of all the ...
Whois_me's user avatar
0 votes
1 answer
185 views

I don't understand how "ls" command works [duplicate]

I wanted to check what is the size of pg_backup folder, so I used this command: [postgres@server02 ~]$ pwd /var/lib/pgsql [postgres@server02 ~]$ ls -lh total 4.0K drwxr-x---. 7 postgres postgres 86 ...
kamokoba's user avatar
  • 163
0 votes
1 answer
357 views

Samba share on rpi/Linux is reporting SD card space rather than HDD space in Windows

The samba config should be pointing directly to the mount point I have created for the two external HDDs, yet it still reports in Windows as 116GB (my OS SD card size on the Pi). /etc/fstab (...
MrFuzzihead's user avatar
0 votes
1 answer
402 views

1TB drive compressed shows only 3.8GB, what did I do wrong?

On Linux Mint 20.2 Cinnamon I would like to create a disk image of my secondary disk drive (SATA) containing Windows 10, not that it matters now, directly gzip'ed using the Parallel gzip = pigz onto ...
Vlastimil Burián's user avatar
0 votes
1 answer
154 views

Delete files in a directory only when cumulative sum of files size exceeds xGB

I have a directory, with thousands of files. I need to sort the files in descending order of creation date (to make sure that the newest files wont be deleted), and start summing the size of these ...
Charbel's user avatar
  • 11
1 vote
0 answers
130 views

Graphical disk space manager for linux terminal

I want to export the results of a recursive ls command. Then open it in a disk space manager software like Treesize. Do you know of a program that is able to to that?
Ido Rozin's user avatar
1 vote
1 answer
723 views

How to open and read a character device as binary file?

I'm working with USB and I want to read the content of usb device descriptor in /dev/bus/usb/00x/00y - it is a character device. I used fopen to open it as a binary file with "rb" parameter. ...
Manh Huynh's user avatar
1 vote
2 answers
1k views

How is the theoretical maximum file size on filesystems like XFS calculcated?

Documentation for XFS claims its current theoretical maximum file size is 8 exbibytes - 1 byte. However, I am wondering how this calculation was computed? I cannot seem to find discussion of this ...
curious's user avatar
  • 21
1 vote
1 answer
811 views

Why do snapshots consume much less space than the data which is changed after they have been taken?

Although I am using ZFS since quite a while, I am still failing to understand some aspects of it from time to time. Currently I am trying to understand how ZFS snapshots take up space on the disk and ...
Binarus's user avatar
  • 3,180
0 votes
0 answers
24 views

ls -s vs -l file size difference and significance [duplicate]

As a very basic linux user, I've always considered the file size as shown in ls -lh to be the one and only file size on disk. For example here, file.xlsx is 11kb -rw-r--r--@ 1 michael staff 11K ...
Michael Du's user avatar
2 votes
0 answers
142 views

Why is the EXT3 FS size much smaller vs. partition size?

We have a partition, which is exactly 50 GByte sized: # fdisk -l /dev/sdb Disk /dev/sdb: 50 GiB, 53687091200 bytes, 104857600 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/...
SutoTi's user avatar
  • 31
1 vote
1 answer
461 views

Where is the KEYDEF in sort command?

I need to sort the results of 'du' command by file or folder name, file size, or last modified time in various situations, and appending ' | sort -k 2' command after 'du' command sorts the results by ...
user67275's user avatar
  • 223
13 votes
2 answers
7k views

find command: -size behavior

I have a question concerning the find command in Linux. In all the articles I've found online it says that attribute -size -10M, for example, returns files that are less than 10 MB in size. But when I ...
golder3's user avatar
  • 1,014
0 votes
0 answers
310 views

Size of directory with millions of sub directories without `du'

I have a folder with millions of sub directories and in each sub directory a file. I need to get the size of the complete directory size. I've used du but it took 17 hours (on a M.2 SSD) to complete ...
Fuld_Ulv's user avatar
-2 votes
1 answer
109 views

How to recursively list subdirectories and their sizes?

I have a directory with many subdirs and many files inside those. All I need is to figure out how much space each subdir takes. So I need something like ls -lR in that I want to see the entire ...
I Z's user avatar
  • 99
0 votes
2 answers
512 views

Deleting files by checking file size in bash

I have two directories with files, one is the "source", the other "destination". I would like to have a script that checks file in "source". If file name and size matches ...
Pietru's user avatar
  • 371
-1 votes
1 answer
259 views

Volume show different sizes in CentOS 7

I hope you and your dears are very well. I'm facing a issue which I cannot understand the root cause. I have a VM with CentOS 7 64 bits. This VM has the following partitions: Filesystem Size ...
Rodrigo Cardoso de Oliveira's user avatar
2 votes
1 answer
1k views

Why used space on new root partition is so big (almost 8GB) (MX Linux 19.2 KDE)?

After installation of MX Linux 19.2 KDE occupied space on root partition was 7.8GB. It is totally incoherent with user manual suggesting to leave at least 5GB for root partition (but if you plan to ...
Luca Twardowski's user avatar
1 vote
1 answer
498 views

Get total size of file in current directory (not include size of subdirectory)

I'm a newbie in Linux and English is not my primary language. I have folder structure (example): /folder1/file1.zip (1GB) /folder1/file2.zip (1GB) /folder1/subfolder/file3.zip (1GB) /folder1/...
Loc Nguyen's user avatar
0 votes
0 answers
250 views

Linux Directory Size Limiting

I have a FTP server with anonymous access for my local network. Here I have directories named with department names. I want to limit the directory sizes in respect to departments. /var/ftp/pub/ ...
Tasbir's user avatar
  • 31
0 votes
2 answers
492 views

Virtual Machine can't extend /dev/mapper/vg0-rootvol

I have a virtual machine that I'm trying to extend from 150GB to 500GB. $ sudo cfdisk /dev/sda cfdisk (util-linux 2.23.2) Disk Drive: /dev/sda ...
mojo1mojo2's user avatar
0 votes
2 answers
932 views

Is a text file bigger on Windows than on Linux because of carriage return?

Let's say I have the same ASCII text file on Linux and Windows: one two three The two files will have \n and \r\n respectively as EOL character on the two OSes. Does this mean that the file on Linux ...
Enlico's user avatar
  • 1,471
0 votes
1 answer
519 views

Raid5 mdadm array change size

I have created a raid5 array with 4 disks. Initially i had 3x 3tb and 1x 4tb (because 3tb was unavailable at the time). After some years i have replaced most of these disks and have come to the point ...
jack's user avatar
  • 101
0 votes
1 answer
877 views

HDD size from df or lsblk?

I've been said to write a program in c++ to get every hdd and partition's total, free and used size. I can use commands to do this. I searched and I understood that there are two ways of getting size,...
fa7eme's user avatar
  • 43
0 votes
1 answer
613 views

Debian Extending Primary (root) partition without data loss [closed]

I have a VM with Debian installed on it. I want to extend the primary partition without losing data. Here is output of sudo fdisk -l: Disk /dev/sda: 34.2 GiB, 36700160000 bytes, 71680000 sectors Disk ...
Vadym Matviichuk's user avatar

1
2 3 4 5