$S=\{ (m,n):m,n \in \mathbb N, m \leq n, m \neq 5\} \cup \{(m,5): m \in \mathbb N\}$.
I have this definition: A partial order $R$ on $A$ is called a linear order (or total order) on $A$ if for any two elements $x$ and $y$ of $A$, either $(x,y) \in R$ or $(y,x) \in R$. But it is not very clear to me.
I believe this is not a linear order because $(1,5)$ is not related to $(4,5)$, but not really sure how to prove this.
It seems to me this is a linear ordering on $\mathbb{N}$.
Let us say $S = S_1 \cup S_2$, where $S_1 = \{ (m,n) \in \mathbb{N}^2 : m \leq n,\, m \neq 5 \}$ and $S_2 = \{ (m,5) : m \in \mathbb{N} \}$.
Let us see it is a partial ordering.
Reflexivity. Let $n \in \mathbb{N}$. If $n\neq 5$ then $(n,n) \in S_1$ because $n \leq n$; $(5,5) \in S_2$.
Anti-symmetry. Suppose $(m,n), (n,m) \in S$. If $n=5$ then from $(5,m) \in S$ we conclude that $m=5$ (analogous for $m=5$); if $m,n \neq 5$ then $m \leq n \leq n$ and thus $m=n$.
Transitivity. Suppose $(m,n),(n,p) \in S$. If $p=5$ then $(m,p) \in S_2 \subseteq S$; if $p \neq 5$ then $(n,p) \notin S_2$, thus $(n,p) \in S_1$ and $n \neq 5$ and with the same reasoning $m \neq 5$, so that we have $m \leq n \leq p$, whence $m \leq p$ and $(m,p) \in S$.
Let us now show that this ordering is linear.
Let $m,n \in \mathbb{N}$. If $m,n \neq 5$ then either $m \leq n$ whence $(m,n) \in S_1 \subseteq S$ or $n \leq m$ and $(n,m) \in S_1 \subseteq S$; if $n = 5$ then $(m,n) = (m,5) \in S_2 \subseteq S$.