![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
zhao_crystal
这个作者很懒,什么都没留下…
展开
-
linux 定时任务
linux 定时任务原创 2022-12-08 23:57:06 · 310 阅读 · 0 评论 -
linux 用户名和密码的处理
linux 用户名和密码处理原创 2022-11-22 22:10:38 · 1493 阅读 · 0 评论 -
shell 命令大全
1. 查看某个文件中特定字符串的个数查看的特定字符为“刘大耳”, 查看的文件为 cut_result.txtgrep -o "刘大耳" cut_result.txt | wc -l原创 2022-05-06 20:01:44 · 975 阅读 · 0 评论 -
linux 下进入root
(1)sudo 命令 这样输入当前管理员用户密码就可以得到超级用户的权限。但默认的情况下5分钟root权限就失效了。(2)sudo -i 通过这种方法输入当前管理员用户的密码就可以进到root用户。(3)如果想一直使用root权限,要通过su切换到root用户。那我们首先要重设置root用户的密码: sudo passwd root 这样就可以设置root用户的密码了。之后就可以自由的切换到root用户了 su 输入root用户的密码即可。当然,如果想从root用户切换回一般用户,则.原创 2022-05-02 18:05:22 · 5523 阅读 · 0 评论 -
vim的使用
1. 配置vim显示行号1.1 临时显示行号ESC键退出编辑内容模式,输入“:set number”后按回车键注:文件关闭后,再打开是不会显示行号的1.2 用久显示行号修改配置文件:vim ~/.vimrc在打开的vimrc文件中最后一行输入:set number ,然后保存退出。再次用vim打开文件时,就会显示行号了。......原创 2022-04-03 14:42:19 · 2564 阅读 · 0 评论 -
Linux下查找JDK默认安装路径
一、查找效果图二、查找步骤1、首先确认是否已按照JDKjava -version[root@iZ2ze3zda3caeyx6pn7c5zZ base-eureka]# java -versionopenjdk version "1.8.0_212"OpenJDK Runtime Environment (build 1.8.0_212-b04)OpenJDK 6...转载 2020-02-06 11:23:41 · 6358 阅读 · 0 评论 -
github的一些操作
转自:https://zhuanlan.zhihu.com/p/42450931在git clone github 项目时出现 如下问题:fatal: 无法读取远程仓库。请确认您有正确的访问权限并且仓库存在。我的解决方案是:1.如果你没有生成SSH Key,那就输入命令ssh-keygen -t rsa -C "http://github.com"中间让你输入时选择y,...原创 2020-01-29 19:19:25 · 662 阅读 · 0 评论 -
linux 一些指令
1.复制文件夹(1)如果dir2目录不存在,则可以直接使用 cp -r dir1 dir2(2)如果dir2目录已存在,则需要使用 cp -r dir1/. dir2原创 2018-10-05 20:01:08 · 143 阅读 · 0 评论 -
linux 下删除github的项目
点击your profile----点开你需要删除的文件-----setting----Delete this repository(在该页面的最下方)参考:点击打开链接原创 2018-06-29 22:05:44 · 1039 阅读 · 0 评论 -
ipython 的魔法命令
1.加载自己写的脚本(1)加载单一脚本:%run myscript/hello.py(脚本的相对路径) (2)加载整个模块 eg:mymoudle __init__.py predict.py import mymoudle.FirstML或者:from mymoudle import FirstML2.测量代码的性能...转载 2018-04-28 22:01:47 · 2480 阅读 · 0 评论 -
linux mint 安装 使用anaconda
1.anaconda的安装https://blog.csdn.net/u011361880/article/details/73694854我安装的是anaconda3 linux版本2.anaconda的使用(1)使用Jupyter-notebook进入anaconda(我安装在/home/crystal/anaconda3),cd anaconda3/bin然后输入 Jupyter-noteb...原创 2018-04-27 21:37:46 · 1334 阅读 · 0 评论 -
virtualenv, virtualenvwrpper虚拟环境的搭建
1. virtualenvpip install virtualenvvirtualenv testvir(自己设定的虚拟环境的名称)activate.bat 进入虚拟环境deactivate.bat 退出虚拟环境2. virtualenvwrpperpip install virtualenvwrppermkvirtualenv testvir(设定自己虚拟环境的名称)workon tes...原创 2018-04-27 21:05:31 · 257 阅读 · 0 评论 -
windows7 下 用硬盘安装 linux mint
https://blog.csdn.net/vvyingning/article/details/76087148https://jingyan.baidu.com/article/e4d08ffdace06e0fd2f60d39.html转载 2018-04-27 14:42:25 · 647 阅读 · 0 评论 -
linux 下fcitx 配置google pinyin和搜狗拼音
遇到的问题:不小心把输入法配置--输入法里边的选项全部给弄没了参考博客:https://www.2cto.com/os/201707/658911.html最终问题解决转载 2018-05-03 19:29:14 · 7822 阅读 · 0 评论 -
Ubuntu14.04从安装软件到卸载软件,删除安装包
参考博客:https://blog.csdn.net/liweibin1994/article/details/53066272转载 2018-05-03 19:25:05 · 185 阅读 · 0 评论 -
linux下本地代码上传到github
参考博客:http://www.cocoachina.com/ios/20161009/17698.html2 开始建立本地库,在终端继续输入 1.cd到目标文件夹。 2.git init(在本机上想要创建一个新的git仓库) 3.git add -A (这里的-A是指将目标文件的所有文件都添加到git中,若不需要添加所有文件,可将-A换成具体的文件名) 4.git remote add...原创 2018-04-24 20:40:34 · 780 阅读 · 0 评论 -
gcc 版本的切换
使用如下命令切换到gcc5.4,即提高gcc5.4的优先级1 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1002 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 503 sudo update-alterna...原创 2018-04-06 22:45:37 · 1535 阅读 · 0 评论