Results 1 to 10 of 11
Hi there all
I am new to Linux and am trying to figure out how to do the following:
Using a long listing and no process modifiers, what is the ...
- 08-14-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 11
New to Linux and need help figuring things out
Hi there all
I am new to Linux and am trying to figure out how to do the following:
Using a long listing and no process modifiers, what is the swap space amount for the bash command
I have read in books and checked various sites, but still haven't figured out what command I need to type to get this output
I have tried the PS and the top command, but can't figure out how to either read the info or get the correct results
Thanks in advance.
IKELast edited by coyboss; 08-14-2011 at 02:14 AM.
- 08-14-2011 #2
Hello and Welcome!
Are you talking about finding the amount of memory in use, and the amount of SWAP in use, at any given time?
If so, then you're looking for free -m.
If not, maybe you could rephrase?Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 08-14-2011 #3Just Joined!
- Join Date
- Aug 2011
- Posts
- 11
Ok thanks for the Idea Jayd.
Now out of the info that the command gives what would be the swap space amount for the bash?
Here is my output:
free -m
total used free shared buffers cached
Mem: 491 478 13 0 13 286
-/+ buffers/cache: 178 313
Swap: 2015 0 2015
Thanks
IKE
- 08-14-2011 #4
Here is mine, in [code] tags for easier viewing:
The second and third lines are the important ones.Code:total used free shared buffers cached Mem: 1944 1622 321 0 31 1205 -/+ buffers/cache: 385 1559 Swap: 0 0 0
You'll see that I am using 385 MB of RAM, with 1559 free.
Notice, though, that I am not using a SWAP partition. But it would read the same way.
What I'm not sure about with your question: What do you mean by "swap space amount for the bash?"
The command is typed into a terminal window, which generally uses the bash shell.Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 08-14-2011 #5Just Joined!
- Join Date
- Aug 2011
- Posts
- 11
I am not sure what they want either, I am in an intro to Linux class and trying to figur this out is all. Instructors english is lacking and its an online class
Yes I am using the terminal window.
So based on what you are saying then the bash swap amount would be whatever is shown for swap correct??
Thanks so much
IKE
- 08-14-2011 #6
I'm inclined to say yes.
Provided that you are looking for a command, in a bash terminal, to show you how much SWAP is in use.Last edited by jayd512; 08-14-2011 at 03:15 AM. Reason: spelling
Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 08-14-2011 #7Just Joined!
- Join Date
- Aug 2011
- Posts
- 11
Ok we will go with that then.
Thanks for the help
I have some other issues if you want to tackle them too??
IKE
- 08-14-2011 #8
Your question makes no sense. Bash has no swap space, it just uses available memory. Swap is managed by the kernel, and the amount of swap in use depends on the amount of memory in use by the system. Most of the time, with adequate available RAM, the swap in use is zero, but memory is swapped if necessary. I don't know of a way to find out how much of the swapped memory is from bash, if any. I suspect you may be misunderstanding the question.
- 08-14-2011 #9Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 08-15-2011 #10Just Joined!
- Join Date
- Aug 2011
- Posts
- 11
hi Sgo and Jay,
I am not sure what it was exactly that I was supposed to provide.
It was the question that was posed to us by the teacher, and I couldn't find anything anywhere on the net to figure out how to find the info.
So I came to the experts. I undestand it is a confusing question, but like I said the teacher's english is not all that great.
Thanks again
IKE


Reply With Quote
