My Oracle Support Banner

How to check of configuration file's line feed code on Linux OS. (Doc ID 2534478.1)

Last updated on JANUARY 21, 2020

Applies to:

Exadata X7-2 Hardware - Version All Versions to All Versions [Release All Releases]
Linux x86

Goal

The purpose of this document is cause detect for line feed code on configuration files.
Mainly check to configuration file line feed code on Linux Environment.

If line feed code is not correct, configuration file not become enable.

Example:

<Correct pattern : ifcfg-eth0>
---------------------------------
# od -c ifcfg-eth0
0000000 # # # # D O N O T R E M O
0000020 V E T H E S E L I N E S #
0000040 # # # \n # # # # % G E N E R A
0000060 T E D B Y C E L L % # # #
0000100 # \n D E V I C E = e t h 0 \n B O
0000120 O T P R O T O = n o n e \n O N B
0000140 O O T = y e s \n H O T P L U G =
0000160 n o \n I P V 6 I N I T = n o \n I
0000200 P A D D R = X X X . X X . X . X
0000220 \n N E T M A S K = X X X . X X X
0000240 . X X X . X \n G A T E W A Y = X
0000260 X X . X X . X . X X \n N E T W O
0000300 R K = X X X . X X . X . X \n B R
0000320 O A D C A S T = X X X . X X . X
0000340 X . X X X \n
0000346
---------------------------------

<Not Correct pattern : ifcfg-eth0>
---------------------------------
# od -c ifcfg-eth0
0000000 # # # # D O N O T R E M O
0000020 V E T H E S E L I N E S #
0000040 # # # \r \n # # # # % G E N E R
0000060 A T E D B Y C E L L % # #
0000100 # # \r \n D E V I C E = e t h 0 \r
0000120 \n B O O T P R O T O = n o n e \r
0000140 \n O N B O O T = y e s \r \n H O T
0000160 P L U G = n o \r \n I P V 6 I N I
0000200 T = n o \r \n I P A D D R = X X X
0000220 . X X . X . X \r \n N E T M A S K
0000240 = X X X . X X X . X X X . X \r \n
0000260 G A T E W A Y = X X X . X X . X
0000300 . X X \r \n N E T W O R K = X X X
0000320 . X X . X . X \r \n B R O A D C A
0000340 S T = X X X . X X . X X . X X X
---------------------------------

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.