linux
llcdefgab
这个作者很懒,什么都没留下…
展开
-
Linux 释放没用的内存
Free up unused memory:[1][2]sudo sysctl -w vm.drop_caches=3 #This command will clear pagecache: /sbin/sysctl vm.drop_caches=1#To clear dentries and inodes you can use: /sbin/sysctl vm.drop_caches=2#To原创 2017-03-04 20:31:30 · 1375 阅读 · 0 评论 -
ubuntu OpenMP parallel for
ubuntu OpenMP parallel forOpenMP并行计算for循环test.cpp#include <iostream> #include <stdio.h> #include <vector>using namespace std;int main(){ vector<int> a={1,2,3,4,5,6,7,8}; vector<int> b={1,2,1,2原创 2017-02-27 16:11:15 · 3067 阅读 · 0 评论 -
ubuntu chroot
ubuntu chroot原创 2017-04-27 15:37:50 · 1380 阅读 · 0 评论 -
Blender_linux
从命令行运行blender python 脚本 不需要图形界面: blender --background --python test.py 并行 #!/bin/sh #--后面是自己定义的参数 for j in {0..10}; do blender --background --python test.py -- $j & done waitReference#python程序里接收上面原创 2017-09-22 22:14:48 · 546 阅读 · 0 评论 -
ubuntu 开机卡在hp logo上_grub 坏掉
电脑开不了机 卡在hp logo界面上 可以进bios grub坏掉原创 2017-09-27 15:42:20 · 1089 阅读 · 0 评论 -
linux ls find rename grep 等命令笔记
ls -l, ll#按照修改时间顺序显示 ll -lt#对结果统计个数 ll | wc -lfind# 在当前目录找所有后缀是 .match 的文件 find . -name &amp;amp;quot;*.match&amp;amp;quot; # 在 ~/Downloads 目录下, 删除 .match 后缀的文件 find ~/Downloads -name &amp;amp;quot;*.match&amp;amp;quot; -del原创 2017-03-05 16:38:00 · 1349 阅读 · 0 评论 -
apt-get 命令笔记
1 显示所有已安装的包apt list --installeddpkg --get-selections | grep -v deinstallreference2 显示安装包的位置 sudo dpkg -L packagenamereference3 显示apt-get可以安装的package bash apt search package-name Referenceto be c原创 2017-03-31 15:16:21 · 358 阅读 · 0 评论 -
git 命令笔记
1 切到某tag git checkout tags/2.4.10 2 切到某个版本 git reset --hard HASH-CODE 3 .gitignore ignore某规则, 就在每行规则前面加! An optional prefix ! which negates the pattern; any matching file excluded by a ...原创 2017-03-31 15:20:44 · 190 阅读 · 0 评论