
ubuntu
xiekai1116
这个作者很懒,什么都没留下…
展开
-
220105-ubuntu创建共享文件夹和win7及另一台ubuntu实现文件共享
ubuntu和win7共享文件夹原创 2022-01-05 10:32:17 · 722 阅读 · 0 评论 -
211121-sync和swapoff关闭swap记录
sudo syncsudo swapoff -asudo swapon原创 2021-11-22 22:14:39 · 356 阅读 · 0 评论 -
linux xargs命令学习-20201130
情景再现:文件夹train中有40000张图片,打开时加载很慢,希望copy其中200出来。当时想到的是cp train/$(ls | head 200) …,但是这个没有把train分别加上去后来搜索到ls | head 200 | xargs -i cp {} …,发现xargs功能可以好好学习下,故做此记录。How to Use the xargs Command on Linux在检查查看完中文介绍后阅读英文介绍,通过这个网页基本明白了xargs的用法。其中自己有些不懂的是:echo ~原创 2020-11-30 15:47:36 · 130 阅读 · 0 评论 -
ubuntu下批量删除后缀或者添加后缀-20201110
学习了几种Linux下批量改名的方法,做此记录一、Linux 下批量去后缀加后缀1.删除所有的 .xml 后缀:rename 's/\.xml$//' *.xmlPS:这里rename如果没有安装需要sudo apt install rename进行安装。这里s表示替换,在本文提及的第三部分也有说明。s后接/a/b/表示b替换a,具体到这里是空白替换.xmlKaTeX parse error: Can't use function '\'' in math mode at position 5:原创 2020-11-10 20:35:20 · 1340 阅读 · 0 评论 -
vim列编辑模式学习记录-20201101
参考:https://vimjc.com/vim-visual-mode.htmlhttps://stackoverflow.com/questions/6971903/how-to-do-column-editing-in-vim(1) Ctrl + v进入块选择模式(2) 向上或向下移动光标选择多行(3) 移动光标到行的起始位置(4) 然后按大写的 I 进入行首插入模式(5) 插入注释符(6) 按Esc回到命令模式需要注意的是:Vim同时编辑多行时,只有在当前的插入动作结束后(按Esc原创 2020-11-01 08:16:53 · 277 阅读 · 0 评论 -
ubuntu使用find和grep搜索文本内字符串-20201015
find . -name '*' | xargs grep -rn 'raw_incomplete_predicted'原创 2020-10-15 08:04:57 · 1297 阅读 · 0 评论 -
ubuntu重启后分辨率为1024,nvidia-smi不能用-20200819
无法连接NVIDIA驱动:NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driverCASE SOLVED:NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driverr当时是为了调节屏幕明亮,按照https://www.maketecheasier.com/configure-screen-brightness-in-原创 2020-08-19 15:12:36 · 611 阅读 · 0 评论 -
ubuntu18.04下2to3将python2代码升级为python3-20200623
之前试过windows下2to3,类似一键将Python2代码自动转化为Python3ubuntu18.04下,在conda的envs下,2to3报错bash: /home/czey/anaconda3/envs/tf/bin/2to3-3.6: /home/czey/anaconda3/envs/tensorflow/bin/python: bad interpreter: No such file or directory之前安装的tensorflow删掉了sudo apt install 2原创 2020-06-23 17:14:24 · 439 阅读 · 0 评论 -
ubuntu中python版本控制-20200607
Terminal修改python版本在使用默认python3.6安装完caffe后在终端python认识python2.7,python3才是python3.6,在运行程序是import caffe 就仍有问题.在更改Ubuntu默认Python版本方法中方法可行.查看python版本:python --version, 直接python也可以whereis python3.6, 如果结果里有/usr/bin/python3.6说明已经安装,如果没有则需要手动安装。需要删除原有的Python连原创 2020-06-07 21:11:10 · 222 阅读 · 0 评论 -
Ubuntu下利用shell批量解压和批量重命名-20200527
From 有三AI,做此记录批量解压:for dir in test1/*do if test -f $dir then brr=$(echo $dir | tr "." "\n") brrs=( $brr ) fileid=${brrs[0]} echo $fileid mkdir $fileid tar -xvf $dir -C $fileid fidone批量重命名#!/bin原创 2020-05-27 14:49:52 · 429 阅读 · 0 评论 -
ubuntu18.04调节屏幕亮度和/typora.io/linux报错
一.屏幕调节ubuntu18.04,想调节屏幕亮度保护视力,搜了一番几个都不能用,后来就搜外网,试了一个可行的,做此记录!原文网址An alternative method is to install a PPA and brightness APP which also adjusts gamma - AWESOME!, and … for any individual screen TO...原创 2020-05-08 14:42:23 · 795 阅读 · 0 评论 -
ubuntu中apt-get和dpkg使用记忆-20200421
ubuntu安装命令不是特别熟悉,主要就apt-get 和dpkg两种,做此记录,以后随时补充dpkg --list | grep 安装包sudo apt-get install 安装包sudo dpkg -i 安装包.debsudo apt-get --purge remove 安装包sudo dpkg -r 安装包.debPS:在终端上输入命令sudo apt-get --p...原创 2020-04-21 08:43:35 · 206 阅读 · 0 评论 -
Ubuntu批量重命名命令记录-211125更新matlab重命名
在windows下一直用TotalCommand批量修改文件问,在Ubuntu下选中多个F2也可以实现部分功能的批量改名,还有就是用命令,特做此记录。ls -v | cat -n | while read n f; do mv -n "$f" `printf "%03d.png" $n`; done...原创 2020-04-15 08:53:53 · 233 阅读 · 0 评论