Posts

Showing posts from 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

Find files with BOM in linux command line

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

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

Disconnecting second monitor display from command line

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