ubuntu
面包派
世上安得两全法,不负如来不负卿。若生苦难我西行,何生红颜你倾城。
展开
-
Cannot fetch index base URL https://pypi.python.org/simple/
错误如下 sudo pip install pyelftools > Downloading/unpacking pyelftools > Cannot fetch index base URL https://pypi.python.org/simple/> Could not find any downloads that satisfy the requirement pyelftools Cleaning up... > No distributions原创 2021-07-15 09:22:52 · 1848 阅读 · 1 评论 -
python问题集
高版本ubuntu18以上一般会默认使用python3环境。如果py脚本需要要用到python2的环境,那么可以安装python2.头,支持python虚拟环境.原创 2020-10-22 11:32:40 · 2923 阅读 · 0 评论 -
ubuntu用户权限配置
创建用户sudo useradd usernamesudo passwd usernamesudo userdel -r usernamesudo visudo#sudo vim /etc/sudosers 同上,但需要修改文件权限才能改# 写入username ALL=(ALL:ALL) ALL# 写入username ALL=(ALL) NOPASSWD:ALL 可以免密访问...原创 2020-05-07 14:49:30 · 230 阅读 · 0 评论 -
Ubuntu 14.04 只能用guest登录的问题修复
手贱改当前用户为root用户导致登陆页面上的当前用户消失,只能客户登陆。登陆页面ctrl+alt+F1userpasswordsu rootpasswordvi /etc/lightdm/lightdm.conf #输入以下内容 reboot[SeatDefaults]greeter-session=unity-greeteruser-session=ubuntug...原创 2020-04-21 09:29:22 · 369 阅读 · 0 评论 -
Linux Sell Scripts学习笔记
注意事项:指令的执行是从上而下、从左而右的分析与执行;指令的下达: 指令、选项与参数间的多个空白都会被忽略掉;空白行也将被忽略掉,幵且 [tab] 按键所推开的空白同样规为空格键;如果读取到一个 Enter 符号 (CR) ,就尝试开始执行该行 (或该串) 命令;至于如果一行的内容太多,则可以使用『 [Enter] 』来延伸至下一行;『 # 』可做为批注!任何加在 # 后面的资料将全...原创 2018-09-30 15:58:27 · 189 阅读 · 0 评论 -
以Grep学正则表达式 学习笔记
基本格式grep -n -A2 -B3 --color=auto 'the' ./搜寻特定字符串grep -n 'the' //含grep -vn 'the' //不含grep -in 'the' //含大小写利用中括号 [] 来搜寻集合字符grep -n 't[ae]st' //含tast testgrep -n '[^g]oo' //含oo但oo前不是ggrep -n '...原创 2018-09-30 13:41:15 · 110 阅读 · 0 评论 -
Linux Bash管线命令笔记
管线命令要求管线命令仅会处理 standard output,对亍 standard error output 会予以忽略管线命令必须要能够接来自前一个指令的数据成为standard input 继续处理才行。撷取命令: cut, grep通常是针对一行一行进行处理的。cut处理分隔符或者有一定规则的数据:echo $PATH| cut -d ':' -f 3,5grep处理按...原创 2018-09-29 17:38:29 · 153 阅读 · 0 评论 -
Linux Bash 命令执行的判断依据
cmd;cmd不考虑命令相关性的连续指令下达$? (指令回传值) 与&& 或||指令下达情况说明cmd1 && cmd2若 cmd1 执行完毕且正确执行($?=0),则开始执行 cmd2。 若 cmd1 执行完毕且为错误($?≠0),则 cmd2 不执行。cmd1 || cmd2若 cmd1 执行完毕且正确执行($?=0),则 ...原创 2018-09-29 17:17:03 · 595 阅读 · 0 评论 -
Linux 数据流重导向笔记
代码与指令标准输入 (stdin) :代码为 0 ,使用 < 或 << ;标准输出 (stdout):代码为 1 ,使用 > 或 >> ;标准错误输出(stderr):代码为 2 ,使用 2> 或 2>> ;输出指令使用说明1> :以覆盖的方法将『正确的数据』原创 2018-09-29 16:30:28 · 147 阅读 · 0 评论 -
Linux Bash 特殊字符笔记
通配符符号意义*代表『 0 到无穷多个』任意字符?代表『一定有一个』任意字符[ ]同样代表『一定有一个在括号内』的字符(非任意字符)。例如 [abcd] 代表『一定有一个字符, 可能是 a, b, c, d 这四个任何一个』[ - ]若有减号在中括号内时,代表『在编码顺序内的所有字符』。例如 [0-9] 代表 0 到 9 之间的所有数字,因为数字的编...原创 2018-09-29 15:56:06 · 276 阅读 · 0 评论 -
Linux Bash 变量
read格式:read [-pt] var时间单位为秒 read -p "Please enter your name" -t 30 name echo $namedeclare/typeset格式:declare [-aixr] var-a(数组) -i(int) -x(export) -r(readonly) declare -i sum=1+1 ...原创 2018-09-29 15:17:50 · 127 阅读 · 0 评论 -
Ubuntu pdf编辑
Adobe http://blog.chinaunix.net/uid-16759545-id-4891680.html pdf编辑 https://jingyan.baidu.com/article/ff42efa91a0cb9c19e22023a.html原创 2018-08-08 11:49:30 · 665 阅读 · 0 评论 -
ubuntu安装deb出错
1.执行命令sudo dpkg -i XXX.deb 返回依赖关系错误提示 2.执行sudo apt-get -f install 这条命令将自动安装需要的依赖包. 3.再次执行命令sudo dpkg -i XXX.deb 安装成功...原创 2018-08-02 16:24:19 · 2776 阅读 · 0 评论 -
查找某类型的文件中的匹配字符
find -name ‘*.java’|grep -rn ‘Contact.’原创 2018-07-23 15:16:44 · 270 阅读 · 0 评论 -
获取ip并写入文件中
https://blog.csdn.net/ztszph/article/details/81005002原创 2018-07-23 11:09:50 · 1205 阅读 · 0 评论 -
vim学习笔记
官网:https://www.vim.orgvim 是 vi的进阶版本,vim 可以用颜色或底线等方式来显示一些特殊的信三种模式:一般模式,编辑模式,指令命令模式。 一般:光标移动,搜寻与取代,删除字元,删除、复制、贴上整行。(esc返回) 编辑:以插入或取代模式编辑内容 。(ioar进入) 指令:读取存储档案以及其他额外功能(:,/,?进入)一般模式按键: 按键 ...原创 2018-06-23 13:56:12 · 125 阅读 · 0 评论 -
ubuntu 14.04 安装openjdk 8
ubuntu 14.04 利用apt-get即系统自带的工具安装openjdk 8,会提示只有oracle jdk8,不会安装openjdk 8。 用以下命令dpkg -l openjdk-7-jdk,可以看出openjdk-7-jdk,是有安装包的。dpkg -l openjdk-7-jdk期望状态=未知(u)/安装(i)/删除(r)/清除(p)/保持(h)| 状态=未安装(n)/已安...原创 2018-06-08 11:28:22 · 1104 阅读 · 0 评论 -
ubuntu挂起后无法唤醒解决
http://blog.sina.com.cn/s/blog_7ec12e960100rfpn.html原创 2018-06-11 13:43:14 · 5345 阅读 · 0 评论