Useful Ubuntu Commands
  • Useful valgrind flags: "valgrind —tool=memcheck —leak-check=yes —show-reachable=yes —num-callers=20 —track-fds=yes ./test"
  • BashRC addition to go page up/down for history: Add the following to .inputrc and make sure the environment variable INPUTRC is set (to ~/.inputrc):
    "\e[1~": beginning-of-line
    "\e[4~": end-of-line
    "\e[5~": history-search-backward
    "\e[6~": history-search-forward
    "\e[3~": delete-char
    "\e[2~": quoted-insert
  • Apparently, you can setup vim options for specific file types with the following syntax in the .vimrc file:
    If has ("autocmd")
    autocmd BufRead,BufNewFile *.todo :set nonumber tw=80
    endif _
  • You can setup gdb to print map and etc. stl collection values and Eigen structures by putting the .gdbinit in home directory and pointing the address in there to the following stlPrettyPrint directory and eigenGDB directory.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License