Questions tagged [size]

The tag has no usage guidance.

1
vote
1answer
27 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 ...
0
votes
0answers
22 views

Kali Linux Boot Partition is out of Space [duplicate]

Today I installed the 2019 Kali Linux on my HP laptop, 120GB Hard drive, 16GB Ram. I created 3 partitions; 20 GB EFI partition, 80 GB primary partition & 20 GB Swap approximately 10mins after the ...
1
vote
0answers
24 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 ...
0
votes
1answer
59 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
68 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
38 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 ...
0
votes
0answers
55 views

Shell script - directory size

I have to create a script that calculates the size of a directory given as an argument in bytes, like ./du.sh dir. Optionally I have 2 other arguments: ./du.sh dir 1000 files.txt, where 1000 stands ...
2
votes
4answers
75 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 ...
0
votes
0answers
29 views

I resized a partition (made it smaller) but now the partition shows the same size as before I resized it only with less available space.

I had a partition that was 650gb and was being used for files on Windows. It had 600gb of data on it. I deleted 300gb of data then resized the partition to 350gb (with 50gb free space). Once it ...
3
votes
2answers
777 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?
1
vote
1answer
2k 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
30 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
115 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 ....
0
votes
0answers
16 views

Different folder size on Windows 10 and Ubuntu 14.04 [duplicate]

I have a folder on Windows 10 on my user documents. The size of my folder content on drive C:\ is reported on Windows as: When I copy the folder to my USB drive F:\ the size is reported as: On drive ...
1
vote
5answers
105 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
138 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
642 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 like this: ./scan....
0
votes
1answer
151 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
56 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: ...
0
votes
1answer
32 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
28 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 ...
-5
votes
3answers
549 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
588 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 ... ...
5
votes
1answer
269 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 ...
2
votes
1answer
2k views

How to retrieve downloadable file size with curl command?

I have a requirement in the shell script like, have to download a file from "url" with curl command. before downloading that file I want to process that same file size in a method. Can anyone help me ...
0
votes
2answers
138 views

Efficient rsync

Now 5 years after this question was orignially asked, is there a way for rsync to do the following? same time and same size ► skip file (no transfer, no checksum) different sizes ► transfer ...
1
vote
1answer
248 views

Difference between blocks from filefrag and stat

I have created file named sometext with random data inside. I wanted to check metadata of this file using several programs. I have used filefrag and stat program. kd@kd-VPCEB2S1E ~/Downloads $ stat ...
1
vote
2answers
80 views

Compare two file sizes and delete smaller file

I'm looking for a way to delete the smaller of two files. I have found a way to find the duplicate files in my Movie Library, but now I need to delete the smaller file. bash - Find All Files with ...
0
votes
1answer
4k views

Does option “-h” for “ls” display size in MB or MiB and is it consistent over Unix-based systems? [duplicate]

The usual ls command can display the size of files with the option -h and I am having a little doubt about it being display in MB or MIB. For example : $ ls -lha drwxr-xr-x 2 user group 4.0K Apr 2 ...
-2
votes
1answer
58 views

viewing actual file size of folder

I know that the command du -csbh will show you the actual file size of a directory. This will be displayed as: 241 MB which is fine. If I look in windows 10 at the properties of the same folder. The ...
0
votes
4answers
845 views

Order all files by size using find

As practice I need to complete a script that orders all filles by size with a given extension(.txt for example) including those in subdirectories too. For example; ./ex1.sh einstein txt einstein/...
3
votes
5answers
4k views

Recursively output filename and file size for all subdirectories?

My goal is to measure the file size (in MB or GB) for every file on my Linux system, recursively recording the filename and filesize, and piping the output into a tab-delimited text file. What would ...
0
votes
0answers
306 views

Limit directory size in a Docker container

I have a web application in a Docker container. I need to limit maximum size of some of its directories. When I was not using Docker, I just created disk partitions of the limit size and put those ...
2
votes
1answer
38 views

Is there a way in Linux to preserve folder size for safety

I want to install a data manipulation solution. The solution is deployed in a folder in home directory. Free space in disk is uncontrollable and can shrink at any moment (other users data). How can I ...
0
votes
1answer
167 views

