logo

シェルスクリプトでオプション作成

Description: テストだよ

Options: -n nanikaを実行します。 -h ヘルプを表示します。

EOF exit 0

}

nanika () { echo "${OPTARG} }

while getopts n:h OPT do case $OPT in n ) nanika ${OPTARG};; h ) usage;;

:|\? ) usage;;

esac done

[ "${OPTIND}" -eq 1 ] && usage

One minute to read

システム起動時にUNEXPECTED INCONSISTENCYエラーが発生した場合は

/12: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options)

*** An error occurred during the file system check. *** Dropping you to a shell; the system will reboot *** when you leave the shell. Give root password for maintenance (or type Control-D to continue): その場合は、手動でfsckを実行することで、解決する場合があります。

One minute to read