Like 'ddd' , we can see the code while debugging with gdb too ...
Set the '-tui' flag for gdb to enable this feature. and '-quiet' will suppress copyright messages.
alias gdb='gdb -tui -quiet'
Read as many as possible without scrolling
alias tail='tail -n $((${LINES}-2))'
Reading hex data
what most people want from od
Reading hex data
what most people want from od
alias od='od -Ad -tx1 -v'
Create a directory and go into it
md () { mkdir -p "$1" && cd "$1"; }
Write these functions in bashrc file,common in other languages, available in the shell
ord() { printf "0x%x\n" "'$1"; }
chr() { printf $(printf '\\%03o\\n' "$1"); }
Ex Usage:
dinesh@ubuntu:~$ chr 65
A
dinesh@ubuntu:~$ ord a
0x61
dinesh@ubuntu:~$ ord 1
0x31
dinesh@ubuntu:~$
0 comments:
Post a Comment