example: download_etcher_cli(){ local url="https://github.com/resin-io/etcher/releases/download/v1.4.4/etcher-cli-1.4.4-linux-x64.tar.gz" local hash="54709ad34ac304d2686130c7d22a3bc13b4f491387d987274eeca4f6eea34dce" local filename=${ur…
命令:curl 在Linux中curl是一个利用URL规则在命令行下工作的文件传输工具,是一款很强大的http命令行工具,当处在无界面的服务器上的时候,利用curl下载上传文件是较为方便的事情. 语法:# curl [option] [url] 常见参数: -A/--user-agent <string> 设置用户代理发送给服务器 -b/--cookie <name=string/file> cookie字符串或文件读取位置 -c/--cookie-jar <file>…
cURL介绍cURL 是很方便的Rest客戶端,可以很方便的完成许多Rest API测试的需求,甚至,如果是需要先登入或认证的rest api,也可以進行测试,利用curl指令,可以送出HTTP GET, POST, PUT, DELETE, 也可以改變 HTTP header來滿足使用REST API需要的特定條件. curl的参数很多,這邊僅列出目前测试REST时常用到的: -X/--request [GET|POST|PUT|DELETE|…] 使用指定的http method發出 htt…
MDK st-link下载STM32程序出现Internal command error和Error:Flash download failed. Target DLL   是因为目标板的芯片处于休眠的状态,在尝试连接目标板时候也会出现报错Internal command error Flash download failed target dll has been can的现象,解决办法是使目标板退出休眠,即按住reset键再下载程序,看到USB通讯灯闪后一小会儿(自己把握)后放开reset就…
Linux用户以及权限相关命令 查看身份 id:Display user identity. 这个命令的输出会显示uid,gid和用户所属的组. uid即user ID,这是账户创建时被赋予的. gid是primary group ID,是主要的组的id.当然这个用户也可以属于其他更多的组. 用户账户信息被定义在 /etc/passwd文件中,组信息被定义在/etc/group文件中. chmod 命令名称:chmod 命令英文原意:change the permissions mode of…
<The Linux Command Line> 读书笔记02 关于命令的命令 命令的四种类型 type type—Indicate how a command name is interpreted. type命令:展示命令的类型. which which—Display which executable program will be executed. which命令:展示可执行命令的位置. 因为可执行命令有可能会有多个版本,所以有必要根据位置来判断究竟是哪个. which仅对可执行程序…
<The Linux Command Line> 读书笔记01 基本命令介绍 1. What is the Shell? The Shell is a program that takes keyboard commands and passes them to the operating system to carry out. 提示符 $被称作shell prompt,它表明shell准备好接收输入. 通常是包含了你的用户名和机器名(username@machinename),之后是当前的…
Most of this note comes from the Beginning the Linux Command Line, Second Edition by Sander van Vugt The only reason why many administrators are using a graphical interface on Linux, is because it allows them to run many terminal windows simultaneous…
Linux Command Line 解析 0 处理模型 Linux kernel的启动包括很多组件的初始化和相关配置,这些配置参数一般是通过command line进行配置的.在进行后续分析之前,先来理解一下command line的处理模型: 要处理的对象是一个字符串,其中包含了各种配置信息,通常各个配置之间通过空格进行分离,每个配置的表达形式是如:param=value1,value2 或者很简单就是一个rw. 那么kernel就需要提供对这些参数进行处理的处理函数列表.根据参数的作用以及…
When you are using Linux command line frequently, using the history effectively can be a major productivity boost. In fact, once you have mastered the 15 examples that I’ve provided here, you’ll find using command line more enjoyable and fun. 1. Disp…
I passionately enjoy working with commands as they offer more control over a Linux system than GUIs(Graphical User Interfaces) applications, therefore am always on the look out to discover or figure out interesting ways and ideas to make Linux so eas…
http://book.haoduoshipin.com/tlcl/book/zh/ 本书是 The Linux Command Line 的中文版, 为大家提供了多种不同的阅读方式. 中英文双语版-html 中英文双语版-PDF-2015-01-16 中文版-html 中文版-PDF-2015-01-16 中文版-EPUB 欢迎大家参与本书的翻译: github 本书的翻译由happypeter发起,Billie主力翻译,并社区协同努力 (Github Contributors)…
Notes on The Linux Command Line (by W. E. Shotts Jr.) edited by Gopher 感觉博客园是不是搞了什么CSS在里头--在博客园显示效果挺蛋疼的...这本书相当棒,建议一读 File, file systems and commands ls -a(all) -d(directory) -h(human-readable) less (show file content) FHS /bin: Contains binaries (pr…
Prerequisite: Linux Command Line(I): Beginner ================================ File I/O $ cat > a.txt #create a file 'a.txt' and appends things into it Type random stuff... # press Ctrl+d to exit editting $ cat a.txt Type random stuff... $ cat > a.t…
Linux command nmon [Purpose]        Learning linux command nmon   [Eevironment]        Ubuntu 16.04 terminal   [Procdeure]…
Linux command stty reference: https://blog.csdn.net/lqxandroid2012/article/details/78929506 [Purpose]        Learning linux command stty for get/set serial uart speed    [Eevironment]        Ubuntu 16.04 terminal   [Procdeure]        example get uart…
Linux command automake [Purpose]        Learning linux command automake for generate Makefile.in for configure from Makefile.am   [Eevironment]        Ubuntu 16.04 terminal   [Procdeure]        example: 如何安装: sudo apt-get autoremove automake 操作步骤: 第一…
Linux command parted [Purpose]        Learning linux command parted to manipulate disk partitions   [Eevironment]        Ubuntu 16.04 terminal   [Procdeure]        example: parted -s $DRIVE mklabel msdos parted -s $DRIVE unit cyl mkpart primary fat32…
Linux command useradd [Purpose]        Learning linux command useradd to create a new user or update default new user information   [Eevironment]        Ubuntu 16.04 terminal   [Procdeure]        Source code: # crate new user useradd -s '/bin/bash' -…
Linux command mktemp [Purpose]        Learning linux command mktemp to create a temporary file or directory   [Eevironment]        Ubuntu 16.04 terminal   [Procdeure]        Source code:        $ mktemp /tmp/tmp.L8mHFWSBjH…
Linux command dialog [Purpose]        Learning how to use dialog commad, do  man-machine interaction.   [Eevironment]        Ubuntu 16.04 terminal   [Procdeure]        Source code:        #!/bin/bash TTY_X=$(($(stty size | awk '{print $2}')-6)) # det…
Linux command wc [Purpose]        Learning how to statistics line numbers in file   [Eevironment]        Ubuntu 16.04 terminal   [Procdeure]        $ cat test.sh  #!/bin/bash echo "shell args option" echo "script name : $0" echo "…
https://tecadmin.net/ways-to-send-email-from-linux-command-line/ We all know the importance of emails these days for information transfer. There are many free emails service providers which we used for use like Gmail, Yahoo, RediffMail etc, which pro…
参考 :linux使用curl进行接口测试 使用curl 命令模拟POST/GET请求 Linux命令发送Http的get或post请求(curl和wget两种方法) curl 模拟 GET\POST 请求,以及 curl post 上传文件 curl模拟delete/put/post/get请求 Linux curl命令参数详解…
例如 url 为 http://mywebsite.com/index.php?a=1&b=2&c=3 web形式下访问url地址,使用$_GET是可以获取到所有的参数 然而在linux下 curl http://mywebsite.com/index.php?a=1&b=2&c=3 $_GET只能获取到参数a 由于url中有&,其他参数获取不到,在linux系统中& 会使进程系统后台运行 必须对&进行下转义才能$_GET获取到所有参数 curl h…
linux & command line & console & logs how to get the logs form linux command console https://cn.bing.com/search?q=how%20to%20get%20the%20logs%20form%20linux%20command%20console&qs=n&form=QBRE&sp=-1&pq=how%20to%20get%20the%20log…
[Purpose]        Learning linux command  lynx   [Eevironment]        Ubuntu 16.04 terminal   apt-get install lynx usage assic to strage web content example: root@vmuer-VirtualBox:/media/vmuer/share# lynx -dump http://www.ruanyifeng.com/blog/2018/12/g…
Linux command pushd popd [Purpose]        Learning linux command  pushd popd   [Eevironment]        Ubuntu 16.04 terminal   [Procdeure] vmuser@vmuser-virtual-machine:~$ pwd /home/vmuser vmuser@vmuser-virtual-machine:~$ pushd Downloads ~/Downloads ~ v…
User Structure linux command review 列出所有信号 找到名字后,kill 或者用ps找到 kill同名进程 每隔一秒高亮显示网络链接数的变化情况 启动关闭制定网卡 关闭网卡并修改MAC地址 配置IP地址 显示当前路由器 添加网关 删除网关 下载到本地 显示TCP连接 socket 摘要 列出所有打开的网络连接端口 显示所有UDP Sockets User create an account useradd shanshan delete an account u…
Linux command find All In One $ find -h # find: illegal option -- h # usage: # find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] # find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression] $ find ./dist/**/*.map refs xgqfrms 2012-2020 w…