Gdb

This artice keep tracks of the most used commands of GDB Write a classic C program. 1 2 3 4 5 #include <stdio.h> int main(int argc, char *argv[]) { printf("Hello world\n"); } Compiler 1 gcc -o main -g main.c Debug 1 gdb main // gdb programname -p [pid] 1 2 3 4 (gdb) b main // set breakpoint (gdb) layout src // gui (gdb) p // print p/x hex (gdb) i b // list all breakpoints, you can list other info 1 2 3 4 5 6 7 8 9 10 11 12 13 ┌─test.

Operating System

If there’s only one course need to learn in computer science branch, I will recommend Operating System. Modern OS is getting more complex due to the development of hardware. More and more features are add to OS kernel. But the foundamental concepts are similar. Most of OS are written by C, so in order to read OS, you need to learn C programming language first. Keep in mind, from a programmer’s perspective, an OS is an implementation of hardwares(CPU, devices).

A lecture of Go

概述 串讲,是以会议形式,串讲人给同事讲一个topic。会上的其他同事,对串讲人进行相关知识的提问,以考查其对此topic的掌握程度。便于尽快

Install Snap on Centos7

问题 在Centos7系统上安装snap,遇到的问题记录 1 2 3 4 5 6 7 8 9 10 [centos@ip-172-26-6-67 ~]$ sudo snap install core error: system does not fully support snapd: cannot mount squashfs image using "squashfs": ----- mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or

Deploy Hugo on Github Page

Hugo is a framework written with Golang for building website. I told my wife I wrote something on my blog. After heard that, she said she wants to build a blog and start writing. So I spent a few hours on setting up a local hugo site and deployed it on Github pages. Here are all the thing you need to do: A github account, if you didn’t have one, you need to sign up Git installed on your local machine Install hugo Head over to GitHub and create a new public repository named username.

Build your own tools

背景 从拥有自己的第一台电脑至今,由于工作或其他原因,我已经换过好几台电脑。每一次拿到新电脑的第一件事,就是安装各种软件以及配置开发环境。手动

A tool for testing server

让我们来对服务器做一下压力测试吧! 本篇文章讲一下压力测试应该怎么做,压力测试过程中需要注意哪些指标,以及需要注意的事项。 首先,我们要清楚我们

Shell

Learn a shell a day, master Unix one day! Pipe Process read previous process’s output as its input and generate output to next process’s input. Use symbol | to create a pipeline, which a powerful skill in Unix. 1 2 // count the numbers of text file in current directory. ls -la | grep *.txt | wc -l Top top - display Linux processes Summary Display UPTIME and LOAD Averages TASK and CPU States MEMORY Usage 1 2 3 4 5 6 7 8 9 10 11 12 13 top - 22:05:26 up 2 days, 2:48, 2 users, load average: 0.