LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux command question (https://www.linuxquestions.org/questions/linux-newbie-8/linux-command-question-90529/)

satimis 09-08-2003 11:18 AM

Linux command question
 
Hi all folks,

What commands shall be issued to find;

1) Available storage space of a hard drive
2) Available space of each partition
3) Available RAM
4) Download and upload speed

Thanks in advance.

B.Regards
satimis

PhilD 09-08-2003 12:05 PM

A quick answer for 2) is df. This will give you a nice printout of each drive and % used. df -h prints it in human readable (MB KB). I am not sure about the others. You could always calculate 1) from the output of 2).

PhilD

grym 09-08-2003 12:13 PM

1) do you mean total hard drive space or harddrive space available for use?
2) df -hiT
3) free -m
4) not sure exactly what your looking for here but you could try netwatch

TheShadow 09-08-2003 12:51 PM

hellow
for 1 and 2 you can use fdisk command type man fdisk for more info use the man command.
to find the available RAM use free command just type free -m.
for the last one you can use the ifconfig.

see ya :cool:

shermang 09-08-2003 02:20 PM

"top" is a beautiful command

satimis 09-08-2003 10:42 PM

Hi folks,

Lot of thanks for your advice. 'top' is a beautiful command providing real time information.

What command shall be used to free 'RAM' when it is coming low?

B.R.
satimis

grym 09-09-2003 12:04 AM

in top pick a process you feel if hogging to much memory and kill it

satimis 09-09-2003 02:47 AM

Quote:

Originally posted by grym
in top pick a process you feel if hogging to much memory and kill it
Hi,

Thanks for your advice.

Could you please advise in more detail.

1) Could I start 'kill' command without exiting 'top'
2) Suppose I want to 'kill' 'kdeinit', 'artsd', etc. under USER, how to make it
3) Suppose I have no idea about the process After 'kill' it would the OS be interrupted.

Thanks in advance.

B.R.
satimis

UltimaGuy 09-09-2003 07:08 AM

You cannot kill a process created by system by logging in as normal user. So any process you can kill as your user is pretty harmless for the system. But if you log in as root, you can easily stop any daemons and find yourself in trouble. And don't kill kdeinit(it starts and controls KDE), and never log in as root.

satimis 09-09-2003 10:23 PM

Quote:

Originally posted by UltimaGuy
You cannot kill a process created by system by logging in as normal user. So any process you can kill as your user is pretty harmless for the system. But if you log in as root, you can easily stop any daemons and find yourself in trouble. And don't kill kdeinit(it starts and controls KDE), and never log in as root.
Hi,

Thanks for your advice.

But I could not execute 'kill' command while login as USER

[satimis@localhost satimis]$ kill top
bash: kill: top: no such pid

What is "autorun" under USER?

B.R.
satimis


All times are GMT -5. The time now is 12:06 AM.