Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
As you already know,linux takes alot of RAM,but it doesn't need it.So it uses like 500 MB RAM,but when an other app needs it,it gives a part of it to the new app launched.People say that linux does this because it is better and faster.Let's get to my question.When I type top in the terminal it shows me the memory usage with the ''unnecessary'' RAM usage included.How can I see how much RAM it really uses,so without the ''unnecessary'' RAM usage?So how can I see how much RAM it really uses ffor the running processes?I hope you'll understand my question,I couldn't explain it really good.
I have a little question,but I don't think I have to open a new thread just for that.So here it goes.How can I open a file via the terminal?I want to open an avi file in the folder /home/admin/Desktop/goran/
Well you launch the app that you use to "view" that file and normally pass the filename as an argument, for example I would use mplayer to watch videos so:
Code:
$ mplayer /home/admin/Desktop/goran/file.avi
If I were viewing a text file then I would use vim like this:
just a note.
even at this the stats given for RAM usage on Linux are basically useless.
rss for instance multi-counts the shared shared pages common to many other apps etc.
moving into the future thankfully the 2.6.16 kernel adds new reporting and i'm sure apps to parse this won't be far behind.
this will hopefully allow us all to trim some of the fat.
you can see here (search the page for smaps) http://tonnikala.net/linux.php?kerne...ux26&type=full
them working on it
its called smaps /proc/pid/smaps
obviously it ain't right yet from the banter but at least they are trying
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.