cancel
Showing results for 
Search instead for 
Did you mean: 
pongo
Flight Engineer
Flight Engineer
  • 2,415 Views

RH124-9.0 ch05s07: Lab: Create, View, and Edit Text Files

Jump to solution

I found a small issue during lab testing in the above mentioned section.

 

Step 1: On workstation, create the lab_file shell variable and assign editing_final_lab.txt as the value. List the student home directory, including hidden directories and files, and redirect the output to the editing_final_lab.txt file by using the shell variable.

It may worth to add use long listing format, otherwise (ls -a) you don't have the required output for the file you can edit later.

1 Solution

Accepted Solutions
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 2,266 Views

What you're ignoring is that you should read all the instructions before beginning the lab. It's a mistake to just jump into it and doing it step-by-step without knowing what comes next.

The screenshot I included, directly from the course content, clearly shows that the output came from a long listing that shows all objects in the directory; in other words: ls -la

I have taken the "real exam" - if you mean the RHCSA. Rest assured that the instructions you will receive will be sufficient to the task you are to perform.

-----

By the way:

These do not lead to real learning:

- copy paste everything (from Show Solution)
- read and manually enter the command (from Show Solution)

This does:

- trying to figure out what should you do and do it (no reason to check Show Solution until the end, lab-grade, and learn from your mistake)

-----

Incidentally, the portal has been changed such that the instructor can disable the Show Solution buttons.

This is a very welcome change.

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College

View solution in original post

8 Replies
pongo
Flight Engineer
Flight Engineer
  • 2,346 Views

This is about to correct the instruction with the required, additional information. 

0 Kudos
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 2,336 Views

I understand your point; however, isn't the screenshot enough?

Tracy_Baker_0-1711569410777.png

 

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
pongo
Flight Engineer
Flight Engineer
  • 2,310 Views

Well, it depends on. There are several ways to do this course.

- copy paste everything (from Show Solution)
- read and manually enter the command (from Show Solution)
- trying to figure out what should you do and do it (no reason to check Show Solution until the end, lab-grade, and learn from your mistake)


Once you issued "lab start" then "lab grade":
- the first two basically checks your capability for reading/copying/pasting (hopefully you will remember something after that too)
- the last one is more likely a learning/practicing approach


Also, the screenshot you provide, just proves something is not ok with your saved printout. Depending on how familiar are you with the linux, you may can figure out the correct flag. (Or just check the Show Solution, I know.)
On real exam facing similar issue could be quite painful, you just worked on a file 3 times and on the 4th task it just turns out something not ok with it and you should redo all from scratch.

0 Kudos
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 2,267 Views

What you're ignoring is that you should read all the instructions before beginning the lab. It's a mistake to just jump into it and doing it step-by-step without knowing what comes next.

The screenshot I included, directly from the course content, clearly shows that the output came from a long listing that shows all objects in the directory; in other words: ls -la

I have taken the "real exam" - if you mean the RHCSA. Rest assured that the instructions you will receive will be sufficient to the task you are to perform.

-----

By the way:

These do not lead to real learning:

- copy paste everything (from Show Solution)
- read and manually enter the command (from Show Solution)

This does:

- trying to figure out what should you do and do it (no reason to check Show Solution until the end, lab-grade, and learn from your mistake)

-----

Incidentally, the portal has been changed such that the instructor can disable the Show Solution buttons.

This is a very welcome change.

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
pongo
Flight Engineer
Flight Engineer
  • 1,889 Views

That would be my next question, if need to read all the instructions before beginning the lab I see no reason the Show Solution button. But as you mentioned: "Incidentally, the portal has been changed such that the instructor can disable the Show Solution buttons." Disabling these buttons solve the issue.

0 Kudos
SamiZiane
Mission Specialist
Mission Specialist
  • 1,796 Views

Hello,

I have a query related to this particular lab exercise, in fact I've been trying this lab multiple team and I keep failing the grading while I am pretty confident that I've completed the requested task with a great accuracy

SamiZiane_0-1717541926050.png

And here is the content of my file

SamiZiane_1-1717541996471.png

Could some one help me here, I don't know what I am doing wrong,

I came at some point to a conclusion that the grading script is expecting something different than the outcomes outlined in the lab instruction

Appreciate your Help
Regards

0 Kudos
Jason_R_Preston
Flight Engineer
Flight Engineer
  • 1,786 Views

The only error I see is the last two lines of your text file. It appears for Step 12 you did a "ls -l Documents/ | tee -a $lab_file" instead of a "ls Documents/..." I believe that is what is throwing off your results as that last line contains all of the FAILED components identified by the grading script. Check the "Solution" for Step 12 and compare it to your command history. 

Best of luck!

SamiZiane
Mission Specialist
Mission Specialist
  • 1,783 Views

Hello,

SamiZiane_0-1717545121624.png

It worked, however the grading script was throwing me the wrong path to diagnose what I was doing wrong ( Altought I am not considering this wrong), because the instruction stated I should list the content of Document with no much details ( it could be long listing or anything )

Thank you for point this out, appreacite your help, but that leads me to think about the exam if this not forgiving in those kind of scenarios 

0 Kudos
Join the discussion
You must log in to join this conversation.