Tutorial 1: Question 5: file size

Problem completing one of the interactive tutorials?

Moderator: drgrussell

Post Reply
fareed
Posts: 4
Joined: Sun Oct 07, 2012 10:07 pm
Are you a robot or a human?: Human

Tutorial 1: Question 5: file size

Post by fareed » Mon Oct 08, 2012 7:47 am

Which file in /home/demo (including hidden files) has the smallest size? Enter the size below:
The smallest size in /home/demo .esd_auth and size is 16

but when i input the value it says Failed

help me for this

drgrussell
Site Admin
Posts: 426
Joined: Sat Feb 12, 2005 8:57 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by drgrussell » Mon Oct 08, 2012 10:34 am

Hi
As you say the answer is 16, but you entered 0.
I booted your machine as you and ran the question using 16 as the answer and it was marked PASSED.
I hope that helps
Gordon.

fareed
Posts: 4
Joined: Sun Oct 07, 2012 10:07 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by fareed » Mon Oct 08, 2012 7:21 pm

I clear Tutorial 1

Thanks for your help

neladok
Posts: 3
Joined: Thu Nov 15, 2012 9:59 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by neladok » Thu Nov 15, 2012 10:02 pm

I to seem to be having this problem I use the command $ du -a /home/demo and it gives me several 4's a 12 and /home/demo being 40 i have put all the answers in in every format but the question still shows as failed. i have gone back through and reread all the steps and even done research outside of linuxzoo. thats where i came up with $ du. and suggestions would be great thanks.

drgrussell
Site Admin
Posts: 426
Joined: Sat Feb 12, 2005 8:57 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by drgrussell » Thu Nov 15, 2012 11:44 pm

Just use ls -al in the directory in question
Du gives directory sizes not file sizes.
G.

neladok
Posts: 3
Joined: Thu Nov 15, 2012 9:59 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by neladok » Fri Nov 16, 2012 7:30 am

thank you that helped a lot! now my question is: thats not in the tutorial or introduction so where did you come up with ls -al and can i get a better explanation of what that command does?

drgrussell
Site Admin
Posts: 426
Joined: Sat Feb 12, 2005 8:57 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by drgrussell » Fri Nov 16, 2012 10:29 am

http://linuxzoo.net/page/structure_io.html

This explains the "-a" and the "-l", but you are right it does not explicitly say they can be used together. However all flags can usually be combined together as one of:
ls -l -a
ls -a -l
ls -al
ls -la

Having said that "man ls" or google probably explains it more completely.
Best of luck
Gordon.

acefactor
Posts: 2
Joined: Sat Jul 20, 2013 9:54 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by acefactor » Sat Jul 20, 2013 9:59 pm

I have ran this question for hours with a fail each and every time. The answer I KNOW is 16 because the file .esd_auth is the file. No matter how many different times I put this answer in it still says Failed. I have even changed the view of the size to human readable with -h and it still remains the smallest (obviously) but the answer was still failed. I am required to take a SS of the 10 questions all in "green" indicating having passed them. This is the only question that will not pass please advise me as to how this could be happening.

drgrussell
Site Admin
Posts: 426
Joined: Sat Feb 12, 2005 8:57 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by drgrussell » Mon Jul 22, 2013 10:52 pm

Maybe just a transient error...
Reboot with a fresh image and try again.
Gordon

acefactor
Posts: 2
Joined: Sat Jul 20, 2013 9:54 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by acefactor » Mon Jul 22, 2013 11:47 pm

Tried the same answer over the course of three separate days with multiple refreshes between them...

drgrussell
Site Admin
Posts: 426
Joined: Sat Feb 12, 2005 8:57 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by drgrussell » Tue Jul 23, 2013 9:11 am

Try it now.

iJOakes
Posts: 1
Joined: Sat Aug 29, 2015 6:18 am
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by iJOakes » Sat Aug 29, 2015 6:22 am

Sorry to bring up a dead topic but, I am having the same exact issue and can figure out a way around it. I've tried it from a fresh image and I've been using the ls command. The smallest size I'm seeing though is 17 but it won't accept that as an answer. I've tried 16 as well and it won't accept that either.

Ganome
Posts: 1
Joined: Wed Jan 13, 2016 1:43 am
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by Ganome » Wed Jan 13, 2016 1:51 am

I'm not really sure what I'm missing. I've got all the other questions answered correctly except this one. I've tried putting in 16 for the answer, despite that not being a valid file size.

Thank you.

I believe that I have figured it out. Unless I'm mistaken, the names in blue do not represent files, and the files in white are the sizes that I need to be looking at. Once I put in 18 as the file size, the tutorial flipped to passed. If you're able to give me a more in-depth answer than that, please do.

Thank you, again.
Attachments
file size.PNG
file size.PNG (78.18 KiB) Viewed 24158 times

drgrussell
Site Admin
Posts: 426
Joined: Sat Feb 12, 2005 8:57 pm
Are you a robot or a human?: Human

Re: Tutorial 1: Question 5: file size

Post by drgrussell » Sat Jan 16, 2016 11:04 pm

Yeah files in blue (and lines in ls -l which start with a d) are directories not files. If the question asks about files then in ls -l the line behind with a hyphen.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests