---
title: "tips"
author: "calmhawk"
date: "2013-01-18T18:09:08Z"
tags: []
categories: ["操作系统"]
slug: "tips"
draft: false
lastmod: "2013-01-18T18:09:35Z"
id: 1772299
url: "https://calmhawk.iteye.com/blog/1772299"
---

2013-01-18

git:

只显示修改的文件: git ls-files -m

bash:

Ctrl-W to kill the last word, and Ctrl-U to kill the line

vim:

vim替换时使用换行,输入CTRL-V &lt;CR&gt;来得到这里的 ^M(&lt;CR&gt;即回车键)

系统:

strace -ttt -p pid 查看正在运行程序的系统调用的时间点，可以为辅助查找系统慢的原因。