Linux Kernel Source browsing using cscope

Source code browsing in large projects is always tedious job to narrow down. In repositories like Linux Kernel, where the source code grows everyday needs regular updating and indexing to keep the search efficient and correct. For browsing the source code in Linux Kernel, there are few options and built-in ways to remember when using…

Accessing UART in MSP430F5418

UART is the traditional serial communication protocol used. It offers only two pins RX and TX for sending and receiving characters serially. A microcontroller can have more than one UART. For instance MSP430F5418 microcontroller has two UART’s (UART and enhanced UART). Just read the desired controller datasheet for getting the info. There are two methods…

[Bash Tricks]: sudo to last run command

To re-run the previous command, we can use the below special way in bash.

But the question is, why should i run ‘!!’ instead of using up arrow for previous command. One quick use case would be for running ‘sudo’. We often end up in ‘Permission denied’ error and re-run the same command using…

[Bash Tricks]: Editing wrongly typed command

  We often used to type a lengthy command and realize the error after running the command. To correct this error, either we used to re-type the whole command or edit (after up arrow). This can be easily handled with bash tricks by using ‘^’. Example:

Note the wrong spell ‘loong’ in destination path.…