
Linux
文章平均质量分 86
EverNoob
simply bumping around
展开
-
Linux: find file by content
【代码】Linux: find file by content。转载 2022-09-08 10:43:41 · 269 阅读 · 0 评论 -
CMake Tutorial with OpenCV Example
Official Documentation Source:CMake Tutorial — CMake 3.23.0-rc1 DocumentationIntro. and Installationsource:CMakeCMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the sof.原创 2022-02-10 20:28:42 · 1485 阅读 · 0 评论 -
Linux: Bash String and Array Manipulation
why:linux - difference between $@ and $* in bash script - Stack Overflow==> patterned/batch input arguments processingStringdetailed guide: Manipulating Stringsquick tutorial:String Manipulation in Shell Scripting - GeeksforGeeksArray Variab..转载 2021-12-29 13:55:05 · 194 阅读 · 0 评论 -
Linux: pushd and popd
main reference:https://linuxize.com/post/popd-and-pushd-commands-in-linux/other reference:Linux中的pushd和popd_水逝流年-优快云博客_linux pushdpushdandpopdare commands that allow you to work with directory stack and change the current working directory in Lin...转载 2021-12-25 10:28:46 · 127 阅读 · 0 评论 -
Linux: source vs. ./execution
short answer:source or dot operator Man Page - Linux - SS64.comRead and execute commands from thefilenameargument in the current shell context.Syntax . filename [arguments] source filename [arguments]sourceis a synonym for dot/peri...转载 2021-12-25 10:09:09 · 116 阅读 · 0 评论 -
Linux Bash Tutorial
Main ReferencesQuick Intro:https://linuxconfig.org/bash-scripting-tutorial-for-beginnersReference by Modules:Bash Introduction | What is Bash? - JavatpointCommon FunctionalitiesText, Especially Filename and Dirpath Manipulation:linux通配符和正则表原创 2021-12-24 13:33:20 · 875 阅读 · 0 评论 -
Linux: Get System Configuration
1. Disk Spacedf, duLinux Check Disk Space Command To View System Disk Usage (df and du) | blog.imm.cnr.it==> df should not be used on a machine with large disk space and multiple users; the response time would be prohibitively long.====> use原创 2021-11-16 11:03:44 · 274 阅读 · 0 评论 -
Vi/Vim
fromBasic vi Commandscheatsheet:http://www.atmos.albany.edu/daes/atmclasses/atm350/vi_cheat_sheet.pdfshort summary:Basic VI Editor Commands // Mathematical and Statistical Sciences // Marquette UniversityWhat isvi?The default editor that comes ...转载 2021-11-02 09:30:43 · 154 阅读 · 0 评论 -
Linux: Delete All Files Except
3 Ways to Delete All Files in a Directory Except One or Few Files with ExtensionsAaron KiliJanuary 10, 2017CategoriesLinux Commands16 CommentsSometimes you get into a situation where you need todelete all files in a directory or simply cleanup a dir...转载 2021-10-20 16:33:56 · 231 阅读 · 0 评论 -
grep, sed, awk Notes
grep1.grep pattern ==> match by text or linux wildcardsgrep "pattern" ==> match by regular expression with soft原创 2021-06-02 16:39:31 · 144 阅读 · 0 评论 -
Extended Regular Expression
Extended Regular Expression 扩展正则的使用原创GeorgeKai2017-12-27 18:47:23著作权文章标签linuxgrepsed阅读数1845本章正题:Extended Regular Expression1.1扩展正则1.1.1{} o{n,m} 前一个字符至少连续出现n次,最多连续出现了m次例1:最少连续出现3个0,最多连续出现4个0[root@georgekai oldboy]# egrep '0{3,4}' oldbo...转载 2021-06-02 11:23:08 · 447 阅读 · 0 评论 -
Linux awk
Linux--awk命令fromposted @2018-06-10 15:54姚红 阅读(3269) 评论(0)编辑收藏分类:服务端-Linuxundefined目录一:awk简介 二:使用方法 三:awk 的原理 BEGIN和END模块 awk运算符 常用awk内置变量 awk正则 awk的if、循环和数组 常用字符串函数 正文回到顶部一:awk简介 awk其名称得...转载 2021-05-31 17:53:42 · 209 阅读 · 0 评论 -
Linux: View and Edit Binary Files
from:https://blog.youkuaiyun.com/wangxiaoqin00007/article/details/6618003一、在Linux下查看二进制文件的软件:xxd (2进制)hexdump (16进制)二、编辑:1、biew2、hexedit3、vimVim 来编辑二进制文件。Vim 本非为此而设计的,因而有若干局限。但你能读取一个文件,改动一个字符,然后把它存盘。结果是你的文件就只有那一个字符给改了,其它的就跟原来那个一模一样。 要保证...转载 2021-05-25 10:23:23 · 339 阅读 · 0 评论 -
Linux Crontab 定时任务之使用,用例,注意事项合转
安装使用https://blog.youkuaiyun.com/weixin_40658787/article/details/845832811.安装crontabyum installvixie-cronyum install crontab2.启动crontab服务service crondstart用以下的方法启动、关闭这个cron服务:service crond start //启动服务service crond stop //关闭服务service crond ...转载 2021-05-24 09:48:53 · 328 阅读 · 0 评论 -
使用linux 的shell脚本进行sftp文件上传与下载(转)
from:https://www.cnblogs.com/my-first-blog-lgz/p/13590313.html一、批量上传:#!/bin/bash#SFTP配置信息#用户名USER=root#密码PASSWORD=5EYS40T04BMF#待上传文件根目录SRCDIR=/u02/dab/sftpFiles#FTP目录DESDIR=/u01/sftpFiles#IPIP=192.168.10.11#端口PORT=22022#获取文件cd ${SRCD转载 2021-05-20 11:33:04 · 1666 阅读 · 0 评论