常用命令
VMWARE挂载共享文件夹
sudo mount -t fuse.vmhgfs-fuse .host:/ /home/wufan/shared_folders/ -o allow_other
LINUX终端颜色:
PS1='[\[\e[32m\]\u@\h\[\e[m\]: \[\e[32m\]\W\[\e[m\]]\$'
监控某个进程的内存:
watch -n 1 cat /proc/pid/status | grep RSS
查看git指定文件指定行号之间的修改记录
git blame src/data_collection.cpp -L 344,377
git blame src/data_collection.cpp -L 344,+5
展示某个commmit的代码修改内容
git show commitID