Chapter 3: Linux Basic Commands
3.4 Viewing files
Friends, you don't need an editor to read a file on a server – cat, less, head and tail let you read it quickly. The command used most in real work is tail -f – for watching a live log.
मित्रांनो, सर्व्हरवर फाइल वाचायला एडिटर लागत नाही – cat, less, head आणि tail ने पटकन वाचता येतं. रिअल कामात सगळ्यात जास्त वापरली जाणारी कमांड म्हणजे tail -f – लाइव्ह लॉग बघण्यासाठी.
दोस्तों, सर्वर पर फ़ाइल पढ़ने के लिए एडिटर नहीं चाहिए – cat, less, head और tail से फटाफट पढ़ सकते हैं. रियल काम में सबसे ज़्यादा इस्तेमाल होने वाली कमांड है tail -f – लाइव लॉग देखने के लिए.
| Command | Use |
|---|---|
cat file |
Print entire file |
less file |
Scroll page by page (Space next, b back, /word search, q quit) |
more file |
Older, simpler pager |
head -n 20 file |
First 20 lines |
tail -n 20 file |
Last 20 lines |
tail -n 0 -f requests.log |
Follow new lines appended to the lab log. Press Ctrl+C to stop. |
wc -l file |
Count lines (-w words, -c bytes) |
diff a b |
Show differences between two files |
cat /etc/os-release # which Linux distribution and version?
head -n 5 /etc/passwd
# On a systemd host with access to the journal, inspect a bounded window.
journalctl -n 20 --no-pager
Ravindra Bagale's Tip
Many students open a 2 GB log file with cat and the terminal seems to hang. For big files use less or tail -n 50, and tail -f to watch errors live. And if /var/log/messages is missing on Amazon Linux 2023, don't worry – use journalctl there (Chapter 4.6).
Ravindra Bagale's Tip – मराठी
बरेच students 2 GB ची log file cat ने उघडतात आणि terminal अडकल्यासारखं होतं. मोठ्या files साठी less किंवा tail -n 50 वापरा, आणि live error बघायला tail -f. आणि Amazon Linux 2023 वर /var/log/messages नसेल तर घाबरू नका – तिथे journalctl वापरा (Chapter 4.6).
Ravindra Bagale's Tip – हिंदी
बहुत से students 2 GB की log file cat से खोलते हैं और terminal अटका हुआ लगता है. बड़ी files के लिए less या tail -n 50 इस्तेमाल करो, और live error देखने के लिए tail -f. और Amazon Linux 2023 पर /var/log/messages न हो तो घबराओ मत – वहाँ journalctl इस्तेमाल करो (Chapter 4.6).
Lab
Chala, head -n 5 /etc/passwd aani wc -l /etc/passwd chalva – ya local file madhe kiti lines aahet? Other account sources can also supply logins. Mag less /etc/passwd madhe /ec2-user (Ubuntu var /ubuntu) shodha aani q ne baher ya.
Read a log that answers one question
The delivery counter at Mauli Dairy has a small status page. A coworker tells you that a customer saw an error just after nine in the morning. There is a training file with a few recorded requests. Your task is to check which request failed, what the file can tell you, and what you still need to check. You can do that without opening an editor or changing the application. This lesson teaches how to read a whole small file, just its beginning or end, the matching records, and new lines as they arrive.
Start with a question before choosing a command. If you want to see every line in a small fixture, you can print it. If you need to confirm the log format, read the start. If you want recent output from an app that appends entries, begin with the end. If you want to find a specific request, use a search with the right terms. Each command collects a different kind of evidence. By the end of the lesson you should be able to explain why your chosen observation relates to the incident.
We will create a short fictional log in a new workspace. You need an ordinary account and Bash on a practice Linux system. You can also follow the worked results without using a VM. Use your own files for the write and viewing exercises. A real service may keep logs in a different place or require a specific permission to read them. The tools that appear in this lesson do not need broader access to learn the concepts.
Set up a known file and read its format
A text file stores characters. A line feed, also called a newline, commonly marks the end of a line. In our exercise each line represents one record. A record is one piece of data about an event. An application can use a more complex format in real work, such as several lines for one error or JSON with names and values. Before you count or search, open a small sample to learn how the file represents its records. Here the fields are a time, an HTTP method, a path, a status and a request identifier.
view_lab=$(mktemp -d "$HOME/read-logs.XXXXXXXX") &&
cd -- "$view_lab" &&
printf '%s\n' \
'09:00 GET /status status=200 id=R001' \
'09:02 GET /delivery status=503 id=R002' \
'09:03 GET /images/logo.png status=200 id=R003' \
'09:04 GET /delivery status=503 id=R004' \
'09:07 GET /delivery status=200 id=R005' > requests.log &&
printf 'Training log: %s\n' "$view_lab/requests.log"
The sequence creates one uniquely named practice folder, moves into it and writes five separate lines to the exercise file. Read the path printed at the end. The file contains no real customers and no internet request was made. Each fictional request has its own ID. In a real report, IDs can help connect multiple measurements for a single request. For the walkthrough, the values let you find the same record again without depending only on a minute or a generic status code.
Pick one row and explain it in full. The time of the second row is 09:02. The method is GET and the path is delivery. A status of 503 means service unavailable in HTTP. The row associates that result with R002. It does not give a cause by itself. For example, an application or an intermediate component might have decided the request could not be served. If you were investigating a real event, you would compare the relevant application and proxy evidence from the same request and time window.
Now list the file with a size before printing it. You can use the short read below to see the whole fixture. If you found an unknown large file in a real support folder, start with its type and size instead. Leaving a terminal waiting while a tool writes a very long stream makes it harder to find the one result you need. A brief observation or a pager can be easier to explore. Restrict reads to resources you have a reason to see, and take care when sharing logs that contain personal information or credentials.
ls -lh -- requests.log
cat -- requests.log
The long listing shows the path's size, permissions, owner and other fields. The contents read shows the five test records in the order we wrote them. The compare point is simple: file metadata can show which file and approximate size you are about to read, while cat shows the contained text. A date or owner in a listing alone does not tell us which HTTP status a record contains. Read the result at the level it measures.
Use a small window before deciding what to search
Use head to preview the start of a file and tail to preview the end. With the ordinary count option, the number you pass is a line count. The first two rows of our sample show where the file starts and the first 503. The last two show one failure followed by a success. Predict both outputs before you type. Compare the labels with the five records you originally wrote. You should be able to explain why seeing one failure near the beginning does not show the latest outcome.
head -n 2 -- requests.log
tail -n 2 -- requests.log
tail -n 1 -- requests.log
The first command starts with R001 and includes R002. The second starts with R004 and ends with R005. The third has only R005. Read the method, path and status together. An earlier failure for one path and a current success for a different path would not prove the original route recovered. In this fixture the latest sample is another request to delivery, so it is relevant. A real recovery claim may need more than one request and should describe the time and exact path checked.
There is a reason to say “last lines of the file” when explaining tail. In an append-only log that is a common way to see recent events. If a report is sorted by some other field, or if multiple producers buffer their records, the last lines can reflect a different order than the event times. Look at the fields and the source. If someone supplies a sorted export, check its sort order before using the bottom as the latest evidence. An inspection is worthwhile only when you know how to interpret the file.
To show all lines with numbers in a small text file, you can use a suitable line-numbering option for your tool. Numbering a line makes it easier to refer to in the exercise, but a line number can change if earlier lines are inserted. A request ID is more stable for comparing logs from different sources. When you make a note, include enough information that another person can find it even after a new line appears. Use the timestamp and identifier rather than just saying “the second line.”
Try another short preview with ten lines on this five-line sample. Asking for more rows does not create new records. The command can return all the available rows. If it shows fewer than expected on a real file, check whether you chose the correct file, whether the app has written that many lines, and whether rotation moved older records. This builds a useful instinct: an output limit tells the tool how much to show, while the input determines how much it actually has to show.
Move through a longer file without rewriting it
A pager shows a long text document one screen at a time. When less is installed, open the sample with less requests.log. Press Space to move forward a screen and use b to go back. You can type a slash followed by a search expression and press Enter. Try searching for R004. With ordinary settings that should bring the request identifier into view. Press q when you want to return to the shell. The viewer is designed for reading, so there is no need to remember an editor save command.
Pay attention to where key commands are being read. While the pager is open, keys go to the pager. After you quit, input goes to the shell again. If you type a shell command and see it behave strangely inside a viewer, look for its status line and quit the tool with its documented key. This distinction also helps when you open the manual, which often uses a pager. Try the exit key on a small known file until you are comfortable returning to the terminal prompt.
The sample may fit on one screen and the viewer may appear to have little to do. That is fine. For practice, add a second disposable file with more fictional rows and open it. Search for a line you know is near the end, then read neighboring records to understand its context. If you use a pattern with special regular-expression characters, decide whether you meant those characters literally. Our request identifiers avoid that distraction for the first exercise. A focused search helps you navigate without losing the actual line that answered your question.
Some environments provide more or another pager. The keys and features can vary. Check the installed tool's help when a shortcut is different. The basic idea remains useful: let a viewer read without editing and keep your position as you inspect a large result. For a small lab run you might switch back to a bounded command such as head or tail to save an excerpt. Save the full reference path and time separately so the excerpt remains understandable.
Reading data also requires judgment about the kind of file. A reporting tool can produce a compressed log rather than a plain text file. Printing its raw bytes makes little sense as a text inspection. With a local gzip sample you control, use a suitable decompression reader such as gzip -cd to write decoded data to standard output, then send it to a viewer or a bounded command. Check errors in each part when you build a pipeline. Keep the original compressed fixture and compare the decoded result with an expected record if you are verifying an archive.
Search for a known value and interpret empty results
Suppose the coworker remembers that the request ID ended in 004. Search for the exact temporary ID before looking at all failures. GNU grep -F treats the pattern as literal text. This is useful when you already know the characters you want and do not want to treat punctuation as part of a regular expression. Add -n when you also want the line number. Start with an identified input file so you can tell which source produced a matching result.
grep -nF -- 'id=R004' requests.log
grep -nF -- 'status=503' requests.log
if grep -F -- 'status=404' requests.log; then
printf '%s\n' 'A matching status was present'
else
printf 'Search status: %s\n' "$?"
fi
The first command should show the fourth record with a line number. The second should show the second and fourth records. The third should print no matching line. Capture its status before asking the shell to do anything else. GNU grep uses one for no match, which should be the value shown by the final line. In a script where a missing match is normal, handle that result deliberately. You can report “no matching 404 record in this file” as a specific observation rather than “there were no errors anywhere.”
Now try searching for a missing input name beside the real log. An input error should look different. GNU grep normally prints the failure message on standard error and returns two for an error. This is an observation about the check, not proof about the contents of the missing resource. If you only filter the command’s ordinary output, you may see an empty stream in both the no-match and unreadable cases. Use exit status as well as what is visible on the terminal to tell them apart.
A broad substring can match an incidental value. If a message contains the text “example status=503,” a literal search will find that phrase even when the recorded response is something else. In a report with a reliable field format, decide which field represents the status and check exactly that field. In this fixture it is always the fourth space-separated field. In a real mixed-format application log, find its documented record format and use a suitable reader. Do not claim a total for incident reports without knowing what counted as one record.
awk '$4 == "status=503" { print $1, $3, $5 }' requests.log
Read that command as a condition and an action. For each record, the condition compares its fourth field with the exact marker. The action prints the first, third and fifth fields, which are time, path and ID in this toy layout. You should see 09:02 and 09:04 for delivery with IDs R002 and R004. Explain those rows in the same order as the file. The tiny fixture makes it easy to check whether the field-based search agrees with the earlier literal one. Change the format and the field indexes might need to change too.
Be clear about a pipeline. If you use a filter and send its normal output to a counter, a missing input can leave the counter with zero lines to count. A success status from the counter does not prove that the previous input was readable. Observe the search alone first when you are learning it. In a Bash script, consider the statuses from the pipeline and decide how to handle an earlier failure. State whether a valid search with no match should fail the job or produce an ordinary zero result. Those are different decisions in a report.
Count lines, words or bytes according to the question
Ask whether you need a quantity of records or a storage measurement. wc -l counts newline characters. In the five-record fixture each row ends in a newline, so the count matches the number of records. wc -w counts words according to the tool's interpretation of whitespace, and wc -c counts bytes. A byte count tells you how large the content is in storage units. It does not tell you how many readable characters appear in every encoding or how many valid requests occurred.
wc -l -- requests.log
wc -w -- requests.log
wc -c -- requests.log
printf 'first row\nsecond row' > partial.txt
wc -l -- partial.txt
Read the first answer as five newline characters. Because we deliberately wrote five complete rows, that is five records in this exercise. The partial fixture includes a first line ending in a newline, plus text after it with no newline at the end. GNU wc should count one newline, even though a human can see two pieces of text on two display lines. Keep this difference in view when you inspect a file still being written. A count of newline characters can exclude a trailing unfinished row.
Try a second measurement: how many of the five rows record delivery, and how many delivery requests have 503? Count by the right condition, not by the number of words in the file. Our delivery path appears on R002, R004 and R005. Only the first two have the failing status. The fraction for this small sample is two out of three for delivery, or two out of five for all listed requests. Those results differ because each has a different denominator. Record which one you mean before calculating it in a script or explaining it to a coordinator.
In a bigger incident report, define the start and end times and what counts as an error before counting. A valid request can return a code that is expected for the operation, such as a certain client error for a deliberately missing test page. A code by itself does not show whether an actual customer failed to complete a task. Check the exercise goal and the source. A report saying “two selected delivery requests returned 503 within these five fixture rows” is precise enough for a classmate to reproduce.
When a command accepts multiple files, read the output labels. wc can print a result for each file and a total. If you want to know how many entries are in the current log, use its own row. The total might include yesterday's archived records as well. In the lab, run a count for both the complete and partial files and predict that their newline counts add up to six. Then locate each count and the sum before recording a conclusion.
Follow new entries and observe a known change
A follow command stays open to display data written after it starts. Try it with your own fictional log. Write the full path to the exercise file in your notes, then open two terminal sessions connected to the same lab machine. In the first, use your verified path and follow only the log you created. In the second, go to the same workspace and append a single labelled line. The result you want is that the new text appears in the first window without restarting the viewer.
For the following command, use the shell where the view_lab variable was set during setup or supply the exact path you stored in your notes. Check the current directory and hostname in both tabs. The text on your laptop looks similar when the sessions are connected to two different machines. If your second tab writes to the wrong host's file, the first tab can stay quiet even though your append appeared to succeed. Compare host and file path before debugging the program.
tail -n 0 -f -- "$view_lab/requests.log"
The zero-line option means you begin from the end instead of displaying the old content. The follow option keeps reading new data from the file. At first it should stay quiet. In your second terminal, enter the exact workspace from your notes, confirm it with pwd, and append the following record once. It is a sample request with a different ID so the new line is easy to identify. Wait briefly for the follower to report the write.
printf '%s\n' '09:12 GET /delivery status=200 id=R006' >> requests.log
The first terminal should now show R006. If it stays quiet, first check whether the writer saved the line in the expected file by doing a fresh bounded read. Confirm that both terminals use the same full path on the same machine. Check whether the writer succeeded and gave the line a newline. In other situations an application can buffer data before it reaches the file. A known append from your own shell removes that uncertainty from the first exercise. Press Ctrl+C in the first terminal to stop the viewer and return to the prompt. This action stops the follower and leaves the file as it was.
Use this demonstration to understand what an open file means. In GNU tail, the ordinary follow mode normally keeps following the open file descriptor. A descriptor is a process's reference to an open object. If a log is rotated, the application may rename the old file and open a new file under the usual name. A follower that still refers to the old object can miss the new file's entries. GNU tail -F follows by name and keeps trying to reopen that name. Check which behavior the installed implementation offers before using it for a real log that rotates.
You can reason through rotation on paper if you are new to file changes. Write two boxes, old file and new file. The visible log name originally leads to the old file. After a rotation the renamed old file keeps its recorded data, while a fresh file takes the usual name. Draw one arrow from an already open descriptor to the old file, and another from the usual name to the new file. That model explains why a new read of the name and an old follower can provide different results. Neither observation alone says that records were erased.
Some Linux services write to a journal instead of a text log at the location you expect. On a system using systemd, a query such as journalctl -u with an authorized lab unit can narrow the records to one service. Its follow option can show new journal records. Check the distribution and the service's own documentation to learn where it records events. A missing conventional log file can indicate a different logging configuration. The useful next step is to inspect the configured journal or log, not to create an empty file with that familiar name.
Compare two observations before you report a change
Viewing files also helps you review a configuration or a report. A size and date can describe the file without telling you which lines changed. Use a text comparison when you need to explain the change. In a new pair of files inside your lab, write a two-line report with a count of two errors, and another with a count of three. Leave the titles the same. Then use a unified diff to read enough context around the changed line. This is a common way another student can review your conclusion.
printf '%s\n' 'Delivery report' 'Selected errors: 2' > report-before.txt
printf '%s\n' 'Delivery report' 'Selected errors: 3' > report-after.txt
if diff -u -- report-before.txt report-after.txt; then
printf '%s\n' 'Reports are identical'
else
printf 'diff returned %s\n' "$?"
fi
The labels at the top identify which argument is the old file and which is the proposed one. A changed line from the first appears with a minus in the comparison. The second file's version appears with a plus. The matching title appears as context. GNU diff uses status one when it successfully compares files and finds that they differ. Other errors, such as a missing input, should be handled separately. In this fixture you should observe the known line change. If the intended report has other changes, go back to the record count or written file before accepting the draft.
Use a byte comparison instead when you need to know whether two saved fixtures are exactly equal, and you do not need a line-by-line explanation. Equal contents can have different timestamps or modes. A text diff can help a learner explain why a change matters, while an exact byte check can establish that the data copied correctly. To close the lesson, write which measurement you would use when comparing two delivery counts, and which one you would use when verifying a copied archive. Make the choice based on the intended evidence.
Turn an excerpt into a support note
Your coworker wants an answer to the opening question, and the practice window contains five original records. Report that the two delivery requests labelled R002 and R004 returned 503 at 09:02 and 09:04. A recorded request R005 at 09:07 returned 200 for the same route. This is an observed success after two failures in the fixture. It does not identify a failing dependency or promise that all later users succeeded. Describe the check you would do next, such as finding matching application records for the failed IDs in a permitted environment.
Decide whether to include the later appended R006. It belongs to the follow experiment and arrived after the original fixture was counted. If someone asks for a count covering only the first five rows, keep R006 outside that result. If you are reporting the whole file after the append, you have six records, with four delivery requests in total and the same two 503s. Say which time range and data version you used. This makes your number reproducible after new content is added.
Consider another possible result. The log filename is correct but the reader has no permission. The tool prints a denial. Tell the coworker which resource and operation were denied. Do not quote unrelated paths or adjust the whole log directory to make the problem go away. Ask the person responsible for the required read access or a suitable redacted extract. If you receive that extract, compare its time range with the question before you call the search complete. This habit makes a viewing task possible without broad access.
A useful support handover provides a small sample and leaves out unrelated information. Check whether real logs contain tokens, customer details or complete request contents before sharing them. Use a fictional example for a class demonstration. When a colleague needs a real request identifier, include the appropriate time window and source so they can find it. Explain which entries demonstrate the observed behavior and write one next check. The goal is to help someone reproduce your reasoning without having to scroll through every line you saw.
Run the reading exercise independently
Ask another learner to prepare a five-row sample with two paths, at least one success and at least one failure. Agree that each row has a time, method, path, status and ID. Before looking at any result, predict which command will answer each part of the task. First identify the format, then read the last two lines. Find one selected ID and count the matching status records. Name which row matches and whether it was a result of the same request path. Hand over your steps and the observed outputs in a short note.
Include two negative cases. Use a real input with no matching ID, then an input name which the trainee did not create. Compare both status results and error text. A valid no-match result should lead to a statement about the examined file, while a failure to open the input leaves the question unanswered. Confirm that an ordinary count of pipeline output could hide the difference if the earlier status is ignored. This gives your picture of file reading an important final layer: the number printed after a failed check is not always an answer.
For a live-view practice, make sure the open follower belongs to one disposable file and append exactly one record in the second window. Your result should be the new identifier and its status appearing in the first window. Stop the follower and check its last recorded line with a separate bounded read. If you tested rotation, verify which old and new paths exist before cleaning up. Leave the workspace before removing the same disposable files you created. If you keep the practice log, label it clearly as fictional to avoid confusing it with operational evidence.
Choose the file that actually holds the answer
Practise with the distribution file you met at login. A short read from /etc/os-release can identify the operating-system release on a Linux lab host. It is a reference file for the running environment, not a log that lists every event that occurred. When you write a note from it, give the field or line that names the distribution. A colleague can compare the same field on their machine even if the order of fields differs. Treat file type and purpose as a guide to selecting a reader.
The account list makes another good example. A local file such as /etc/passwd holds local account records on a conventional Linux machine. One row gives information about one recorded local account and can describe a service account as well as someone who signs in. A count of that file's newline characters is not a count of people in the organisation. Some systems resolve accounts through additional sources such as a directory service. If you have a specific permitted account question, look at the source the system uses to resolve it. Report a local-file count as the thing you actually measured.
A missing log is another input clue. On a Linux VM configured for systemd's journal, a text file path shown in another trainer's video may never be created. Identify the intended service and the configured destination, then use the unit's records if available to your account. If the lesson asks for recorded evidence and your test app has only its current console, observe a new event in that console. Describe which source you used. Creating an empty file at the common log path produces a new file with no relationship to the app unless it is configured to write there.
In the dairy case, you could receive two different extracts with similar timestamps: the web request report and a report from the stock service. Write the source and purpose on each before comparing. A web response shows what reached the requesting client. A stock service can report a separate step, perhaps that an update succeeded or was waiting. Match a documented identifier or other agreed context rather than assuming identical minute values describe the same work. That is how you turn several small reads into a clear description of what you observed.
Answer viewing questions with evidence
How would you inspect a log with millions of lines?
I would identify the source and intended time or request first. I would inspect its type and size, then use a bounded preview or pager rather than printing the whole log. With the format confirmed, I would use a focused search on the relevant input. I would report the matching timestamp and identifier and check whether the input was readable. This gives someone else a short result they can verify.
Why can a follow command stop showing new entries after rotation?
The original follow operation can keep a reference to the old open file after that file is renamed. The application may be writing to the new file under the usual log name. I would check which path is being written and use an appropriate name-following option on the installed tool if the design requires it. I would send or observe one harmless known event to confirm the new output.
What is the difference between an empty grep result and an unreadable file?
GNU grep normally returns one when no selected line is present and two when an error occurs. I would check the input path and capture the status immediately. In the valid no-match case I can report that the term was absent from the examined file. An input error means I have not completed the test. I would report or correct that access problem instead of recording zero incidents.
Why might wc -l report a different number from the visible text rows?
It counts newline characters. A final piece of text after the last newline is visible but does not add another newline to the count. Also, one application record can span several lines in some formats. I would confirm which format and count the report needs. When counting events, I would filter or parse event records according to that format.
What does a difference report prove after you compare two drafts?
It shows a difference between the named input versions at the time you read them. I would check the source and destination labels and the actual lines. I would not assume that every difference is wrong. The task tells me which difference I expect, and a separate target check would tell me whether the revised draft is being served or used.
Check your understanding
You only need the two final records of the practice fixture. Choose between head -n 2, tail -n 2 and cat as the most direct command.
Answer and reasoning
Use tail with a count of two. It reads the end of the file. Head begins at the first record, and cat prints the entire fixture.
In the original fixture, two of the three delivery requests failed. What denominator would you use to report the fraction of failed requests for that path: three, five, or two?
Answer and reasoning
Use three because the question is about all listed delivery requests. Five would describe all paths in the original fixture, and two is the numerator for delivery failures.
A grep search returns status one for a readable file. Choose the explanation: no match, the file was definitely missing, or the shell removed every matching row.
Answer and reasoning
No match is the expected GNU grep result. A missing input raises an error and normally gives status two. Check both before writing a summary.
You created a file containing two pieces of text separated by one newline, with no final newline. What will wc -l count: one, two, or the number of bytes?
Answer and reasoning
One. It counts newlines rather than counting visible pieces of text. The last unfinished record does not add another newline.
A training app rotated a text log. Which comparison helps explain why a follower stayed quiet: the original open object versus the current named file, the screen colours, or the account's home folder size?
Answer and reasoning
Compare the open object and the file now at the expected name. Following a descriptor can keep reading the old object. A fresh read of the name can reach the new object.
Revision cards
Choose the smallest view
Whole file for a small fixture, beginning for format, end for last entries, pager for navigation, and a focused search for one known value.
Separate no match from failure
A search may return one for no match and a different status for an error. Capture the result before reporting a count.
Confirm what you counted
A line count measures newline characters. Records and bytes are separate units. Use a documented format to count events.
Follow the expected file
Watching new lines depends on the file or name you follow. Check the current file when a writer rotates its log.
Describe the observed request
Use the path, status, matched ID and relevant time. A single response can answer what happened without telling you the root cause.
Read diffs in order
The first and second file labels determine what a minus and plus describe. Compare the intended difference before accepting the review.