随笔分类 -  Linux

摘要:根目录挂在 /dev/sda6,某空闲目录挂在 /dev/sda7; 现在想要该空间目录的空间扩展根目录空间; umount /dev/sda7 fdisk 删除 /dev/sda 分区 7 growpart /dev/sda 6 resize2fs /dev/sda6 阅读全文
posted @ 2022-12-28 21:40 林東雨 阅读(54) 评论(0) 推荐(0)
摘要:问题描述 E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/x/x264/libx264-155_0.155.2917+git0a84d98-2_amd64.deb Connection failed [IP: 阅读全文
posted @ 2022-07-09 12:48 林東雨 阅读(2043) 评论(0) 推荐(0)
摘要:安装 sudo apt-get install tmux 创建 tmux new -t name 上下分屏 tmux split 切换屏幕 control + B 然后按小键盘上或者下,实现上下屏幕的切换 暂时退出 control + B 然后按下 Z 查看 tmux 列表 tmux ls 重新进入 阅读全文
posted @ 2022-06-28 10:16 林東雨 阅读(179) 评论(0) 推荐(0)
摘要:$ useradd -r -m -s /bin/bash ldy $ passwd ldy New passwd: Retype new passwd: passwd: password updated successfully 批量添加用户 1, 参照 /etc/passwd 格式编写 user. 阅读全文
posted @ 2022-06-27 21:45 林東雨 阅读(1133) 评论(0) 推荐(0)
摘要:1,command + space打开终端 2,shell -> 新建远程连接 3,服务 -> 安全文件传输(sftp) 填写:用户 填写:sftp 用户@ip address 上传文件:put {local_address} {server_address} 上传文件夹:put -r {local 阅读全文
posted @ 2022-06-24 10:21 林東雨 阅读(1120) 评论(0) 推荐(0)
摘要:使用tensorboard 一次性打开太多文件的时候会报错; 输入以下命令: $ ulimit -n > 1024 显示系统最大支持打开1024个文件 临时修改方法: $ ulimit -n 2048 此方法为临时修改,当前有效,退出后就恢复原来设置。 永久修改方法: $ sudo vim /etc 阅读全文
posted @ 2021-12-03 19:31 林東雨 阅读(1854) 评论(0) 推荐(0)
摘要:在terminal本地用ssh远程访问 ssh -L 1997:localhost:8891 name@xx.xxx.xxx.xx -p password 1997 是本地的监听端口 8891 是 jupyter 运行的端口 阅读全文
posted @ 2021-09-30 00:34 林東雨 阅读(79) 评论(0) 推荐(0)
摘要:环境描述 Docker 安装在 Linux 服务器上(ubuntu 系统) 本地 WIN10 通过 PuTTy 访问 Docker 镜像中的 Jupyter notebook 关键操作 1、运行 docker 容器的时候,需要设置“服务器”的端口与“容器”的端口之间的映射 $ docker run 阅读全文
posted @ 2021-07-28 23:06 林東雨 阅读(692) 评论(0) 推荐(0)
摘要:du -h --max-depth=1 du -sh * 参考资料 https://zhidao.baidu.com/question/7664445.html 阅读全文
posted @ 2021-07-12 17:37 林東雨 阅读(194) 评论(0) 推荐(0)
摘要:#!, 称作 shebang 或者 sha-bang,通常出现在类UNIX系统的脚本的第一行,后接解释器的绝对路径,指明执行这个脚本文件的解释器。 用法:#! /usr/bin/python3 参考资料 https://blog.csdn.net/u012294618/article/details 阅读全文
posted @ 2021-06-18 00:20 林東雨 阅读(2781) 评论(0) 推荐(0)
摘要:1,登录 PuTTY, 并打开 jupyter notebook $ jupyter notebook 2,查看 jupyter notebook 分配的端口号 [W 15:51:46.473 NotebookApp] No web browser found: could not locate r 阅读全文
posted @ 2021-06-04 16:38 林東雨 阅读(872) 评论(0) 推荐(0)
摘要:1,下载文件 curl -O http://man.linuxde.net/text.iso #O大写,不用O只是打印内容不会下载 wget http://www.linuxde.net/text.iso #不用参数,直接下载文件 2,下载文件并重命名 curl -o rename.iso http 阅读全文
posted @ 2021-06-04 15:29 林東雨 阅读(113) 评论(0) 推荐(0)
摘要:0,PuTTY 自带 PSFTP.exe 能够用于文件传输 注意:如果不是以超级管理员权限打开命令提示符或接口图标PSFTP,那么系统盘下部分文件是不允许上传,并且部分地址不允许存放下载文件。 1,打开 PSFTP.exe psftp: no hostname specified; use "ope 阅读全文
posted @ 2021-06-03 23:26 林東雨 阅读(3402) 评论(0) 推荐(0)
摘要:$ whereis python 查询的程序名、bash路径、bash的man 手册页路径 $ python3 -V Python 3.8.5 阅读全文
posted @ 2021-06-03 00:51 林東雨 阅读(804) 评论(0) 推荐(0)
摘要:操作系统 $ cat /proc/version Ubuntu version $ cat /etc/lsb-release > DISTRIB_CODENAME = focal CPU $ cat /proc/cpuinfo | grep "model name" 按照model name 对结果 阅读全文
posted @ 2021-06-03 00:01 林東雨 阅读(489) 评论(0) 推荐(0)
摘要:实用命令 $ which filename 返回文件路径 参考资料 https://www.runoob.com/linux/linux-comm-which.html 阅读全文
posted @ 2021-06-02 23:21 林東雨 阅读(64) 评论(0) 推荐(0)
摘要:查看帮助 $ mkdir --help Usage mkdir [OPTION]... DIRECTORY... Option -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask -p, --parents no error 阅读全文
posted @ 2021-06-02 23:09 林東雨 阅读(312) 评论(0) 推荐(0)
摘要:实用命令 chmod 700 file 只允许文件所有者进行rwx操作 参考资料 https://www.runoob.com/linux/linux-comm-chmod.html 阅读全文
posted @ 2021-06-02 22:59 林東雨 阅读(100) 评论(0) 推荐(0)
摘要:1. Oracle VM VirtualBox 安装(https://www.virtualbox.org/wiki/Downloads) 2. Ubuntu 下载(https://ubuntu.com/download/alternative-downloads) 3.1 创建虚拟机 参考链接(h 阅读全文
posted @ 2021-01-08 16:32 林東雨 阅读(269) 评论(0) 推荐(0)