随笔分类 -  linux命令

scp命令
摘要:scp命令 scp [options] [user@]host:/sourcefile /destpath scp [options] /sourcefile [user@]host:/destpath scp [options] [user@]host1:/sourcetpath [user@]h 阅读全文

posted @ 2025-06-02 19:51 jun_li123 阅读(25) 评论(0) 推荐(0)

yum 安装
摘要:CentOS下安装yum 在Linux里面依次输入下面的命令: 下载最新的 yum-3.2.28.tar.gz 并解压 wget http://yum.baseurl.org/download/3.2/yum-3.2.28.tar.gz tar xvf yum-3.2.28.tar.gz 进入目录, 阅读全文

posted @ 2025-05-16 18:06 jun_li123 阅读(27) 评论(0) 推荐(0)

ip
摘要:来自于iproute包,可用于代替ifconfig ip命令说明 OBJECT := { link | addr | route } ip link - network device configuration set dev IFACE,可设置属性:up and down:激活或禁用指定接口,相当 阅读全文

posted @ 2021-07-19 11:00 jun_li123 阅读(516) 评论(0) 推荐(0)

netstat
摘要:来自net-tools包,建议可以使用ss代替 常用选项 -t: tcp协议相关 -u: udp协议相关 -w: raw socket相关 -l: 处于监听状态 -a: 所有状态 -n: 以数字显示IP和端口 -e:扩展格式 -p: 显示相关进程及PID 常用组合 -tan, -uan, -tnl, 阅读全文

posted @ 2021-07-19 10:24 jun_li123 阅读(163) 评论(0) 推荐(0)

在vim打开的文件中粘贴代码保留原来格式
摘要:用vim 打开文件时可以使用:set noai然后按I即可进行粘贴代码并可以保留原格式 阅读全文

posted @ 2021-07-12 00:00 jun_li123 阅读(248) 评论(0) 推荐(0)

变量$-
摘要:h:hashall,打开选项后,Shell 会将命令所在的路径hash下来,避免每次都要查询。通过set +h将h选项关闭 i:interactive-comments,包含这个选项说明当前的 shell 是一个交互式的 shell。所谓的交互式shell,在脚本中,i选项是关闭的 m:monito 阅读全文

posted @ 2021-07-10 17:12 jun_li123 阅读(107) 评论(0) 推荐(0)

localectl使用(转载别人的)
摘要:转载地址http://linux.51yip.com/search/localectl localectl — 控制系统的本地化与键盘布局可用于查询与修改系统的本地化(locale)与键盘布局的设置。 它通过与 systemd-localed.service(8) 通信来修改例如 /etc/loca 阅读全文

posted @ 2021-06-16 19:16 jun_li123 阅读(215) 评论(0) 推荐(0)

导航