全文検索:
- netstat
- 9-72-.40402 TIME_WAIT tcp4 0 0 vaio.3128 ThinkPad.4151 ESTABLISHED ... f Addr c24114ec stream 0 0 0 c2412b7c 0 0 c2412b7c stream 0 0 0 c24114ec 0 0 c2412c94 stream 0 0 0 0
- crontab
- | |hour(0-24,*)|時を指定| |day(0-30,*)|日を指定| |month(0-12,*)|月を指定| |week(0-6,*)|曜日を指定(0は日曜、1は月曜、2は火曜)| |com... h.cx </code> === リストにする事もできカンマで区切る === この場合3時6時9時12時 <code> 00 3,6,9,12 * * * </code> === 0時から12時の毎時23分に実行 === <code> 23 0-12 * * * </code> === 0時、2時、4時、6時、8時、10時、12時の毎時2
- traceroute
- 17.042 ms 16.092 ms 16.146 ms 2 218.227.247.126 (218.227.247.126) 16.920 ms 17.880 ms 16.116 ms 3 219.107.255.254 (219.107.255.254) 19.165 ms ... 1x-grt1b-2.bb.sakura.ad.jp (202.181.110.114) 19.612 ms 20.429 ms 20.632 ms 10 tkgrt5e-grt1b.bb.sak... 15.343 ms 16.687 ms 17.387 ms 2 218.227.247.126 15.606 ms 16.675 ms 15.671 ms 3 219.107.255
- ps でgrepについて
- ache 30234 0.0 0.7 257644 7592 ? S 12:23 0:00 /usr/sbin/httpd apache 30557 0.0 0.7 257644 7624 ? S 12:36 0:00 /usr/sbin/httpd apache 31189 0.0 0.... ache 30234 0.0 0.7 257644 7592 ? S 12:23 0:00 /usr/sbin/httpd apache 30557 0.0 0.7 257644 7624 ? S 12:36 0:00 /usr/sbin/httpd apache 31189 0.0 0.
- restore
- -l total 1354 drwxrwxrwt 2 root bin 512 Mar 29 16:51 .X11-unix/ drwx------ 3 root bin 512 Mar 16 19:19 .XF86Setup191/ drwxrwxrwx 2 bin bin 512 Apr 16 22:08 .iroha_unix/ -rw------- 1 root wh
- unzip
- c.txt -------- ------- 12 3 files </code> === アーカイブ内の詳細確... x 4 tx stor 9-May-14 11:10 c.txt 3 files, 12 bytes uncompressed, 12 bytes compressed: 0.0% </code> === 破損がないか確認 === <code console> $ unzip -t
- dig
- OA yahoo.co.jp. postmaster.yahoo.co.jp. 2005122111 1800 900 86400 900 yahoo.co.jp. 30... 192.168.0.1] [-t type] foo.example.com. </code> 127.0.0.1 は DNS サーバ名または IP/IPv6 アドレス。 type は A, PTR,
- lsでタイムスタンプを秒まで表示
- bak -rw-r--r-- 1 matsui users 4939776 2014-03-25 12:15:16.000000000 +0900 syslog.bak </code> === ati... 02-26 15:48:27.000000000 +0900 Change: 2014-03-25 12:21:23.000000000 +0900 </code> {{tag>Unixコマンド 標準}
- nslookup
- 。 <code> $ nslookup > ma21.ath.cx Server: 127.0.0.1 Address: 127.0.0.1#53 Non-authoritative answer: Name: ma21.ath.cx Address: 60.236.23
- ps
- Thu Jun 6 10:01:54 2013 grep sshd 7885 Thu Apr 12 13:31:26 2012 /usr/sbin/sshd 18083 Thu Jun 6 08:33:05 2013 sshd: root@pts/41 </code> <code console>
- touch
- 00 1999 z </code> <code> $ touch -d "2018-05-21 12:30" z $ ls -al z -rw-r--r--. 1 matsui users 74 5月 21 12:30 2018 z </code> {{tag>Unixコマンド ファイル操作}}
- dump
- 1 -rw-r--r-- 1 root wheel 472135680 5 21 21:12 home.bak </code> {{tag>Unixコマンド 圧縮・復元・パックアップ}}
- find
- [c/k/b]|nのサイズのファイルを検索(c:バイト、k:キロバイト、b:ブロック-1ブロック=512バイト) | |-type [type]|typeに指定したものだけ検索| === -type の
- gzip
- 力してgrepする === <code console> $ gzip -dc all.log.1.gz |grep -B 3 -A 3 matsui123456@yahoo.co.jp </code>
- ipコマンド/IPエイリアス追加
- > mtu 16436 qdisc noqueue state UNKNOWN inet 127.0.0.1/8 scope host lo 2: eth0: <BROADCAST,MULTIC