How much data do Arch Linux needs to load during installation?

So I'm new to Arch and now I'm doing the installation process I got a internet speed around 10KiB/s (not sure why) and it's been loading packages for ~2hrs (It starts loading after I run pacstrap /mnt ...
1
vote
2answers
467 views

Does 'find -size 100k' use kilobytes or kibibytes?

I was looking through the linux manual and on this page, the manual for find, specifically in the section about the test "-size", it states (erroneously) that a kilobyte is 1024 bytes. This is, as far ...
1
vote
2answers
48 views

Want to increase partition sizes - how to do so safely?

I'm looking to resize a number of partitions, but I'm unsure how to go about doing this. I want to increase the partition size of the /var partition, that is in the middle of all the other partitions....
2
votes
1answer
402 views

Log rotate using perl Logfile::Rotate

The below script works when executed on CentOS, but it doesn't rotate logs based on size. A new log is generated every time I execute this script. Can anyone tell me how to make this script work based ...
0
votes
2answers
275 views

Get total size of a certain file type in the whole system

Gm to all, I need to find the sum of the total files of a certain type (for example pdf) in my entire linux machine (total file size, not the total occupied size). For example i want to know the total ...
0
votes
2answers
37 views

Are there any files created and or broadened by the system besides mail and logs?

Are there any files created and or broadened by the system besides mail and logs? AFAIK, the only files that are created and/or broadened by the system in default are /var/mail/ files and /var/log/ ...
1
vote
1answer
2k views

How can I increase the /tmp directory on Linux

I am trying to install android-studio from the Arch User Repository (AUR). I had an error no space left on the device Output from the Arch User Repository (AUR) - details ...
0
votes
0answers
329 views

Resize loginScreen (Background) or adjust Resolution of LightDM, CentOS 7

I'm using LightDM, but When I'm starting CentOS 7, the LightDM only take part of Screen, like low resolution. Unfortunately I can't take a Screnshoot. How to adjust LightDM take all Size Screen?
1
vote
0answers
98 views

Directory size causing cpu load

I am monitoring several high volume directory using Zabbix. I used du command. I need to monitor in every 60sec. But problem is that Zabbix firing du command in every 60sec. it does not check whether ...
1
vote
2answers
1k views

Quickest way to find the largest file in a directory and subdirectories [duplicate]

I need to find the largest file in the current and subsequent directory. I tried ls -Rlh | awk '{print $3 " " $5 " " $9}' but do not know if it is ok, how to sort and select the largest file.
2
votes
2answers
69 views

How to record the maximum size of a folder?

Packages are unpacked and compiled on a test system in /tmp/test. I need to get the maximum size the directory had at any moment during all these steps. At the moment I help my self by recording the ...
2
votes
4answers
2k views

How do I store the human-friendly size of a file in a variable?

Basically what I want to do is to make a script that will output all the files and their sizes in the directory which have size more than a threshold value (2.2 GB in my case). I tried using the stat ...
2
votes
2answers
55 views

How do I add files to a folder until a certain size limit is reached?

I have a folder with 1.5 million files (mail files) of various sizes. I want to create a directory, for example a, and move (mv) some of these files (which all start with a numeric timestamp) into ...
4
votes
4answers
656 views

How do I determine which Linux file is biggest from a list of options?

$ ls -l drwsrwsrwt 2 caine caine 4096 2017-01-10 13:21 10050 -rw-r--r-- 10 caine caine 4096 2017-01-19 11:29 10051 drwxr-xr-x 20 caine 18 8096 2017-01-19 11:29 10052 drwxr-xr-x 21 11 caine 4096 ...
0
votes
2answers
62 views

Getting file sizes for a large list of files fails after n files

I've tried to figure out how to deal with an issue processing a large file list. I have a list of 2000+ files. When I try to put them in a loop using ls or wc to get the file size for each, after n ...
4
votes
1answer
869 views

Why does “du -b” show a different size than “right click” ⇨ “properties” inside file browsers? [duplicate]

The command du -b /home/user/directory shows a completely different file size than displayed by a manual "right click" on the same directory and selecting "Properties" inside common file browsers ...