The tag has no wiki summary.

learn more… | top users | synonyms (2)

1
vote
1answer
123 views

How to apply du (f.x.) to all sub directories except for some of them?

./a |-/bx1 |-/by2 |-/bz3 |-/bx4 |-/by5 Now I want to apply du to all sub-folders except for /by2 and /bx4. I can make it happen for one folder: du --max-depth=1 --exclude=./by2 but not for ...
2
votes
1answer
82 views

Why is df -h size, util and dispo not corresponding to each other

When I'm using the command "df -h" I'm having the following output : Filesystem Size Used Avail Use% Mounted on /dev/mapper/fedora-root 20G 9,4G 8,8G 52% / devtmpfs ...
-2
votes
1answer
79 views

Zorin OS: Low disk space message [closed]

I am frequently getting low disk space error and attached screen displayed. Let me know what to do.
2
votes
2answers
103 views

How to get directories and and subdirectories count fastest way?

I want to get the number of directories and sub directories.I tried following command which takes very long time . I tried waiting about an hour to finish the command. commands I used $ find . -type ...
0
votes
1answer
91 views

Google Chrome - no space on rootfs partition

I've managed to install google-chrome on Debian Wheezy. My rootfs is only 320MB because I didn't predict that some day I will install Google Chrome which has more than 100MB and installs in /opt (opt ...
2
votes
5answers
205 views

How to free space on a completely full volume?

I am using Linux. And within an uncontrolled event, my 4GB system disk is full. When I try to uninstall some program by sudo apt-get purge program-name, it gives me this error: /usr/bin/mandb: can't ...
1
vote
4answers
28 views

space utilization

I need to show space utilisation on the system, and find the largest 3 files on /home (or any other folder) I've been using 2 different command lines df -m -a -h df -m -h /home I still can't ...
0
votes
2answers
244 views

Equivalent of the Solaris “df -t” command on Linux?

The df -t command on Linux does not display the number of files like it does on Solaris. Is there any equivalent command on Linux? My script is like this for i in /opt/aa /opt/aa/data /opt/aa/bb; ...
1
vote
4answers
91 views

Linux: what is on each of my hard drives

I am about to get a new PC built by my local Expert, and will have Fedora 20 installed on it (with dual boot for a bit of Windows in case I really have to use it). It will have a new hard drive, but I ...
3
votes
4answers
1k views

What's eating my disk space?

I'm running Linux Mint 14 Nadia. The Linux partition has 10G. When the system starts, du reports 80% usage. Then the usage slowly grows until it reaches 100% and the system becomes unusable. (It ...
0
votes
0answers
32 views

Disk space shows up as used but not on `du` [duplicate]

I have a problem where 70G on a server seems unreachable: XXX@XXX:/data$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/ubuntu--Storage-root 120G 2.9G 111G ...
2
votes
5answers
117 views

Can I use KdirStat over SSH?

I have a headless server running Centos 5.9. I can only SSH into it, is it possible to use KdirStat or a similar tool to get a graphical view of disk usage?
2
votes
4answers
704 views

What is the /dev/disk/by-uuid/ and why does it use all free space on the disk

I have the following Debian that works in Virtual Box: $ uname -a Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux Recently I notice that I don't have any free space: $ df ...
4
votes
2answers
326 views

What does `du - hb` do?

With du -bh I think I get the apparent size in human readable format: # du -bh 295K ./test However, I would expect the same from du -hb, but I get something else: # du -hb 301926 ./test I ...
1
vote
1answer
86 views

How to calculate the size of a file list (not a directory)?

This command: $ time (\ls /path/to/lots/of/dir*/*/*/*.ext > inputs.txt ) real 1m9.064s user 1m3.265s sys 0m5.993s Gives me a huge list of file names inside the file "inputs.txt". I ...
3
votes
1answer
202 views

Running du command reports infinity as disk usage

I'm trying to get the total size of what's stored in my home directory. To my surprise, it reports infinity after a few seconds: /home/user $ du -sh . Infinity Huh? I'm pretty sure there are no ...
4
votes
3answers
203 views

Sort all directories based on their size

I'd like to sort all the directories/files in a specific directory based on their size (using du -sh "name"). I need to apply this command to all directories in my location, then sort them based on ...
4
votes
3answers
965 views

du gives two different results for the same file

I am a graduate student of computational chemistry with access to a Linux cluster. The cluster consists of a very large (25 TB) fileserver, to which several dozen compute nodes are connected. Each ...
13
votes
1answer
372 views

Why is /dev full?

The /dev.. is full: SERVER:/dev # df -mP /dev Filesystem 1048576-blocks Used Available Capacity Mounted on udev 12042 12042 0 100% /dev There is no ...
2
votes
2answers
127 views

du reports size for a directory 4 KBs more than the sum total of the contents

ravbholua@ravbholua-Aspire-5315:~/CCPP/HelloWorld/das/das1$ ls ./control amer calls q1 q2 q3 quit.c RCS SCCS ravbholua@ravbholua-Aspire-5315:~/CCPP/HelloWorld/das/das1$ du ./control 20 ...
2
votes
1answer
237 views

How to monitor per user disk usage in Linux

I have local disk with 2T capacity attached to a host. Nearly 60 user home directories are stored on this disk. Currently no disk quotas are enabled. I need monitor the disk usage of individual ...
3
votes
1answer
94 views

Getting size of directories and exclude some folders

I have an directory structure like this: application1 application1_edit application2 application2_edit Is there any way to get the total size for every folder (including sub-directories) and ...
3
votes
1answer
1k views

List a directory, including subdirectories, with file count and cumulative size

Is there a way to list out the content of a directory including subdirectories with a file count and cumulative size? I would like to see: Number of directories Number of sub directories number of ...
6
votes
1answer
226 views

why ls reports a huge file and du does not?

When I run arm-none-eabi-objcopy -O binary add.elf add.bin everything seems to be ok. But, later when I run ls -lh add.bin add.elf this is the output I received: -rw-r--r-- 1 david david 2,6G nov 23 ...
2
votes
2answers
189 views

du on ramdisk displays 3GB less than df

I understand there's often a some discrepancy between du and df but when I du my ramdisk it occupies 13G, whereas df shows it's using 16GB. This seems quite a big difference. Is this normal? ...
0
votes
0answers
31 views

lde (linux disk editor) open just few beggining blocks

I have installed lde (linux disk editor) to verify some data but I see just only up to 0xB670 block. But it's strage sometime the last block in the page is 0xB4B0 and the next is 0xB0C0. And from ...
0
votes
1answer
147 views

df showing same usage statistics for different mounts

I've run the following df command on my system and get the following output: Filesystem 1K-blocks Used Available Use% Mounted on //loonie/Market ...
1
vote
1answer
50 views

How can I create a variable for just the Size, Used, and Available of df?

Say I want to create variables, one for each the size, used, and available when using df. How can I create variables for each? Is there an option that returns just one of these things? directorySize= ...
1
vote
1answer
154 views

“df -h” and “fdisk -l” in amazon server [closed]

When you do a df -h you can see: Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7 . 9G 1.7G 6.2G 22% / But, when you do fdisk -l you see: Disk /dev/xvda1: 26.8 GB, 26843545600 bytes 255 ...
4
votes
2answers
236 views

Why does du report a size of 0 for some non-empty files on a HFS+ partition?

What is the explanation for the difference: $ ls -l /Applications/Safari.app/Contents/Info.plist -rw-r--r-- 1 root wheel 15730 11 jui 15:02 /Applications/Safari.app/Contents/Info.plist $ du -sh ...
0
votes
1answer
352 views

RHEL - df -h v/s graphical disk usage analyzer tool

I am trying to understand the disk usage in my RHEL system. When I run the Disk Usage Analyzer tool graphically, my screen shows the below output. However, if I run the command df -h I get the ...
0
votes
1answer
322 views

No Space left on device - Debian

when Im new to linux and try to run this below code apt-get -f install getting below error: Checking the available space df Tho output How to increase the available space in /usr path?
1
vote
3answers
270 views

What's the difference between fdisk -l and df -h?

In my ubuntu system, I want to have a look about my system disk info. When I use fdisk -l without sudo, I get nothing. But with sudo fdisk -l, I only get a device /dev/sda1, but when I use df -h, I ...
1
vote
1answer
301 views

Wrong output of du?

I think my du command is confused. % du -shc DIR ... ... 6123941496 total % du -shc DIR ... ... 6.1G total % du -sc --si DIR ... ... 6.6G total I've tried giving LANG=C and ...
2
votes
3answers
145 views

How to extract the file size with du

I'm using du to get the file size of the result archive in a packager script: > du -smh archive.zip 51M archive.zip I'd like to assign just the 51M part to a variable, to be able to print: ...
0
votes
2answers
838 views

Regarding the output of “df -h” in Linux

Regarding the output of "df -h" in Linux. [root@]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 193G 82G 101G 45% / tmpfs 1.9G 272K 1.9G ...
5
votes
1answer
178 views

How to monitor top applications using CPU (and IO if possible) in a graph?

I need to find what and when these applications used so much CPU (and IO if possible too). This should be in a graphic timeline like we see in GNOME System Monitor CPU History. I also want to compare ...
6
votes
5answers
235 views

Get filesystem name and usage with `df -h`

df -h | grep test | sed -e 's/*%.^ //g;s/.*[ ^I]//' Output: /test /test/drv0 /test/drv1 df -h | grep test | cut -d '%' -f1 | sed -e 's/*%.^ //g;s/.*[ ^I]//' Output: 10 20 15 I want to ...
1
vote
0answers
105 views

Limiting the total size of samba's vfs_recycle by pruning oldest deleted files first

Running SerNet Samba 4.0.9 on CentOS 6.4 serving as an AD DC and fileshare for XP clients. Added recycler per the example here. My concern is that the recycle dir will eventually grow large. ...
2
votes
2answers
523 views

the difference in used hard drive space as shown by df and du is HUGE!

It seems that du discounts the #open files when calculating the disk usage, and this hit me when I saw that df is showing 100% usage, while du says only 40% is in use. when i looked up on this, i ...
4
votes
4answers
1k views

DU: only show folders at depth

I'm getting output from du -h like the following: 103M ./.wine/drive_c/windows/mono/mono-2.0/lib/mono 103M ./.wine/drive_c/windows/mono/mono-2.0/lib 129M ...
4
votes
1answer
2k views

How do I reduce the size of locale-archive?

I have a need to reduce the size of the locale-archive file on some of my RHEL6 systems. Here is that file on my system: [root@-dev-007 locale]# ls -l total 96800 -rw-r--r--. 1 root root 99158704 ...
1
vote
1answer
61 views

Why does Debian under-report the space available when installing Qt?

I want to install Qt on my Debian but it doesn't detect the whole free space! I tried to install it in /home/Qt but it says that only 23.87 MiB of space is available while df -h says that there is ...
0
votes
0answers
31 views

Howto get the “relative size” of two directories [duplicate]

Consider two directories dirA and dirB. Suppose dirB consists to a part (P1) of hardlinks which points to files in dirA and to a part (P2) of files which are not hardlinked to files in A. Is there a ...
1
vote
1answer
1k views

Is there any way to check df -k hanging for nfs mount issues?

I am trying to write a script for such failure scenarios. In a scenario where maybe, if remote connection is lost, df waits for the remote server to respond (looks like df is hanging). I know I could ...
3
votes
1answer
157 views

file size shown by “du -k” is different in different file systems (PRAMFS and FLASH)

I have a file "xyz.log" which is of size 1.72MB In FLASH file system : If I run du -k xyz.log output is 1761 xyz.log. I copied the same file to RAM storage and run the du -k xyz.log output is 221 ...
3
votes
2answers
2k views

/var partition gets full what's the solution?

If /var partition gets full on Production server then what's the solution ? Below are my workaround: If it is LVM Partition then we can extend it online. We can compress logs. We can remove old ...
3
votes
3answers
6k views

Shell script to send an alert mail if disk usage exceeds 90%

I am new to shell scripting and want to implement a script on my server which will automatically send email alerts if the disk usage goes over 90% and second email alert when it goes over 95%. My ...
4
votes
4answers
742 views

How to find out what is wasting space on “/”?

I can find out what is wasting space with this: du -sm * | sort +0nr | head -30 But what if "/" is filled 100%, and there are many mountpoints, ex.: /foo, /foo2, etc. How can I get a list of ...
1
vote
0answers
568 views

why is df update slow?

When I remove large files, then use df to check the disk usage, often it takes a noticeable amount of time to update the disk usage percentage appropriately. This affects several data management ...