自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 [Linux shell] basename详细说明

linux shell basename

2022-04-13 12:35:39 2158

原创 [linux shell] hostid使用方法以及原理

hostid打印当前主机的数字标识符。架构图使用方法查看主机标识符hostid查看版本hostid --version

2022-04-08 18:17:40 1960

原创 [raspberry] Installing ROS Indigo on the Raspberry Pi

Installing ROS Indigo ENV: RASPBERRY PI 4B/MEM:2G os: Raspbian Buster Raspbian Buster with desktop and recommended software refenence: 1. http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi 2. http://wiki.ros.org/ROS

2020-05-23 10:08:57 167

原创 Linux System V IPC 消息队列

system V IPC 消息队列reference: linux manual#include <sys/types.h>#include <sys/ipc.h>#include <sys/msg.h>int msgget(key_t key, int msgflg);获取 SYSTEM V 消息队列标识符.key_t key: 有两种方式设置...

2020-03-31 12:40:44 162

原创 Linux c中使用 getopt_long 处理输入参数

getopt_long#include <getopt.h>int getopt_long(int argc, char * const argv[],const char *optstring,const struct option *longopts, int *longindex);optstring:短选项字符串longopts指针指向 struct option ...

2020-03-15 10:34:05 1386

原创 Linux shell中使用 getopts 处理输入参数

Linux shell getopta. getopt optstring parametersb. getopt [options] [–] optstring parametersc. getopt [options] -o|–options optstring [options] [–] parametersgetopt 用于在命令行中分解选项,以方便shell程序解析。并检选项的合...

2020-02-22 12:42:52 857

原创 Linux shell 函数传递参数的几种方式

#1.最近总结了 shell 中 function 的传递变量的几种方式#1.传递单个变量#2.传递数组变量#!/bin/bash#trying to pass an variable.function func(){echo 'The number of parameters is: ${#}'for line in '$@'doecho '$line'done}fun...

2019-03-30 12:55:51 6665 4

原创 Linux shell 数组中 @ 跟 * 的区别

Linuxshell 数组中 @ 跟 * 的区别关于在shell脚本中数组变量中 “”跟 “@” 区别“”当变量加上“” 会当成一串字符串处理.“@”变量加上“” 依然当做数组处理.在没有加上“” 的情况下 效果是等效的.#!/bin/basharray=(1 2 3)echo “case 1”for line in “${array[@]}”doecho $linedon...

2019-03-30 12:36:50 1247 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除