タグ

UNIXに関するamagasa99のブックマーク (2)

  • シンプルなUNIX ShellをCで実装するチュートリアル「Write a Shell in C」 | ソフトアンテナ

    UNIXで欠かすことができないプログラムの一つに「シェル」が挙げられるかもしれません。シェルはユーザーのコマンド入力を受け取って指示をOSに伝えたり、結果を画面に表示したり、といった大切や役割を担っているプログラムです。 このシェルを実際にC言語で作成するチュートリアル「Write a Shell in C」が公開されています。シェルのプログラムというと、とても複雑なイメージを持ってしまいますが、このチュートリアルで作成するシェル「lsh」はコメント込みで267行しかない超コンパクトなものです。 bashやzshといった有名シェルはとても複雑な作りとなっていますが、これくらいのサイズなら理解できそうですね。 UNIXの仕組みが分かるかも チュートリアルは、シェルのライフタイムの説明から始まり、メインループの中で入力行を読み取って解析する方法、さらに外部コマンドや組み込みコマンドを実行する方

    シンプルなUNIX ShellをCで実装するチュートリアル「Write a Shell in C」 | ソフトアンテナ
  • Filesystem Hierarchy Standard

    All trademarks and copyrights are owned by their owners, unless specifically noted otherwise. Use of a term in this document should not be regarded as affecting the validity of any trademark or service mark. Permission is granted to make and distribute verbatim copies of this standard provided the copyright and this permission notice are preserved on all copies. Permission is granted to copy and d

  • 1