Questions tagged [size]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 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" -...
user avatar
  • 39
0 votes
1 answer
17 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 ...
user avatar
0 votes
2 answers
48 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 ...
user avatar
  • 234
1 vote
1 answer
70 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 ...
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 ...
user avatar
0 votes
0 answers
27 views

Directories which contain content display size 0 from 'ls -al'

When I execute lld in a directory which has been formatted, to operate as an Ext4 type, I noticed that I am incorrectly getting 0 directory sizes (alias lld='ls -d -l --color=always .*/ */') for ...
user avatar
1 vote
0 answers
45 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 ...
user avatar
0 votes
2 answers
84 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?
user avatar
0 votes
0 answers
26 views

Show folders size in File Manager list view

Is there a way (maybe with additional software) to show the sizes of folders, when in list view in File Manager? Among other reasons, I would like to sort the list based on size, for folders too. I am ...
user avatar
  • 229
1 vote
2 answers
67 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 ...
user avatar
  • 111
0 votes
1 answer
92 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 ...
user avatar
  • 101
0 votes
1 answer
638 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 ...
user avatar
3 votes
2 answers
608 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 ...
user avatar
0 votes
1 answer
90 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 ...
user avatar
  • 143
0 votes
1 answer
104 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 (...
user avatar
0 votes
1 answer
106 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 ...
user avatar
0 votes
1 answer
72 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 ...
user avatar
  • 11
1 vote
0 answers
47 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?
user avatar
1 vote
1 answer
157 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. ...
user avatar
1 vote
2 answers
566 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 ...
user avatar
  • 21
1 vote
1 answer
131 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 ...
user avatar
  • 2,191
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 ...
user avatar
2 votes
0 answers
49 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/...
user avatar
  • 31
1 vote
1 answer
136 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 ...
user avatar
  • 139
11 votes
2 answers
950 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 ...
user avatar
  • 914
0 votes
0 answers
102 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 ...
user avatar
-2 votes
1 answer
29 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 ...
user avatar
  • 99
0 votes
2 answers
77 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 ...
user avatar
  • 317
-1 votes
1 answer
109 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 ...
user avatar
2 votes
1 answer
518 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 ...
user avatar
1 vote
1 answer
27 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/...
user avatar
0 votes
0 answers
89 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/ ...
user avatar
  • 31
0 votes
2 answers
159 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 ...
user avatar
-1 votes
2 answers
502 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 ...
user avatar
  • 1,012
0 votes
1 answer
167 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 ...
user avatar
  • 1
0 votes
1 answer
469 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,...
user avatar
  • 43
0 votes
1 answer
293 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 ...
user avatar
0 votes
0 answers
111 views

Size discrepancy between "ls" and "du" calls

We are constantly low on space and look for files are installed programs in /tmp on out server. I notice the following for tmp but can't find a large file in /tmp. drwxrwxrwt. 27 root root ...
user avatar
1 vote
0 answers
156 views

pdf black and white compression without losing text recognition

I'm looking for a way to reduce the size of various pdf archives that I have. I have tested lot of programs and mechanisms. I get the best results with the following secuence: pdfimages -png file.pdf ...
user avatar
  • 218
-1 votes
1 answer
158 views

How to determine the number of records in a binary file given the delimiter

I want to determine the number of records in a given binary file. The delimiter of the file is taken as input from the user.the total How may I proceed ?
user avatar
-1 votes
2 answers
820 views

How to determine the Number of records in a binary file that has fixed size records [closed]

I am trying to determine the number of records in a binary file. The size of the binary file is determined by wc -c. The delimiter is unknown .the size of records is fixed. The exact size of each ...
user avatar
0 votes
1 answer
348 views

Scaling bugs in Debian 10/KDE - how to increase the size / zoom of apps instead of scaling the display?

In Debian 10 stable with KDE changing the scaling under the display settings has a lot of bugs. For example the tabs in the bottom panel are too large and have a font-size that's much too large so ...
user avatar
  • 3,430
3 votes
1 answer
434 views

confusion about inode numbers

On xfs file systems, I was under the impression that: # xfs_info /dev/mapper/rootvg-root meta-data=/dev/sda1 isize=512 agcount=16, agsize=1285043 blks = ...
user avatar
  • 31
0 votes
1 answer
426 views

Problem with resizing partition in ubuntu

I have enlarged my partition with GNU Parted but when checking with df -h and (parted) print I see that the sizes are different. How can I make df -h reflect the actual size of the partition? Thank ...
user avatar
-1 votes
3 answers
2k views

How to create directory with a certain size? [closed]

How can I create a directory with a certain size? I need an empty directory with atleast 15MiB, and it must be in the /tmp directory. My assignment sounds like that: You're supposed to create ...
user avatar
4 votes
1 answer
2k views

tmux not splitting panes with desired percentage size

I am trying to create a script that launches tmux with a specific pane layout and size. I am following the tutorial in the following link: https://leanpub.com/the-tao-of-tmux/read#pane-resizing ...
user avatar
  • 363
0 votes
2 answers
562 views

Filter a directory to show directories larger than 1 GB

I've used the following command to list any file/directory, sorted by size: du -sh * | sort -hr How can I modify this to show only files/directories larger than 1GB?
user avatar
1 vote
1 answer
133 views

How to remove the same size files in a directory on Linux?

I need to remove files with identical size but not identical content on Linux, that is why fdupes is not an option. I tried the following command, however it did not remove all files with identical ...
user avatar
  • 11
0 votes
1 answer
158 views

list directory sizes and compress them

I have a list of directories I want to compress on an ubuntu machine. Is there any tool to automatically calculate the size of the of my folders and copy the size to the name of the compressed file? ...
user avatar
6 votes
2 answers
11k views

Check if the file size greater than 1MB using IF condition

By using ls -lh we can get the file size. Is there any way I can check if the file size is greater than 1MB to then print a message like below? I may have files with different sizes like 100mb, 1gb, ...
user avatar
  • 349

1
2 3 4 5