0

How to Print a particular line number of Configuration file On CentOS 7.6

Hello,
I do want to print the particular line number of a configuration file through command line On my CentOS machine.

Thanks In Advance

CentOS Add a comment
grayson
asked Aug 31 2019

Answer

0

SED : sed is a stream editor , a powerful utility in Linux,Unix Systems where it edits,substitutes,inserts,deletes, finds and replace the file without even opening the files..

  • The command to print the particular line number of Configuration file is
  • sed -n 25p /etc/yum.conf

where

n indicates the line number
p indicates the print

Add a comment
linuxhelp
asked Aug 31 2019
edited Aug 31 2019
Post your Answer
0

Thank you for finding the time to publish these records invaluable!

Add a comment
muhammadali
asked Feb 20 2023
edited Aug 25 2023
Post your Answer
0

Really I enjoy your internet site with effective and useful information. It is included good post with lots of our resources.thanks for share. i love this post.

Add a comment
muhammadali
asked Feb 20 2023
edited Aug 25 2023
Post your Answer
0

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill.

Add a comment
qureshi
asked Feb 21 2023
edited Aug 25 2023
Post your Answer