全文検索:
- tar
- le> $ ls -al drwxr-xr-x 2 matsui Admin 512 8 13 03:36 work/ -rw-r--r-- 1 matsui users
- ipコマンド/IPエイリアス追加
- > mtu 16436 qdisc noqueue state UNKNOWN inet 127.0.0.1/8 scope host lo 2: eth0: <BROADCAST,MULTIC
- 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コマンド ファイル操作}}
- whois
- s11.yahoo.co.jp p. [Name Server] ns12.yahoo.co.jp s. [Signing Key] [Sta
- 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,
- 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>
- find
- [c/k/b]|nのサイズのファイルを検索(c:バイト、k:キロバイト、b:ブロック-1ブロック=512バイト) | |-type [type]|typeに指定したものだけ検索| === -type の
- 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
- 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 で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.
- 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コマンド 標準}
- 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
- tree
- s|ファイル・ディレクトリのサイズを表示する。| |-h|-s と同様にファイルサイズを表示するが、12K・23M・34G などとわかりやすい表示にする| |-L|何階層目までディレクトリを降りるかを指定
- zip
- c.txt -------- ------- 12 3 files </code> {{tag>Unixコマンド
- lsof
- e> lsof -p [プロセス番号] </code> ===== 例 ===== <code> # lsof -p 1234 </code> {{tag>Unixコマンド ジョブ・タスク管理}}