BĐT: \(\left|a\right|+\left|b\right|\ge\left|a+b\right|\)
\(\Rightarrow m=\left|x-1\right|+\left|x-5\right|\)
\(=\left|x-1\right|+\left|-\left(x-5\right)\right|\)
\(=\left|x-1\right|+\left|5-x\right|\)
Theo BĐT ta có: \(m=\left|x-1\right|+\left|5-x\right|\ge\left|x-1+5-x\right|=4\)
Vậy: \(m_{min}=4\)