码迷,mamicode.com
首页 >  
搜索关键字:bash shell terminal    ( 40584个结果
Sheel 脚本接收键盘输入
一、通过read 接收 1. 通过vim 定义一个test.sh的脚本 vim test.sh 2. 编写shell脚本 #! /bin/bash read name echo "$name It is a test" 3. 添加脚本执行权限 chmod +x test.sh 4. 执行脚本 [ro ...
分类:其他好文   时间:2021-02-18 13:13:07    阅读次数:0
Codechef February Challenge 2021 Division 1 部分题解
Team Name 留坑。 Prime Game 留坑。 XOR Sums 留坑。 Multiple Games 留坑。 Another Tree with Numb 留坑。 Bash Matrix 留坑。 Cell Shell 留坑。 Cut the Cake (Challenge) 留坑。 Dr ...
分类:其他好文   时间:2021-02-18 13:09:23    阅读次数:0
SSH登录时自动邮件提醒
好吧,前几天有人问了我这个问题,正好发篇文章分享下我的方法。 以下方法适用OpenSSH,其他根据实际修改: 首先,确认你为OpenSSH使用了PAM,检查“/etc/ssh/sshd_config”,看下“UsePAM”的值是不是定义为“yes”。 接下来,利用pam_exec给OpenSSH做个 ...
分类:其他好文   时间:2021-02-18 13:08:50    阅读次数:0
pytthon语法之os模块常见方法使用说明一
1 os.getcwd()获取当前工作目录,即当前python脚本工作的目录路径 2 os.chdir("dirname")改变当前脚本工作目录;相当于shell下cd 3 os.makedirs ('dirname1/dirname2 ')可生成多层递归目录 4 os.removedirs ('d ...
分类:其他好文   时间:2021-02-18 12:55:50    阅读次数:0
ftp | ftp命令行工具的使用
关于能连上然后执行命令500(passive模式的原因): https://www.linuxidc.com/linux/2013-05/83742.htm 常用命令的简单概述:https://www.cnblogs.com/answerThe/p/11463117.html 一些细节操作符:htt ...
分类:其他好文   时间:2021-02-18 12:53:43    阅读次数:0
「PASysTray」- Pulse Audio System Tray @20210214
安装 #!/bin/bash # Kali GNU/Linux Rolling apt-get install pasystray 常见错误列表 #1 (pasystray:30116): pasystray-WARNING **: [notify] unable to show notificat ...
分类:其他好文   时间:2021-02-17 14:46:33    阅读次数:0
翻译:《实用的Python编程》01_02_Hello_world
目录 | 上一节 (1.1 Python) | 下一节 (1.3 数字) 1.2 第一个程序 本节讨论有关如何创建一个程序、运行解释器和调试的基础知识。 运行 Python Python 程序始终在解释器中运行。 解释器是一个“基于控制台”的应用程序,通常从命令行 shell 启动。 python3 ...
分类:编程语言   时间:2021-02-16 12:31:49    阅读次数:0
python 协程 - asyncio-subprocess 并发执行命令
1. 10秒钟测试ip段所有IP的连通性 (base) [root@wlt-overseas-middleware-master ~]# cat su-asyncio-re-cancel.py import asyncio import time import re # call shell cmd ...
分类:编程语言   时间:2021-02-16 12:27:26    阅读次数:0
[Bash] Schedule Timed Jobs on macOS with `launchd`
Schedule timed jobs on macOS with launchd launchd is a robust scheduled job automation tool on macOS that allows you to schedule a task to be run at r ...
分类:系统相关   时间:2021-02-16 12:18:49    阅读次数:0
[Bash] Create a Bash Script that Accepts Named Options with getopts
Getopts Let’s say you want to allow a user to pass a -v flag to turn on verbose logging in a script. Manually parsing out options passed to a script i ...
分类:其他好文   时间:2021-02-16 12:03:18    阅读次数:0
40584条   上一页 1 ... 38 39 40 41 42 ... 4059 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!