test exam question from the LPI site: does it make sense?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
First, the correct command is A (disk free [space] plus the dot).
Second using the dot as the argument means the current working directory. However, since df shows the free space on a partition (file system) it will show the information about the file system in which the current working directory resides.
You could have tried each command to see what happens rather than post a question. Then if you didn't understand the results you could have asked about what you found.
Last edited by stress_junkie; 05-14-2009 at 06:39 AM.
Tricky question....I totally understand why you would think they meant "filesystem". Perhaps the way to think of it is: "how much disk space is available to the current directory?".....the point being that directories do not have size limitations---only the partitions (filesystems) that are mounted to them.
On my system, "df ." and "df /" give the same answer---but only because they live on the same partition.
I'm sure there are places on 99.9999999999999999% of unix-like systems where . and / are not on the same partition including yours . Also, on 100% of computer systems there is a place where . and / are on the same partition.
Well, it was early in CA when you posted that. Perhaps more coffee?
As far as the LPI exam (at least when I was involved with the project early on), the intent was to get a bunch of questions and put the good quality ones on the exam and the ones that weren't worded well on the practice tests with the idea that the really bad ones would be replaced over time. Basically in this example, you can expect to have questions pertaining to df and du on the exam, but you should also expect them to be a little more clear in what they are asking.
I'm sure there are places on 99.9999999999999999% of unix-like systems where . and / are not on the same partition including yours . Also, on 100% of computer systems there is a place where . and / are on the same partition.
I'm trying hard to work that one out, and it's giving me an headache.
The question is open to interpretations. One way of looking at it is...
"Which command will show how much free disk space is available (for you/root/userX) in the current directory?"
Now, "df ." is not fully correct if you consider the current scenario
1. "." can be your home directory
2. Root user might have turned on quota on your system
3. Now, if you interpret the question as "... is available for you...", then the answer is not "df ."
(. need not be home, but could be any place on a partition where root/admin has turned on quota for userX )
For that reason and others, the question is poorly written. Since it is poorly written, it won't be on the test, but it is "good enough" to be on the practice test.
Well, it was early in CA when you posted that. Perhaps more coffee?
More coffee will not help this thread......
I'm pretty sure that you are chiding me because I said something that should be obvious---not because I made a mistake.........I absolutely HATE making mistakes--which is why I do it so rarely....
PS:
As I think about it, it's pretty rare for "." and "/" to be the same thing. In fact, if they are, it means you are living on the edge. Anytime that I DO go to /, I leave immediately.
Last edited by pixellany; 05-14-2009 at 11:08 AM.
Reason: Thought of something else clever to say....;)
I don't think it is. I think it should be
Which command will show how much free disk space is available to the current directory
not
Which command will show how much free disk space is available in the current directory
but that aside, I see what they're getting at, which I didn't before.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.