0

I'm quite new here. I downloaded the Linux doc through sudo apt install linux-doc and even linux-source. When I access its files all I get is changelog.Debian.gz and copyright. The issue is that I need to grep -rli "e1000" /usr/share/doc/linux-doc*, and it was supposed to show me something, but it didn't. How can I deal with the changelog.Debian.gz?

Here is the screenshot.

enter image description here

karel
  • 122,695
  • 134
  • 305
  • 337
  • What exactly is your end goal here? You can use zgrep in place of grep to search .gz files (although it doesn't support the -r option). Or view the file with less (which uses zcat under the hood). – steeldriver Jan 14 '25 at 02:12
  • 1
    i was doing a assignment question about it: Install the kernel-doc package in Fedora or Red Hat Enterprise Linux. Using grep, search inside the files contained in the /usr/share/doc/kernel-doc* directory for the term e1000 (case insensitive) and list the names of the files that contain that term. im using Ubuntu so i download linux-doc instead and it suppose to output something like this : ./Documentation/powerpc/booting-without-of.txt ./Documentation/networking/e100.txt ... – Nguyễn Khang Jan 14 '25 at 02:35
  • @NguyễnKhang Fedora is not Ubuntu. Ubuntu is based on Debian and typically has totally different package naming convention from Fedora/Redhat. Do you assignment on Fedora or RH; not Ubuntu - or you may get very unexpected results. – vidarlo Jan 14 '25 at 05:51
  • The E1000 Ethernet card? – andrew.46 Jan 14 '25 at 07:05

1 Answers1

1

You can get a list of files in the package using dpkg -L, e.g. dpkg -L linux-doc.