Questions tagged [size]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 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
41 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?
0
votes
0answers
11 views

find images with specific dimesions and copy them all into another directory

I already did various searches on google, I find this link with a similar question but I fail to integrate this: find . -iname "*.jpg" -type f -exec identify -format '%w %h %i' '{}' \; | awk '$1<...
1
vote
1answer
35 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
32 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? ...
0
votes
2answers
702 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
34 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" # ...
0
votes
0answers
103 views

How ls -lh round off the actual sizes in human readable form?

I was using the command ls -lh to see the long list of files and their sizes in human readable form but i was unable to understand one thing that how the human readable form round off the actual sizes....
1
vote
1answer
277 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
390 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
110 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
76 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
32 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
355 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
27 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
360 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
336 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
88 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
69 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
81 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
31 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
2k 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
5k 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
32 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
119 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
194 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
421 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
1k 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
269 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
65 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
87 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
31 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
2k 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
2k 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
300 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 ...
4
votes
1answer
4k 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
289 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
482 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
294 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 ...
12
votes
2answers
10k views

How to get the physical size of a file in Linux?

I can use ls -l to get the logical size of a file, but is there a way to get the physical size of a file?
1
vote
1answer
9k 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
69 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
2k 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
6k 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
392 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
43 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
271 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
952 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
67 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
572 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 ...