I think it's about time the df and du commands (executables?) were updated to display gigabyte units without one having to do their own calculations from the -m option (display in megabytes). This is one of those "little nothing" annoyances that, at the same time, would positively show new Linux/Unix users that, from pillar to post, stem to stern, sub-basement to penthouse and at all points in-between, open-source solutions keep up to date with the times.
You can (usually) find out who's writing a particular program by checking who wrote the package. On RPM based systems use
, on Debian-based systems
That should get you the coreutils package, which is originally hosted on http://www.gnu.org/software/coreutils/
However, try both commands with the '-h' switch (for "human"), and you'll have sizes in GB too.
However, try both commands with the '-h' switch (for "human"), and you'll have sizes in GB too.
Yes, and there's a reason they put it in a switch. Most commands available in shell are designed to output data extremely consistently so other programs can use it predictably. If you know it'll always report 1K blocks, that's easy to build a shell script around -- but trying to parse mixed units like 115K, 2.2G and 441M would be a nightmare.
Lastly, always, always, always read the man pages before complaining about a lack of feature. You'd have found the -h flags in both commands. You'd also have found email addresses to report bugs to.
can any one suggest me on how to write a update query in perl script for Oracle database and also tell me abt how we can write a code for sending mails with report as attachment to appropriate persons? (1 Reply)
I want to create a script with the php exec() or system() function to execute commands from a remote browser on the webserver. I am open to using Perl or whatever. I am using an Apache2 webserver on Ubuntu.
I have done quite a bit of research on this on google and read lots of responses about... (0 Replies)
I have to
Write a program in C that recognizes the following commands and translates them into much simpler ones
Commands to recognize shorter command
list
L
cd dir
C - dir_length - dir
get file_name G - file_name_length - file_name
Long commands are read from the standard input... (1 Reply)
I have to
Write a program in C that recognizes the following commands and translates them into much simpler ones
Commands to recognize shorter command
list L
cd dir C - dir_length - dir
get file_name G - file_name_length - file_name
Long commands are read from the standard input and... (1 Reply)
hi friends
i am using fedora linux operating system on the server and two clients(with windows os) are connected to it(server ).but here wall and write cmds are not working to send messages from one system to another system .
pls help me (4 Replies)
I am using Fedora 8,Red hat 9.
Whenever we write a new command. Then we goto "/usr/bin" and then place this in this directory.And hence we can use it as a command anywhere from the terminal.
We generally see commands like "trap" which run only in bash shell.We also have other shell specific... (1 Reply)
Hi,
I need to do frequently server down and up. Every time i am using nearly 5 to 6 commands to down and agin i am using the commands to up.
Can anybody help me to write a script to down and up.
which i can use once on unix platform it can down later it can up the server. (1 Reply)
Hi,
I have a database (a simple .dat file) which has multiple records (structure datatype) in it.
I would like to know if we can use write() system call to update/modify intermediate records in this file (using C). If so, could somegive give a code snippet of the same. :-)
Thanks in advance... (2 Replies)
Hello
I want to make simple extension to vi , you know how you want to run some shell command
you do ":! ls -l " , then you go out the vi the command executed and then you hit enter and you back to vi
but now I want to be able to go out of vi and run several command outside of vi .. and in... (3 Replies)