diskspace

How to get available/free sdcard space in android with adb command

▼魔方 西西 提交于 2020-01-01 01:57:25
问题 I am trying to get free sdcard space with adb command, but I could not able to achieve. Any suggestions how to get the sdcard space. 回答1: Use df , as with any Linux distro. Not all Android devices may have it, but it usually seems to be available. 回答2: df : Disk space details. adb shell df du : Disk space used by the specified files and subdirectories. adb shell du df -h : Disk space details in KB/MB format. adb shell df -h du -h : Disk space used by the specified files and subdirectories in

Amazon EC2 and EBS disk space problem

我的梦境 提交于 2019-12-31 10:41:08
问题 I am having a problem reconciling the space available on my EBS volume. According to the AWS console the volume is 50GB and is attached to an instance. If I ssh to this instance and do a df -h, I get the following output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 13G 3.0G 81% / udev 858M 76K 858M 1% /dev none 858M 0 858M 0% /dev/shm none 858M 72K 858M 1% /var/run none 858M 0 858M 0% /var/lock none 858M 0 858M 0% /lib/init/rw I am pretty new to AWS. I interpret this as "there is

SonarQube Temp Disk Space

北城以北 提交于 2019-12-31 04:34:25
问题 I'm finding SonarQube is using a lot of disk space in it's temp directory. Is there some sort of clean-up routine that runs regularly to purge this? --- /opt/codehaus/releases`/sonarqube/sonarqube-5.1/temp ------------------------------------------------------------------------------------------- /.. 29.7GiB [######### ] /tmp 92.0KiB [ ] jffi6092968669040435416.tmp 60.0KiB [ ] liblz4-java2192651176366163015.so 20.0KiB [ ] /tc e 4.0KiB [ ] /ror 4.0KiB [ ] sharedmemory If not, does anyone have

Get amount of free disk space using Go

こ雲淡風輕ζ 提交于 2019-12-29 03:20:51
问题 Basically I want the output of df -h , which includes both the free space and the total size of the volume. The solution needs to work on Windows, Linux, and Mac and be written in Go. I have looked through the os and syscall Go documentation and haven't found anything. On Windows, even command line utils are either awkward ( dir C:\ ) or need elevated privileges ( fsutil volume diskfree C:\ ). Surely there is a way to do this that I haven't found yet... UPDATE: Per nemo's answer and

Get free disk space

╄→尐↘猪︶ㄣ 提交于 2019-12-28 08:26:24
问题 Given each of the inputs below, I'd like to get free space on that location. Something like long GetFreeSpace(string path) Inputs: c: c:\ c:\temp \\server \\server\C\storage 回答1: this works for me... using System.IO; private long GetTotalFreeSpace(string driveName) { foreach (DriveInfo drive in DriveInfo.GetDrives()) { if (drive.IsReady && drive.Name == driveName) { return drive.TotalFreeSpace; } } return -1; } good luck! 回答2: DriveInfo will help you with some of those (but it doesn't work

Remote computer drive information is not precise

感情迁移 提交于 2019-12-24 14:13:40
问题 To get the free disk space of the remote computer I am using below code ConnectionOptions options = new ConnectionOptions(); ManagementScope scope = new ManagementScope("\\\\SYSTEM_IP", options); scope.Connect(); SelectQuery query1 = new SelectQuery("Select * from Win32_LogicalDisk"); ManagementObjectSearcher searcher1 = new ManagementObjectSearcher(scope, query1); ManagementObjectCollection queryCollection1 = searcher1.Get(); foreach (ManagementObject mo in queryCollection1) { // Display

Generate disk usage graphs/charts with CLI only tools in Linux

本秂侑毒 提交于 2019-12-22 04:03:32
问题 In this question someone asked for ways to display disk usage in Linux. I'd like to take this one step further down the cli-path... how about a shell script that takes the output from something like a reasonable answer to the previous question and generates a graph/chart from it (output in a png file or something)? This may be a bit too much code to ask for in a regular question, but my guess is that someone already has a oneliner laying around somewhere... 回答1: I would recommend munin. It is

How to get the current free disk space in Postgres?

帅比萌擦擦* 提交于 2019-12-22 03:53:08
问题 I need to be sure that I have at least 1Gb of free disk space before start doing some work in my database. I'm looking for something like this: select pg_get_free_disk_space(); Is it possible? (I found nothing about it in docs). PG: 9.3 & OS: Linux/Windows 回答1: PostgreSQL does not currently have features to directly expose disk space. For one thing, which disk? A production PostgreSQL instance often looks like this: /pg/pg94/ : a RAID6 of fast reliable storage on a BBU RAID controller in WB

How to get the current free disk space in Bash?

本秂侑毒 提交于 2019-12-21 20:45:28
问题 I'm running some operations which constantly eat up my disk space. For this reason I want my computer to make a sound when disk space is running below 2GB. I know I can get an output listing the free diskspace by running df -h : Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk1 112Gi 100Gi 12Gi 90% 26291472 3038975 90% / devfs 191Ki 191Ki 0Bi 100% 663 0 100% /dev map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home but I can't use

Postgresql find total disk space used by a database

帅比萌擦擦* 提交于 2019-12-20 10:59:40
问题 I have more than 50 databases hosted in my postgresql server. I need to move some of them on another host, to free-up some disk space,but how can I measure the disk-space used by each database on my volume? Is there any function exists to get the information that I want? 回答1: SELECT pg_database_size('geekdb') or SELECT pg_size_pretty(pg_database_size('geekdb')) http://www.thegeekstuff.com/2009/05/15-advanced-postgresql-commands-with-examples/ 回答2: You could use postgresql Meta-Commands: \l