Skip to main content

Posts

Showing posts with the label command

find

find 「検索ディレクトリ」 「検索条件」 「コマンド」 find ディレクトリ -name 引数の後に正規表現 [root@cent2 named]# find / -name named.conf /etc/dbus-1/system.d/named.conf /usr/share/logwatch/default.conf/services/named.conf /usr/share/doc/bind-9.3.6/sample/etc/named.conf [root@cent2 named]# find . -type f ./chroot/etc/localtime ./chroot/etc/rndc.key [root@cent2 python]# find . -type f -print 「/usr/local」「/usr/bin」「/usr/sbin」と3つのディレクトリの全ファイルを表示する場合 find /usr/local /usr/bin /usr/sbin -type f -print

tail command

tail コマンド説明 参照リンク http://kazmax.zpp.jp/cmd/t/tail.1.html # tail -f -n N /var/log/message tail -f "-f" is used when the file is increasing. ファイルの内容がどんどん増え続けているものと仮定し、 ファイルの最終部分の文字を読み続けようと無限にループする。 パイプから読み込んでいる場合は無視される。 2 つ以上のファイルが指定された場合は、 tail  は異なったファイルの追加分を受け付けるごとにヘッダを表示し、 出力がどのファイルに由来するものかがわかるようにする。 ファイルの追跡方法を指定することもできる。  [root@ale ~]# tail -f /opt/ale/var/log/ls.py/current ##Building fetch failed, try fetching again in 2 mins 11:42:31.096 037409.096082 T:7f2c75219700:location:ERROR* *** "/var/arubaobjs/ls_campus/ls_campus.ser" needs to be generated first, will sleep and wait here... 11:42:41.097 037419.097359 T:7f2c75219700:location:ERROR* *** "/var/arubaobjs/ls_campus/ls_campus.ser" needs to be generated first, will sleep and wait here... <snip> Archive already exists Fetching https://10.215.1.103/visualrf/campus.xml?buildings=1&sites=1&images=1 Removing cookie file Generating cookie Successfully ...