2020-04-01から1ヶ月間の記事一覧
2020 Apr. 12.cutコマンドのデフォルト区切り文字はタブ、awkのデフォルト区切り文字はスペース/空白
2020 Apr. 12. 2020 Apr. 11. 自分なりに作ってみた。単体コード #!/bin/bash # check IPv4 address string is correct Command=`basename $0` # usage function usage() { cat << EOP usage: ${Command} IPv4-address EOP } if [ $# -ne 1 ] then echo "Fai…
2020 Apr. 05. 出典 https://linuxfan.info/ifconfig-io $ curl ifconfig.io $ curl https://ifconfig.io $ curl ifconfig.io/host $ curl ifconfig.io/country_code $ curl ifconfig.io/ua $ curl ifconfig.io/port $ curl ifconfig.io/lang $ curl ifconfi…
2020 Apr. 05.$ networkctl status
2020 Jun. 14. 2020 Apr. 05.出典 https://qiita.com/b4b4r07/items/f7a4a0461e1fc6f436a4vim.basicが普通のvim vim.tinyは機能の制約の多いvim 出典 http://murapong.hatenablog.com/entry/20091207/1260183210デフォルトエディタ設定 $ sudo update-altern…
2020 Apr. 05.出典 https://qiita.com/koara-local/items/35b999631b6ab41fdc9f$ sudo update-alternatives --config editor
2020 Jun. 07. 2020 May 21. 2020 May 17. 2020 May 16. 2020 Apr. 11. 2020 Apr. 07. 2020 Apr. 05. 2020 Apr. 04. 出典 https://rauq04.blogspot.com/2014/02/linux-softether-vpn-client-vpngate.html https://qiita.com/onokatio/items/aa656c23e24d721e…
2020 Apr. 04. $ traceroute www.yahoo.co.jp
2020 Apr. 04. # get network-interface-card NIC=`route | grep -m 1 default | sed 's/[\t ]\+/\t/g' | \cut -f 8` # get default-gateway-address GW_ADRS=`route -n | grep ${NIC} | sed 's/[\t ]\+/\t/g' | cut -f 2 | sort -r | sed -n '1,1p'` # Add …
2020 Apr. 04.$ wget http://www.vpngate.net/api/iphone/ -O - 2> /dev/null | grep JP | grep Tsukuba | sort -rn -k 5 -t "," | grep -oP -m 1 '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'wget SITE -O - wget出力を標準出力に sort -r 降順ソート…
2020 Apr. 04.$ netstat -nr受信先サイト:パケットの行先アドレス。特に設定されていないアドレスはデフォルト0.0.0.0と扱われる。 ゲートウェイ:通過するゲートウェイのアドレス インターフェース:通過するネットワークインターフェースカードNIC
2020 Apr. 04. 出典 https://takuya-1st.hatenablog.jp/entry/2015/11/08/031710 $ ping -I NIC 例 $ ping -I enp1s0 www.yahoo.co.jp同じオプション(大文字のアイ)でIPアドレス指定も可能 $ ping -I 192.168.0.2 www.yahoo.co.jp