Monday, September 16, 2019

Converting linux unix command line line ending in files

Windows use: \r\n
Linux / Unix use: \n

You can use dos2unix command line to convert line ending in files

https://stackoverflow.com/questions/3891076/how-to-convert-windows-end-of-line-in-unix-end-of-line-cr-lf-to-lf

Tuesday, May 28, 2019

Find files with BOM in linux command line

 grep -rl $'\xEF\xBB\xBF' .

Sunday, January 13, 2019

Enlrage, resize bash command line linux history line to remember

nano ./.profile
nano ./.bashrc

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=10000
HISTFILESIZE=20000

Thursday, January 3, 2019

Disconnecting second monitor display from command line

xrandr --output eDP-1 --auto
xrandr --output VGA-1  --off