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

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)

Thursday, January 3, 2019

Disconnecting second monitor display from command line

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