不定期更新…
文件以test.txt为例,目录以dir为例
1.删除
1.1 删除目录
rm -rf dir
2.安装三连
cmake -D CMAKE_INSTALL_PREFIX=/home/yourdir -D WITH_XXX=OFF
make
make install
第一句后面一半看情况要不要
3.添加库路径变量
vim ~/.bashrc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/yourlibdir
source ~/.bashrc
4.后台运行程序nohup
4.1 挂起matlab\
nohup matlab -nosplash -nodesktop
5.tmux命令
tmux new -s session_name #创建新session
Ctrl+b :kill-session#杀死当前session
Ctrl+b d #临时退出
tmux ls
tmux a -t session_name
6.运行脚本
bash test.sh
7.解压/压缩
tar zxvf test.tar.gz
unzip test.zip
zip -r test.zip test.txt
8.screen命令
screen -S name
screen -ls
screen -r name
Ctrl+a d
Ctrl+a kill
9.移动/复制
cp dirold/* dirnew/
mv dirold/* dirnew/
10.vim命令
:set nu #设置行号
:q #退出
:wq #保存退出
:q! #强制退出
11.查看版本信息
lsb_release -a
12.终端之间传输
scp (-r)(目录可选) yourfile name@xxx.xxx.xxx:/your/path
13.权限
chmod (-R)(目录可选) 777 yourfile