LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2003, 12:18 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,637

Rep: Reputation: 54
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
 
Old 09-08-2003, 01:05 PM   #2
PhilD
Member
 
Registered: Mar 2003
Location: Iowa, US
Distribution: Gentoo!!, Mandrake 9.1
Posts: 170

Rep: Reputation: 30
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
 
Old 09-08-2003, 01:13 PM   #3
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
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
 
Old 09-08-2003, 01:51 PM   #4
TheShadow
LQ Newbie
 
Registered: Sep 2003
Posts: 12

Rep: Reputation: 0
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

Last edited by TheShadow; 09-08-2003 at 01:54 PM.
 
Old 09-08-2003, 03:20 PM   #5
shermang
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 55

Rep: Reputation: 15
"top" is a beautiful command
 
Old 09-08-2003, 11:42 PM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,637

Original Poster
Rep: Reputation: 54
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
 
Old 09-09-2003, 01:04 AM   #7
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
in top pick a process you feel if hogging to much memory and kill it
 
Old 09-09-2003, 03:47 AM   #8
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,637

Original Poster
Rep: Reputation: 54
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
 
Old 09-09-2003, 08:08 AM   #9
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
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.
 
Old 09-09-2003, 11:23 PM   #10
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,637

Original Poster
Rep: Reputation: 54
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 03:23 AM
General question on Linux Command jch02140 Linux - Newbie 3 08-02-2005 05:10 AM
linux command question markhod Linux - General 2 06-23-2005 11:49 AM
unix command to linux command leonidas Linux - General 1 09-10-2004 01:40 AM
ls command question eastj1974 Linux - Newbie 4 11-18-2003 06:44 PM


All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration