Linux Command Notes

1
2
apt-get install inetutils-ping
apt-get install net-tools

jq

Options

  • -j “join”
  • -r “raw”

Examples

1
2
3
4
5
6
7
8
9
10
11
12
curl --location --request GET "http://icosregistry-icosregistry-service-icos.icos.icos.city/v1/assets?pageSize=100000&pageNo=0&typeName=vehicle_speedlimit"

curl --location --request GET "http://icosregistry-icosregistry-service-icos.icos.icos.city/v1/assets?typeName=traffic_lamp_type&pageSize=100" | jq -jr '.data[]|.id," ",.name,"\n"'

curl --location --request GET "http://icosregistry-icosregistry-service-icos.icos.icos.city/v1/assets?typeName=twin_intersection_type&pageSize=100" | jq -jr '.data[]|.id," ",.name,"\n"'

curl --location --request GET "http://icosregistry-icosregistry-service-icos.icos.icos.city/v1/assets?typeName=twin_traffic_lamp_direction&pageSize=100" | jq -jr '.data[]|.id," ",.name,"\n"'


curl --location --request GET "http://icosregistry-icosregistry-service-icos.icos.icos.city/v1/assets?typeName=isvd1_hikvision&pageSize=100" | jq -jr '.data[]|.id," ",.name,"\n"'

curl --location --request GET "http://icosregistry-icosregistry-service-icos.icos.icos.city/v1/assets?typeName=cam1_hikvision&pageSize=100" | jq -jr '.data[]|.id," ",.name,"\n"'