Linux C Programming -- nano editor

nano editor

To program using C in linux, first of all, install Ubuntu in Windows. (https://docs.microsoft.com/zh-cn/windows/wsl/install-manual)

Then replace with domestic mirror source.

Next, install “gdb”.

Debug using gdb

Last change the default settings of “nano” editor.

i. change tabsize: edit “nanorc” file (.\rootfs\etc\nanorc)

change tabsize from 8 to 4

ii. change color of comment (.\rootfs\usr\share\nano\c.nanorc)

change color of comment

Recommend two books:

A good Introductory book of C (linux)

Linux C编程一站式学习

Another good Introductory book of C (8051, but not only for 8051)

时间触发嵌入式系统设计模式

Author: Epiapoq
Link: http://epiapoq.github.io/2021/10/19/linux-c-nano/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.