Questions tagged [size]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
1answer
18 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 ...
0
votes
0answers
44 views

size vs size on disk - reported by ms-windows via samba

On my Gnu/Linux server I have a folder, according to the ms-windows popup says 1,179 files and 30 folders. This is on RHEL 7.9, with an XFS file system, and samba server is used to make it accessible ...
2
votes
1answer
35 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 ...
0
votes
0answers
43 views

Buildroot hdimage(sdcard.img): part rootfs size (268435456) too small for rootfs.ext4 (1073741824)

So I wanted to make my buildroot environement and evrytime I step on this error: Blockquote INFO: cmd: "mkdir -p "/home/mehdi/buildroot/output/build/genimage.tmp"" (stderr): INFO:...
1
vote
1answer
22 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/...
0
votes
0answers
17 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/ ...
0
votes
2answers
60 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 ...
-1
votes
2answers
84 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 ...
0
votes
1answer
19 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 ...
0
votes
0answers
47 views

lp printing options to scale a image

I am trying to print from my Raspberry Pi 4B to my Canon Selphy 1300 Printer. This is the default print command I use lp -o raw -o media=postcard -d Canon_SELPHY_CP1300 printtest.jpg The image fits ...
0
votes
1answer
162 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,...
0
votes
1answer
46 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 ...
0
votes
0answers
41 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 ...
1
vote
0answers
85 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 ...
-1
votes
1answer
66 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 ?
-1
votes
2answers
231 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 ...
0
votes
1answer
88 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 ...
3
votes
1answer
132 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 = ...
0
votes
1answer
30 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 ...
-1
votes
3answers
449 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 ...
1
vote
1answer
397 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 ...
0
votes
2answers
76 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?
1
vote
1answer
67 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 ...
0
votes
1answer
42 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? ...
4
votes
2answers
4k 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 then print a message like below ( i may have files with different sizes like 100mb , 1gb,...
-2
votes
1answer
39 views

Apparent different sizes when attempting to export a particular mysql database

In a quite old-versioned CentOS-Bash "shared server" environment, I ran the following commands: current_date="$(date +%F-%T)" db_user_name_and_db_name="db-username_db-name" war="$HOME/public_html" # ...
1
vote
1answer
1k views

total in the output of ls -l command

I know that total tells the number of 1K blocks used by the files in directory i am working on. For some purpose i entered the command ls -lh to see this in human readable form, i saw the blocksize of ...
0
votes
1answer
725 views

Root partiton size on Mint 19.2

I want to install Linux Mint 19.2 (Cinnamon DE). My laptop has a 96GB ssd plus a 1TB hdd. Of course my intention is to boot from ssd , so the '/' partition will go there, but here is the point: should ...
0
votes
1answer
279 views

Bash get array length with offset

I'm doing a bash script and I need to get the length of an array starting from an element. Let's say that the array is: array=(1 2 3 4 5) It is possible to print the array with an offset of 2 using:...
2
votes
2answers
103 views

Get size of directory (including all its content) irrespective of disk usage

General question Assuming two directories with identical content are stored on different devices. Is there a way to calculate the size of the directories and always get the exact same number for both?...
1
vote
1answer
34 views

Locate Large Files - Discrepancy between Parent Folder and Child Folder

System: Red Hat Enterprise Linux Server release 7.6 (Maipo), 3.10.0-957.12.1.el7.x86_64 GOAL: Find files that are large in size to see how they can be remediated. Note: Folders with "application" in ...
1
vote
0answers
38 views

Some font sizes are strangely big

On my Lubuntu (ubuntu based) VM I see different font sizes, it's very strange. In some apps it looks normal, in others the fonts are extremely large. Even in some apps there are some huge variations ...
2
votes
1answer
911 views

What units are the values in /proc/partitions and /sys/dev/block/<block>/size?

I have a sample emmc block info from an android device From /proc/partitions major minor #blocks name 179 1 5120 mmcblk0p1 Using my little intelligence I am assuming /proc/partitions ...
0
votes
1answer
580 views

Why specify packet size during ping test?

Does it make a difference to specify packet size during ping tests (RedHat)? Engineers in my company asked for ping checks with packet size of 2000 bytes (-s 2000). On certain systems, this fails, ...
1
vote
1answer
282 views

Oracle VM VirtualBox LinuxMint zoomed very far out

I recently downloaded Oracle VM VirtualBox on my MacBook and am using it for Linux Mint. When I go onto the Linux Mint VM, all of the fonts and applications are extremely tiny and almost impossible ...
2
votes
4answers
110 views

Listing files recursively, grouping by user and summing its size

I need to verify the size occupied by each user on my Linux server (all files recursively inside my data folder). With the code below I can get all of my files and their users, but I don't know how ...
4
votes
2answers
4k views

How to split a large folder into smaller folders of equal size [closed]

I have one big folder with many file types in it (e.g .txt, .sh). It's about 40Gb. I would like to split it into four parts of 10Gb each. How can I achieve this?
2
votes
1answer
6k views

Folder size du, ls [duplicate]

Can someone explain folder size? Folder contains only 1 file with 360Gb size. ls and du show used 440Gb [root@liz DECSC]# ls -lha total 440G drwxrwxr-x 2 geo geo 4.0K Dec 6 19:56 . drwxrwxr-x 14 ...
1
vote
1answer
33 views

How can I write out the path of 0 size files

How can I modify my query (below) to get the (absolute) path of all the 0 sized files within a directory? find ./ -size 0 -print
-2
votes
2answers
120 views

Really weird ```du``` behaivour

I want to print the size of a file from some folder /etc/*.conf in this case. When I use: cd /etc du -ch $(ls | grep .conf) | tail -1 | cut -f1 I get 120K. When I use: du -bch $(ls | grep ....
1
vote
5answers
350 views

Linux: Find the second biggest file/directory in size using commands

Introduction Find the second biggest file/directory in size using commands. What I have du /etc/ -hsx * | sort -rh | head -2 This command shows me two lines which, by the options I've chosen, gets ...
2
votes
1answer
905 views

Reduce size of my screen with a command line

I am running a Debian stable with Cinnamon graphical interface 3.6.7 and my computer is connected to a multimedia projector. I havea an Intel Graphic card. The projected image is too big and I can't ...
2
votes
2answers
2k views

How do I print out the byte size of each file in my Bash script? [closed]

My current code is like so: scan.sh: #!/bin/bash while IFS= read -r line; do byte = $(stat -c%s "$line"); echo "$line : $byte"; done< <(ls *.$1) The output would be ...
0
votes
1answer
458 views

How to configure OpenBox to ignore the size hint of a specific application's window?

Updated Question Based on the excellent comment by @mosvy it is actually the window manager that is respecting or ignoring the propagated size hint of a window. Unfortunately though, I couldn't find ...
0
votes
1answer
111 views

On copying, which is considered: actual or apparent size?

I was wondering if I have a file that has apparent size of 1 GiB but actual size of 0 B can get copied to, for example, a USB flash stick with 512 kiB free space? You can create a file as such using: ...
1
vote
1answer
161 views

List files exceeding a certain size limit

I have an application structured in the form of a folder and several levels of subfolders. I want to list all the files within my application's folder that are equal to or larger than 300KiB. How do ...
0
votes
1answer
32 views

Fetched size and Installed Size

i have 2 packages the first one has a Fetched 89.2 kb size and it has 571 installed size ( lxterminal ) , and the other one has a Fetched 1738 kb size and it has 502 installed size ( mlterm ) . how ...
-4
votes
3answers
3k views

how to convert MB to BYTE using bash / awk

we need to calculate BYTE value from MB values example 10 --> 10485760 100 --> 104857600
0
votes
2answers
4k views

Generic tool to order by size in linux, understanding common unit suffixes

I can order a list of files / directories by size: ls -lS But if I am using du in human readable format: du --max-depth=1 -h . I get: 128K ./something 3,3M ./more 3,2M ./even-more ... ...
6
votes
1answer
346 views

Track size of a directory over time

I have a directory and I want to log, from now on, its size every day. That is, at some time of day, every day, I want to compute the size of this directory, and append it in some file along with the ...