スキップしてメイン コンテンツに移動

投稿

2月, 2010の投稿を表示しています

findコマンドの主要なオプション

findコマンドの主要なオプション 検索オプション 日にちで指定 -atime n -ctime n -mtime n 分で指定 -amin n -cmin n -mmin n 他のファイルが編集された時間と相対的な時間で指定 -newer file-path 名前で指定 -name string -iname string -regex regex 所有者で指定 -group group-name -user user-name パーミッションで指定 -perm ファイルサイズで指定 -size -empty ファイルの種類で指定 -type 論理 否定 ! グループ化 \( \)

dot.inputrc

dot.inputrc   私のdot.inputrcの設定を以下に示す. set bell-style none set editing-mode emacs set completion-query-items 80 set expand-tilde off "\C-p": history-search-backward "\C-n": history-search-forward set bell-style none   私はベルが嫌いなので,オフにする. set editing-mode emacs   ターミナルでコマンドを入力する際は,emacsライクなキーバインドを使用する. set completion-query-items 80   補完対象が80アイテムを越えると,moreを使って表示する. set expand-tilde off   チルダ「~」を入力した際にTABを入力すると,${HOME}に補完するかどうかを選択. "\C-p": history-search-backward "\C-n": history-search-forward   Ctrl+p,Ctrl+nで,コマンド入力の履歴を検索する.

FreeBSDでApache22をインストール

apache22をインストール # cd /usr/ports/www/apache22/ # make install && make clean   以下のコマンドで起動する. # /usr/local/sbin/apachectl start   すると以下のエラーがでる. [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter   これはaccf_httpというカーネルモジュールを読み込むことで対処する. # kldload accf_http.ko   PCの起動時にこのカーネルモジュールを読み込むには,以下の設定をおこなう. # vi /boot/loader.conf -- accf_http_load="YES"   また,PCの起動時にapacheを起動するには,以下の設定をおこなう. # vi /etc/rc.conf -- apache22_enable="YES" apache22_http_accept_enable="YES"   以下の警告が出る場合. httpd: Could not reliably determine the server's fully qualified domain name, using [host-name] for ServerName   以下の設定で対処できる. # vi /usr/local/etc/apache22/httpd.conf -- ServerName 127.0.0.1 各種ファイル apache /usr/local/etc/rc.d/apache22 apachectl /usr/local/sbin/apachectl conf /usr/local/etc/apache22/ index.html /usr/local/www/apache22/data/ 関連サイト FreeBSD/Apache2.2 http://matsui.homeunix.com/index.php?FreeBSD%2FApache2.2

shの設定: alias.sh

alias.sh   ビルトインコマンドaliasを使ったエイリアスの設定をおこなう. #!/bin/sh case $os_rev in "Linux") alias ls='ls -F --color=auto' ;; "SunOS") ;; "FreeBSD") alias ls='gnuls -F --color=auto' alias l='ls -la' ;; "Darwin") alias ls='ls -FwG' alias emacs='/usr/local/Emacs.app/Contents/MacOS/Emacs' ;; "CYGWIN*") alias emacs='/usr/local/emacs/22.2/bin/emacs' alias ls='ls -F --color=auto' ;; *) ;; esac alias rm='rm -f' alias xssh='ssh -X' alias less='less -X' alias l='ls -la'