On Wed, 19 Jan 2000,  Jeff wrote about,  Equivalent Commands:
> Hi All,
> 
>       I am wondering if there are Linux commands that are equivalent 
> to the MS-DOS commands:
> 
> mem/c  ( output is used memory and available memory )
> dir  ( part of the output is the amount of *free* disk space )
> 
> Yah, I know ls ~ dir.  I can't find a way to display the free disk 
> space with ls and I don't even know if ls is the proper command.  A 
> pointer to the appropriate man pages would be appreciated.

Equivalant no not exachtly, but it can be done with 2 commands, or
even defined with an alias in your profile script.

mem /c = "free" to the extent of showing all memory of te system and how its
being used or stored.
mem /c = "top" will show all running processes and how much memory they are
using.
There are so many commands and so many command line options for each
program.

df = show disk usage, once again there are command line options for
showing different details and details in differeant formats.
df shows all mounted partitions, remember that unix systems show all
details, so the df command shows all of the mounted filesystems, be they
dos filesystems ext2 or whatever. 
When df is invoked with  -t ext2 ie;
df -t ext2 it will only show mounted ext2 filesystem details.

Remember one thing, unix systems show what you ask, dos systems show 
only what Bill wants you to see.

man pages concerned.

man free
man df
man ls
man top
man ps

A simple command line trick to make it comply to you question would be
something like the following and by this example i mean there are many ways
to make  linux system commands look like DO$ commands, altho the output
will be rather different.

ls -al ; echo ; echo -e "Disk Usage\n" ; df

The above could be entered into your $USERS profile which is normaly
/home/user_name/.bash_profile

alias dir='ls -al ; echo ; echo -e "Disk Usage\n" ; df'

After makeing the shell reread the file or exiting and loggin in again the
command "dir" will show not only a directory listing but also all free space
on mounted partitions.

If this is all to confusing send me another mail, i will try to explain in
more detail, but i think you will understand.

> TIA
> 
> 
> 
> jeff
> [EMAIL PROTECTED]
> ---
> Die dulci fruere.
-- 
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
Happy New Year

Reply via email to