UNIX
UNIX コマンド

ミニレポート第 2 回課題

課題

以下の作業を順に行い,5 の回答を報告せよ.

  1. ホームディレクトリに report2 というディレクトリを作り, cd コマンドで report2 へ移動せよ.
  2. report2 にファイル名が file1 (内容は何でもよい. 授業で作成したファイル test のコピーでよい) であるファイルを作成せよ.
  3. file1 をコピーして file2, file10, f3 という名前の 3 つのファイルを作り,report2 ディレクトリに置け.
  4. report2 ディレクトリに report3 をディレクトリを作りそこへ cd せよ.
  5. report3 がカレントディレクトリである状態で 一回の cp コマンドで,
    問 1.report2 ディレクトリにある file1, file2 という名前のファイルのみを report3 にコピーするコマンド,
    問 2.report2 ディレクトリにある file1, file2 file10 という名前のファイルのみ を report3 にコピーするコマンド,
    をそれぞれ述べよ.
    (注)カレントディレクトリは "." (ピリオド 1 個)で指定できる.

注意事項


Updated in April 20, 2006, minor report, Yamamoto Hiroshi Web