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

grayson
asked Aug 31, 2019
4 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

View More
linuxhelp
answered Aug 31, 2019
0

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

View More
muhammadali
answered Feb 20, 2023
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.

View More
muhammadali
answered Feb 20, 2023
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.

View More
qureshi
answered Feb 21, 2023
Your Answer
||||
 
100:0