From Fedora Project Wiki

Revision as of 13:45, 21 August 2023 by Sumantrom (talk | contribs) (Created page with "{{QA/Test_Case |description=This test case ensures that the `findutils` package, which provides basic file searching utilities like `find` and `xargs`, functions correctly. |setup= # Ensure that `findutils` package is installed. If not, install it with the command: ``sudo dnf install findutils`` |actions= # Run the command: ``find /usr/bin -name 'ls'`` # This searches for the `ls` command within `/usr/bin`. # Use `xargs` to count the number of lines in `/etc/passwd`. Run...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case ensures that the findutils package, which provides basic file searching utilities like find and xargs, functions correctly.

Setup

  1. Ensure that findutils package is installed. If not, install it with the command: sudo dnf install findutils

How to test

  1. Run the command: find /usr/bin -name 'ls'
  2. This searches for the ls command within /usr/bin.
  3. Use xargs to count the number of lines in /etc/passwd. Run: cat /etc/passwd

Expected Results

  1. The first command should list /usr/bin/ls as a result.
  2. The second command should show the number of lines in /etc/passwd file, which should match with wc -l /etc/passwd.